Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Jenkins critical CVE caused by built-in CLI vulnerabilities - mitigation method #386

Closed
jordarlu opened this issue Feb 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jordarlu
Copy link
Contributor

jordarlu commented Feb 2, 2024

Describe the bug

Jenkins Security Advisory 2024-01-24 described a critical CVE that applied to all Jenkins controller versions 2.441 and earlier.
The current CI Jenkins controller version is 2.387.1, and we can take the suggested steps from Jenkins to mitigate the issue for the time being.

To reproduce

This CVE is applicable to all Jenkins controller versions 2.441 and earlier.

Expected behavior

We can take the following steps suggested by Jenkins to mitigate issue:

Fix Description:
Jenkins 2.442, LTS 2.426.3 disables the command parser feature that replaces an @ character followed by a file path in an argument with the file’s contents for CLI commands.

In case of problems with this fix, disable this change by setting the Java system property hudson.cli.CLICommand.allowAtSyntax to true. Doing this is strongly discouraged on any network accessible by users who are not Jenkins administrators.

Workaround:
Disabling access to the CLI is expected to prevent exploitation completely. Doing so is strongly recommended to administrators unable to immediately update to Jenkins 2.442, LTS 2.426.3. Applying this workaround does not require a Jenkins restart. For instructions, see the documentation for this workaround. ( https://github.com/jenkinsci-cert/SECURITY-3314-3315/ )

also, refer to here (https://www.jenkins.io/doc/book/managing/groovy-hook-scripts/) to create init.groovy.d folder and palce the disable-cli.groovy

Screenshots

No response

Host / Environment

No response

Additional context

No response

Relevant log output

No response

@jordarlu jordarlu added bug Something isn't working untriaged Issues that have not yet been triaged and removed untriaged Issues that have not yet been triaged labels Feb 2, 2024
This was referenced Feb 6, 2024
@jordarlu
Copy link
Contributor Author

close this issue as the PR has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant