Jenkins Command Line Interface (CLI) Path Traversal Vulnerability (CVE-2024-23897)
Published In CISA KEV since Sources: SingCERT, pwn.watch, CVE.org, OSV
- Actively exploited
- Source: CSA/SingCERT How we classify
- Ransomware
- Public exploit
What is affected, what to do
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.
The vulnerability is being actively exploited; treat it as a priority. CISA lists it as used in ransomware campaigns. Update Jenkins to version 2.426.3, Jenkins to version 2.440.1, Jenkins to version 2.442. Immediate actions, mitigation and detection rules are in the runbook below.
- Affected
- Jenkins
lt 1.606..2.426.3 - Jenkins
lt 2.427..2.440.1 - Jenkins
lt 2.441..2.442
- Jenkins
- Fixed in
- Jenkins
2.426.3 - Jenkins
2.440.1 - Jenkins
2.442
- Jenkins
Not sure whether and how you are affected? Ask a question about this vulnerability
Metrics
9.8
Priority
XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.
Source: NVD, CVSS v3
9.8
CVSS v3
Severity Critical on the scale from 0 to 10.
Source: SingCERT, pwn.watch, CVE.org, OSV
—
EPSS score
No value is available for this vulnerability.
Show all metrics
- Severity
- Critical
Priority (0–325)
The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?
Read in glossary- 258.34 Methodology
Exploit maturity
An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.
Read in glossary- actively exploitedSource: CSA/SingCERT How we classify
XIEM Effective CVSS
XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.
Read in glossary- 9.8 Methodology
CVSS v3
CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.
Read in glossary- 9.8
KEV status
The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.
Read in glossary- Actively exploited
- Published
In CISA KEV since
The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.
Read in glossary
Response and mitigation
Why act now?
Prioritisation rationale
The flaw is network-reachable without authentication, a working PoC has been public since January 2024, and CISA flags it as actively used in ransomware campaigns — exploitation likelihood is at the very top of the KEV catalogue. Attackers routinely read secrets/master.key and hudson.util.Secret, decrypt stored credentials, and chain remember-me cookies or resource-root URLs into full RCE on a controller that typically holds privileged access to source control, container registries, and cloud tenants — a textbook supply-chain pivot. Any internet-facing or large-tenant-reachable Jenkins belongs in the highest patch tier (P0, patch within 24 h); strictly internal build servers without sensitive secrets drop to P1 (72 h) but remain critical given their blast radius into production pipelines.
Runbook step 1
Immediate response (0-24 h)
- Upgrade the Jenkins controller to a patched build immediately: Weekly 2.442, LTS 2.440.1, or LTS 2.426.3. Force a maintenance window — this bug is pre-auth and trivial to weaponise.
- If patching within hours is impossible, disable the CLI feature: set the system property
hudson.cli.CLICommand.allowAtSyntax=false, and block the SSH-CLI port plus the HTTP(S)/cliendpoint at the reverse proxy / firewall (typically 8080/8443 for the web UI). - Remove the controller from the public internet and from untrusted internal networks. Allow management only via jump host, VPN, or a dedicated admin VLAN. Have the reverse proxy drop any request to
/clior/cli/*. - After patching, treat every secret stored on the controller as compromised: rotate
secrets/master.key,hudson.util.Secret-encrypted credentials, SSH keys, API tokens, service-account tokens, agent secrets, and any cloud credentials (AWS/Azure/GCP) referenced by jobs. - Audit users, admin role assignments, and API tokens; inspect
users/*/config.xmlfor entries created or modified since January 2024 and remove unknown accounts. - Open an incident ticket scoped as credential exposure. If build artefacts carry personal data, evaluate the GDPR Art. 33 72-hour notification clock.
Runbook step 2
Mitigation layers
- Network segmentation: expose the Jenkins controller only to an admin VLAN. Agents may reach the controller inbound, but do not grant the controller unrestricted outbound reach; restrict it to required SCM, registry, and cloud API endpoints.
- WAF / reverse-proxy rule: block HTTP requests whose path matches
^/cli(/|$), especiallyPOSTwith form-encoded body. Additionally drop request bodies containing CLI arguments that start with the@character — the exact pattern the parser abuses for file inclusion. - Endpoint hardening: run the Jenkins process as the unprivileged
jenkinsuser, with strict permissions on/var/lib/jenkins/secrets/,/etc/shadow,/etc/passwdand any SSH keys. Enforce an AppArmor or SELinux profile denying reads to sensitive system paths. - IAM and least privilege: disable anonymous read access; use matrix-based security with explicit role separation. Keep Agent-to-Controller Access Control enabled (default on 2.x). Enforce 2FA/SSO on all admin accounts.
- Configuration baseline: pin CLI-related settings via Configuration-as-Code (JCasC) in Git and run drift detection, so a reintroduced CLI port or
allowAtSyntax=trueis caught quickly. - Backup and forensics: snapshot
$JENKINS_HOMEbefore patching so logs,audit-trail-plugin data, andsecrets/timestamps remain available for later IR work.
Runbook step 3
Detection rules
- Reverse-proxy / web access logs:
POSTrequests to/clior/cli?remoting=false, often in bursts with empty or scripted user agents. Sigma shape:selection: cs-uri-stem|startswith: '/cli' AND cs-method: 'POST'. - Jenkins access log /
audit-trailplugin: CLI commands such asconnect-node,help,who-am-i,enable-jobexecuted by anonymous or unexpected users, especially with arguments beginning@/or@C:\— the direct path-traversal fingerprint. - Linux auditd on the controller:
type=SYSCALLwithexe=/opt/java/.../javaandname=/etc/shadow,/var/lib/jenkins/secrets/master.key, or/root/.ssh/id_rsa. Any read of these paths by the Jenkins JVM is suspicious. - Sysmon on a Windows controller (EID 1 / EID 11):
java.exespawningcmd.exeorpowershell.exe, indicating escalation from file read to RCE via the known remember-me-cookie / resource-root-URL chain. - Network telemetry (Zeek / Suricata): deploy ET-Open rules for CVE-2024-23897 (SID range around 2050300x) and add a custom HTTP content match for bodies containing
@/etc/,@/var/lib/jenkins/secrets, or@C:\\Windows\\. - KQL (Sentinel / Defender XDR):
DeviceProcessEvents | where InitiatingProcessFileName == "java.exe" | where FileName in~ ("sh","bash","cmd.exe","powershell.exe") | where InitiatingProcessCommandLine has "jenkins".
- Reverse-proxy / web access logs:
Detection rules
No NEOSEC detection rule is available for this vulnerability yet.
Classification under NIS2 and CRA
Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.
NIS2
NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.
Read in glossary- Actively exploited: treat the vulnerability as a priority in vulnerability handling under Art. 21(2)(e) NIS2. If it is exploited in your environment, check the reporting obligation under Art. 23 (early warning within 24 hours).
CRA
The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.
Read in glossary- Since 11.09.2026, manufacturers of affected products with digital elements must report actively exploited vulnerabilities under Art. 14 CRA, with an early warning within 24 hours via ENISA's single reporting platform.
ISO/IEC 27001
ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.
Read in glossary- Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.
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.
Source: CSA/SingCERT, pwn.watch, NVD (NIST), OSV (Open Source Vulnerabilities), cvelistv5, CISA KEV Catalog, CVE.org (MITRE)
Affected products
The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.
| Affected versions | Fixed in | ||
|---|---|---|---|
| Jenkins Project | Jenkins |
|
|
| jenkins | jenkins |
|
|
| maven | org.jenkins-ci.main:jenkins-core |
|
|
Vendors and products
Public exploit references
Publicly reported proof-of-concepts, exploit modules and detection templates for this vulnerability. NEOSEC links to the original sources only and does not provide any exploit code.
| CISA KEV Catalog | CISA Known Exploited Vulnerability (opens in a new tab)cisa.gov | actively exploited | |
| CSA/SingCERT | Active Exploitation of Multiple Vulnerabilities in Jenkins Products (opens in a new tab)CSA/SingCERT | actively exploited | |
| Packet Storm | Jenkins 2.441 LTS 2.426.3 CVE 2024 23897 Scanner (opens in a new tab)packetstormsecurity.com | PoC (publicly reported)reported, not verified | — |
| Packet Storm | Jenkins 2.441 LTS 2.426.3 Arbitrary File Read (opens in a new tab)packetstormsecurity.com | PoC (publicly reported)reported, not verified | — |
| PoC-in-GitHub (nomi-sec) | vulhub-jenkins-cve-2024-23897 (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | CVE-2024-23897 (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | cicd-goat-vapt-writeup (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | cve-2024-23897-jenkins_lfi_reproduction (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | cve-2024-23897-jenkins-poc (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | pwntilldawn-10.150.150.38 (opens in a new tab)github.com | PoC (publicly reported)reported, not verified |
References & sources
- NVD (NIST)NVD: CVE-2024-23897advisory, pwn-watch
- github.comjenkinsci/jenkins/commit/554f03782057c499c49bbb06575f0d28b5200e…web
- github.comjenkinsci/jenkinspackage
- cisa.govknown-exploited-vulnerabilities-catalog?field_cve=CVE-2024-23897web, government-resource, US government resource
- jenkins.iochangelog-stableweb
- jenkins.ioJenkins Security Advisory 2024-01-24web, Vendor advisory, Vendor advisory, pwn-watch
- sonarsource.comblog/excessive-expansion-uncovering-critical-security-vulnerabi…web
- vicarius.iovsociety/posts/the-anatomy-of-a-jenkins-vulnerability-cve-2024-…web, Exploit, Third-party advisory
- packetstormsecurity.comfiles/176839/Jenkins-2.441-LTS-2.426.3-CVE-2024-23897-Scanner.h…web, Third-party advisory, Vulnerability database
- packetstormsecurity.comfiles/176840/Jenkins-2.441-LTS-2.426.3-Arbitrary-File-Read.htmlweb, Exploit, Third-party advisory, Vulnerability database
- openwall.comlists/oss-security/2024/01/24/6web, Mailing list
- sonarsource.comblog/excessive-expansion-uncovering-critical-security-vulnerabi…Exploit, Press coverage
- pwn.watchpwn.watch: Jenkins CLI arbitrary file read (CVE-2024-23897) leads to RCEpwn-watch
- jenkins.ioJenkins Security Advisory 2024-01-24pwn-watch
- cisa.govCISA Known Exploited Vulnerabilities Catalogpwn-watch
Embed badge
Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.
<a href="https://intel.neosec.eu/en/cve/CVE-2024-23897"><img src="https://intel.neosec.eu/badge/cve/CVE-2024-23897.svg?lang=en" alt="CVE-2024-23897 – NEOSEC Intel" height="20"></a>