CVEs / CVE-2024-23897
CVE-2024-23897: Jenkins Command Line Interface (CLI) Path Traversal Vulnerability
- Known exploited in the CISA KEV catalog since 19 Aug 2024
- critical 9.8 CVSS 3.1 (NVD)
- EPSS 99.9% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2024-23897
Summary
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.
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.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| jenkins jenkins | before 2.426.3 | 2.426.3 |
| jenkins jenkins | before 2.442 | 2.442 |
| Product | Affected | Fixed in |
|---|---|---|
| org.jenkins-ci.main:jenkins-core (Maven) | from 1.606, before 2.426.3 | 2.426.3 |
| org.jenkins-ci.main:jenkins-core (Maven) | from 2.427, before 2.440.1 | 2.440.1 |
| org.jenkins-ci.main:jenkins-core (Maven) | from 2.441, before 2.442 | 2.442 |
Package versions from GHSA-6f9g-cxwr-q5jr.
Exploitation
| In CISA KEV since | 19 Aug 2024 |
|---|---|
| Due date for US federal agencies | 9 Sep 2024 |
| Used in ransomware campaigns | Known |
| Required action | Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. |
Severity
| CVSS 3.1 | 9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-22, CWE-27 |
References
- CVE-2024-23897 on NVD
- CVE-2024-23897 in the CISA KEV catalog
- https://www.jenkins.io/security/advisory/2024-01-24/#SECURITY-3314 (cited by CISA)
- CVE-2024-23897 on OSV
- http://packetstormsecurity.com/files/176839/Jenkins-2.441-LTS-2.426.3-CVE-2024-23897-Scanner.html Third Party Advisory, VDB Entry
- http://packetstormsecurity.com/files/176840/Jenkins-2.441-LTS-2.426.3-Arbitrary-File-Read.html Exploit, Third Party Advisory, VDB Entry
- http://www.openwall.com/lists/oss-security/2024/01/24/6 Mailing List
- https://www.jenkins.io/security/advisory/2024-01-24/#SECURITY-3314 Vendor Advisory
- https://www.sonarsource.com/blog/excessive-expansion-uncovering-critical-security-vulnerabilities-in-jenkins/ Exploit, Press/Media Coverage
- https://www.vicarius.io/vsociety/posts/the-anatomy-of-a-jenkins-vulnerability-cve-2024-23897-revealed-1 Exploit, Third Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-23897 US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.