CVE-2024-23897: Arbitrary File Read in Jenkins CLI
- Vendor
- Jenkins
CVE-2024-23897 is an arbitrary file read vulnerability affecting Jenkins weekly 2.441 and earlier and Jenkins LTS 2.426.2 and earlier. Jenkins' built-in CLI uses the args4j command parser with its expandAtFiles feature enabled, causing arguments beginning with an '@' character followed by a file path to be replaced with that file's contents. Expanded contents can be disclosed through CLI command responses, including error messages. Attackers with Overall/Read permission can read entire files, while attackers without that permission, including unauthenticated users, can read the first few lines, depending on the available commands. Files are interpreted using the controller process's default character encoding. Disclosure of sensitive information can enable further compromise, including remote code execution under additional conditions.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation exposes files readable by the Jenkins controller process, potentially disclosing source code, configuration data, credentials, SSH private keys, and cryptographic secrets. The extent of disclosure depends on Jenkins permissions, available CLI commands, and character-encoding constraints. Stolen credentials or keys can enable unauthorized access to connected systems and CI/CD infrastructure; disclosure of suitable cryptographic secrets can support remote code execution under additional conditions. Exploitation has been associated with data theft, initial access, and subsequent ransomware deployment, rather than ransomware being a direct effect of the file-read primitive.
Mitigation
If you can’t patch tonight, do this now.
Until an update can be installed, restrict access to Jenkins and its CLI interfaces to trusted administrative networks, accounting for HTTP, WebSocket, and SSH access paths. Remove unnecessary internet exposure and limit the controller process's access to sensitive files. Requiring authentication alone does not eliminate the issue because authenticated users with Overall/Read permission can disclose entire files. Monitor suspicious CLI activity, but do not treat a successful HTTP response or an echoed file argument alone as proof of successful file disclosure.
Remediation
Patch, then assume compromise.
Upgrade Jenkins weekly to 2.442 or later, or Jenkins LTS to 2.426.3 or later. These releases disable the vulnerable command-parser file-expansion behavior. For vendor-packaged Jenkins deployments, install the corresponding vendor security updates. If exploitation is suspected, investigate controller access and downstream activity, and revoke or rotate credentials and keys that may have been disclosed.
Exploits
35 exploits validated by Mallory's analysis. Hidden: 14 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries. Showing the 25 most capable, earliest first.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2024-23897 exploited in the wild?
- Yes. As of Nov 18, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Aug 19, 2024.
- Is there a public exploit for CVE-2024-23897?
- Yes. Mallory tracks 35 public exploits or proofs of concept for CVE-2024-23897, the earliest disclosed Jan 24, 2024.
- Is there a patch for CVE-2024-23897?
- Upgrade Jenkins weekly to 2.442 or later, or Jenkins LTS to 2.426.3 or later. These releases disable the vulnerable command-parser file-expansion behavior.
- What products are affected by CVE-2024-23897?
- Jenkins.
- How severe is CVE-2024-23897?
- CVE-2024-23897 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Nov 18, 2026.
Recent activity
36 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.