CVE-2024-23897: Arbitrary file read vulnerability through the Jenkins CLI can lead to RCE
CVE-2024-23897 · Severity: critical · CVSS 3.1 · Exploited in the wild · Published 2024-01-24
The Jenkins Command Line Interface (CLI) fails to disable a feature in its command parser that replaces an '@' character followed by a file path with the file's contents. This path traversal vulnerability allows unauthenticated attackers to read arbitrary files on the Jenkins controller file system, potentially leading to remote code execution.
Yes. org.jenkins-ci.main:jenkins-core (Maven): upgrade to 2.426.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2024-23897 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2024-23897?
Check whether you run Jenkins Command Line Interface (CLI) or org.jenkins-ci.main:jenkins-core (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
org.jenkins-ci.main:jenkins-core (Maven): upgrade to 2.426.3 or later
# set org.jenkins-ci.main:jenkins-core to 2.426.3 in your pom.xml or build.gradle