CVE-2024-23897
Jenkins Command Line Interface (CLI) Path Traversal Vulnerability
Description
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.
Description as published by the source, in English.
Key facts
- Published
- 2024-01-24
- Last modified
- 2026-06-17
- Assigned by
- jenkinsci-cert@googlegroups.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
100.0 %
among the highest of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Actively exploited
CISA added this vulnerability to the Known Exploited Vulnerabilities catalogue on 2024-08-19, with a remediation deadline of 2024-09-09 for US federal agencies.
Required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Jenkins | Jenkins | < 2.426.3 | Affected |
| Jenkins | Jenkins | < 2.442 | Affected |
| org.jenkins-ci.main | jenkins-core (Maven) | ≥ 1.606, < 2.426.3 | Affected |
| org.jenkins-ci.main | jenkins-core (Maven) | ≥ 2.427, < 2.440.1 | Affected |
| org.jenkins-ci.main | jenkins-core (Maven) | ≥ 2.441, < 2.442 | Affected |
Weakness type
-
CWE-22: Improper Limitation of a Pathname to a Restricted Directory
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special ele…
-
CWE-27: Path Traversal: 'dir/../../filename'
The product 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 …
References
- http://packetstormsecurity.com/files/176839/Jenkins-2.441-LTS-2.426.3-CVE-2024-23897-Scan…
- http://packetstormsecurity.com/files/176840/Jenkins-2.441-LTS-2.426.3-Arbitrary-File-Read…
- http://www.openwall.com/lists/oss-security/2024/01/24/6
- https://www.jenkins.io/security/advisory/2024-01-24/#SECURITY-3314
- https://www.sonarsource.com/blog/excessive-expansion-uncovering-critical-security-vulnera…
- http://packetstormsecurity.com/files/176839/Jenkins-2.441-LTS-2.426.3-CVE-2024-23897-Scan…
- http://packetstormsecurity.com/files/176840/Jenkins-2.441-LTS-2.426.3-Arbitrary-File-Read…
- http://www.openwall.com/lists/oss-security/2024/01/24/6
- https://www.jenkins.io/security/advisory/2024-01-24/#SECURITY-3314
- https://www.sonarsource.com/blog/excessive-expansion-uncovering-critical-security-vulnera…
- https://www.vicarius.io/vsociety/posts/the-anatomy-of-a-jenkins-vulnerability-cve-2024-23…
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-23897
Related at Berigo
Articles
-
Malicious version of Checkmarx Jenkins plugin published
Same product
2026-05-09
A malicious build of Checkmarx's Jenkins AST plugin was live for roughly 31 hours, the third attack on the company this year.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.