CVE-2024-23897
Arbitrary file read vulnerability through the Jenkins CLI can lead to RCE
Also known as BIT-jenkins-2024-23897, EDB-51993, GHSA-6f9g-cxwr-q5jr
Mitigation
- Upgrade org.jenkins-ci.main:jenkins-core to one of 2.426.3, 2.440.1, 2.442 (or later in the same release line).
Who should check
- Projects that depend on Maven package org.jenkins-ci.main:jenkins-core (>= 1.606, < 2.426.3)
- Anyone running Jenkins Project Jenkins all versions
Vulnerability facts
- Affected
- org.jenkins-ci.main:jenkins-core >= 1.606, < 2.426.3
- Fixed in
- 2.426.3, 2.440.1, 2.442
- Exploited in the wild
- Yes: in CISA KEV since 2024-08-19; federal due date 2024-09-09; known ransomware use
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 92.40% chance of exploitation in 30 days (percentile 100, 2026-11-26)
- CWE
- CWE-22, CWE-27
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.jenkins-ci.main:jenkins-core | >= 1.606, < 2.426.3 | 2.426.3, 2.440.1, 2.442 | osv |
| Jenkins Project Jenkins | all versions | — | cvelist |
Timeline
- 2024-01-24 Published
- 2024-08-19 Added to CISA KEV (exploited in the wild)
- 2024-09-09 CISA remediation due date for US federal agencies
- 2026-08-07 Last modified
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-23897. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-23897.md Affected: org.jenkins-ci.main:jenkins-core >= 1.606, < 2.426.3 Fixed in: 2.426.3, 2.440.1, 2.442 Steps: 1. Search this machine and project for org.jenkins-ci.main:jenkins-core (Maven), Jenkins Project Jenkins: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Exploits and PoCs
- https://www.sonarsource.com/blog/excessive-expansion-uncovering-critical-security-vulnerabilities-in-jenkins/
- http://packetstormsecurity.com/files/176839/Jenkins-2.441-LTS-2.426.3-CVE-2024-23897-Scanner.html
- http://packetstormsecurity.com/files/176840/Jenkins-2.441-LTS-2.426.3-Arbitrary-File-Read.html
- https://www.vicarius.io/vsociety/posts/the-anatomy-of-a-jenkins-vulnerability-cve-2024-23897-revealed-1
- https://www.exploit-db.com/exploits/51993
Other
- http://www.openwall.com/lists/oss-security/2024/01/24/6
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-23897
- https://github.com/jenkinsci/jenkins
- https://www.jenkins.io/changelog-stable/#v2.440.1
- https://www.sonarsource.com/blog/excessive-expansion-uncovering-critical-security-vulnerabilities-in-jenkins
FAQ
Is CVE-2024-23897 being exploited?
Yes. CISA lists CVE-2024-23897 in its Known Exploited Vulnerabilities catalog since 2024-08-19, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 92.40% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-23897?
Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-23897?
org.jenkins-ci.main:jenkins-core >= 1.606, < 2.426.3.
Is there a fix for CVE-2024-23897?
Yes. Fixed in 2.426.3, 2.440.1, 2.442. Upgrade org.jenkins-ci.main:jenkins-core to one of 2.426.3, 2.440.1, 2.442 (or later in the same release line).
How do I check if I'm affected by CVE-2024-23897?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.