CVE-2024-23897 — Vulnerability in jenkins-core — CVE Details
Arbitrary file read vulnerability through the Jenkins CLI can lead to RCE
What Should I Do?
Patch Immediately
This vulnerability is confirmed under active exploitation (CISA KEV). Patch within 24-48 hours if possible.
Does your project use an affected org.jenkins-ci.main:jenkins-core version?
Paste your pom.xml to check it for CVE-2024-23897 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Jenkins has a built-in command line interface (CLI) to access Jenkins from a script or shell environment.
Jenkins uses the args4j library to parse command arguments and options on the Jenkins controller when processing CLI commands. This command parser has a feature that replaces an @ character followed by a file path in an argument with the file’s contents (expandAtFiles). This feature is enabled by default and Jenkins 2.441 and earlier, LTS 2.426.2 and earlier does not disable it.
This allows attackers to read arbitrary files on the Jenkins controller file system using the default character encoding of the Jenkins controller process.
-
Attackers with Overall/Read permission can read entire files.
-
Attackers without Overall/Read permission can read the first few lines of files. The number of lines that can be read depends on available CLI commands. As of publication of this advisory, the Jenkins security team has found ways to read the first three lines of files in recent releases of Jenkins without having any plugins installed, and has not identified any plugins that would increase this line count.
Binary files containing cryptographic keys used for various Jenkins features can also be read, with some limitations (see note on binary files below). As of publication, the Jenkins security team has confirmed the following possible attacks in addition to reading contents of all files with a known file path. All of them leverage attackers' ability to obtain cryptographic keys from binary files, and are therefore only applicable to instances where that is feasible.
Advisory Timeline
- First published January 24, 2024 (1037 days ago).
- Last revised August 7, 2026 — 926 days after initial publication.
- Added to CISA's Known Exploited Vulnerabilities catalog 207 days after publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 2.442 for org.jenkins-ci.main:jenkins-core -->
<!-- Update pom.xml dependency version to 2.426.3 for org.jenkins-ci.main:jenkins-core -->
<!-- Update pom.xml dependency version to 2.440.1 for org.jenkins-ci.main:jenkins-core -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| org.jenkins-ci.main:jenkins-core Maven · Affected: 2.441 | 2.442 |
| org.jenkins-ci.main:jenkins-core Maven · Affected: 1.606, 1.607, 1.608, 1.609 (+596 more) | 2.426.3 |
| org.jenkins-ci.main:jenkins-core Maven · Affected: 2.427, 2.428, 2.429, 2.430 (+10 more) | 2.440.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-22Path TraversalMITRE
- CWE-27
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-23897ADVISORY
- https://github.com/jenkinsci/jenkins/commit/554f03782057c499c49bbb06575f0d28b5200edbWEB
- https://github.com/jenkinsci/jenkinsPACKAGE
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-23897WEB
- https://www.jenkins.io/changelog-stable/#v2.440.1WEB
- https://www.jenkins.io/security/advisory/2024-01-24/#SECURITY-3314WEB
- https://www.sonarsource.com/blog/excessive-expansion-uncovering-critical-security-vulnerabilities-in-jenkinsWEB
- https://www.vicarius.io/vsociety/posts/the-anatomy-of-a-jenkins-vulnerability-cve-2024-23897-revealed-1WEB
- https://packetstormsecurity.com/files/176839/Jenkins-2.441-LTS-2.426.3-CVE-2024-23897-Scanner.htmlWEB
- https://packetstormsecurity.com/files/176840/Jenkins-2.441-LTS-2.426.3-Arbitrary-File-Read.htmlWEB
- https://www.openwall.com/lists/oss-security/2024/01/24/6WEB
Frequently Asked Questions
- What is CVE-2024-23897?
- Arbitrary file read vulnerability through the Jenkins CLI can lead to RCE. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2024-23897?
- CVE-2024-23897 affects org.jenkins-ci.main:jenkins-core. It has a 92.4% probability of exploitation within 30 days (EPSS score). This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, meaning it is being actively exploited in the wild. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-23897 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 99.9% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
This vulnerability is in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.
Added to KEV catalog: August 19, 2024
Remediation deadline: September 9, 2024
Also Known As
Related CVEs
- CVE-2017-1000362CRITICAL
Exposure of Sensitive Information to an Unauthorized Actor in Jenkins
- CVE-2026-27099HIGH
Jenkins has a stored XSS vulnerability in node offline cause description
- CVE-2026-53441HIGH
Jenkins: Stored XSS vulnerability in node offline cause description
- CVE-2025-67635HIGH
Jenkins has a Denial of service vulnerability in HTTP-based CLI
- CVE-2026-53440MEDIUM
Jenkins: Open Redirect phishing attacks possible via "from" parameter in "Delegate to servlet container"
- CVE-2025-67637MEDIUM
Jenkins's build authorization token is stored and displayed in plain text
- CVE-2026-53439MEDIUM
Jenkins exposes other users' timezone and view names to users with Overall/Read permission
- CVE-2025-67639LOW
Jenkins has a CSRF vulnerability on the login form