Jenkins CLI File Read via '@' Path Injection (v<2.441)
CVE-2024-23897 Published on January 24, 2024
Jenkins 2.441 and earlier, LTS 2.426.2 and earlier does not disable a feature of its CLI command parser that replaces an '@' character followed by a file path in an argument with the file's contents, allowing unauthenticated attackers to read arbitrary files on the Jenkins controller file system.
Known Exploited Vulnerability
This Jenkins Command Line Interface (CLI) Path Traversal Vulnerability is part of CISA's list of Known Exploited Vulnerabilities. Jenkins Command Line Interface (CLI) contains a path traversal vulnerability that allows attackers limited read access to certain files, which can lead to code execution.
The following remediation steps are recommended / required by September 9, 2024: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Vulnerability Analysis
CVE-2024-23897 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. This vulnerability is known to be actively exploited by threat actors in an automatable fashion. The potential impact of an exploit of this vulnerability is considered to be critical as this vulnerability has a high impact to the confidentiality, integrity and availability of this component.
Weakness Type
Path Traversal: 'dir/../../filename'
The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize multiple internal "../" sequences that can resolve to a location that is outside of that directory.
Products Associated with CVE-2024-23897
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2024-23897 are published in Jenkins:
Affected Versions
Jenkins Project Jenkins:- Before 1.606 is unaffected.
- Version 2.442 and below * is unaffected.
- Version 2.426.3 and below 2.426.* is unaffected.
- Version 2.440.1 and below 2.440.* is unaffected.
- Before 1.606 is unaffected.
- Version 2.442 and below * is unaffected.
- Version 2.426.3 and below 2.427 is unaffected.
- Version 2.440.1 and below 2.441 is unaffected.
- Before 1.606 is unaffected.
- Version 2.442 and below * is unaffected.
- Version 2.426.3 and below 2.427 is unaffected.
- Version 2.440.1 and below 2.441 is unaffected.
- Before 1.606 is unaffected.
- Version 2.442 and below * is unaffected.
- Version 2.426.3 and below 2.427 is unaffected.
- Version 2.440.1 and below 2.441 is unaffected.
- Before 1.606 is unaffected.
- Version 2.442 and below * is unaffected.
- Version 2.426.3 and below 2.427 is unaffected.
- Version 2.440.1 and below 2.441 is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.