Skip to content

feat(java): detect System.exit() process termination in Jenkins build/plugin execution paths (CWE-248) - #185

Open
ai-anant wants to merge 1 commit into
CodeVigilant:mainfrom
ai-anant:rule/jenkins-system-exit-dos
Open

feat(java): detect System.exit() process termination in Jenkins build/plugin execution paths (CWE-248)#185
ai-anant wants to merge 1 commit into
CodeVigilant:mainfrom
ai-anant:rule/jenkins-system-exit-dos

Conversation

@ai-anant

@ai-anant ai-anant commented Sep 4, 2026

Copy link
Copy Markdown

Detects direct calls to System.exit() in code that runs inside a long-lived server process (build steps, plugin handlers, constructors, etc.). In a Jenkins controller/agent JVM such a call terminates the whole JVM — killing every concurrent build on the node — instead of failing the current operation. Build paths must fail by throwing (e.g. AbortException), never by exiting the process.

Generic pattern only; excludes the legitimate use inside a public static void main(String[]) entry point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant