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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Jenkins Project | Jenkins | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Ocp Tools 4 | jenkins | 2.426.3.1706515686-3.el8 | RHSA-2024:0778, RHSA-2024:0776, RHSA-2024:0775 |
| Red Hat Ocp Tools 4 | jenkins-2-plugins | 4.11.1706516946-1.el8 | RHSA-2024:0778, RHSA-2024:0776, RHSA-2024:0775 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Jenkins cli Ampersand Replacement Arbitrary File Read
auxiliary/gather/jenkins_cli_ampersand_arbitrary_file_read
Exploit-DB 1
- Jenkins 2.441 - Local File Inclusion EDB-51993 · webapps · Apr 15, 2024
GitHub 52 repositories · most starred shown
-
h4x0r-dz/CVE-2024-23897 ★ 208 · Jan 26, 2024
CVE-2024-23897
-
binganao/CVE-2024-23897 ★ 101 · Jan 26, 2024
-
wjlin0/CVE-2024-23897 ★ 87 · Jan 27, 2024
CVE-2024-23897 - Jenkins 任意文件读取 利用工具
-
xaitax/CVE-2024-23897 ★ 83 · Jan 26, 2024
CVE-2024-23897 | Jenkins <= 2.441 & <= LTS 2.426.2 PoC and scanner.
-
godylockz/CVE-2024-23897 ★ 46 · Feb 16, 2024
Proof of concept for CVE-2024-23897: Jenkins arbitrary file read
-
kaanatmacaa/CVE-2024-23897 ★ 23 · Feb 4, 2024
Nuclei template for CVE-2024-23897 (Jenkins LFI Vulnerability)
-
Vozec/CVE-2024-23897 ★ 19 · Jan 28, 2024
This repository presents a proof-of-concept of CVE-2024-23897
-
Maalfer/CVE-2024-23897-exploit ★ 15 · May 16, 2024
Poc para explotar la vulnerabilidad CVE-2024-23897 en versiones 2.441 y anteriores de Jenkins, mediante la cual podremos leer archivos internos del sistema sin estar autenticados
-
P4x1s/CVE-2024-23897 ★ 15 · Jan 27, 2024
CVE-2024-23897 jenkins-cli
-
verylazytech/CVE-2024-23897 ★ 11 · Sep 30, 2024
POC - Jenkins File Read Vulnerability - CVE-2024-23897
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Jenkins < 2.441 - Arbitrary File Read javascript/cves/2024/CVE-2024-23897.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.jenkins-ci.main:jenkins-core | >= 1.606, < 2.426.3 | 2.426.3 | GHSA-6f9g-cxwr-q5jr |
| Maven | org.jenkins-ci.main:jenkins-core | >= 2.427, < 2.440.1 | 2.440.1 | GHSA-6f9g-cxwr-q5jr |
| Maven | org.jenkins-ci.main:jenkins-core | >= 2.441, < 2.442 | 2.442 | GHSA-6f9g-cxwr-q5jr |
Advisories 6
- RHSA-2024:0778 Red Hat Security Advisory: Jenkins and Jenkins-2-plugins security update Red Hat Security Advisories (RHSA) · Oct 13, 2026
- RHSA-2024:0776 Red Hat Security Advisory: jenkins and jenkins-2-plugins security update Red Hat Security Advisories (RHSA) · Oct 2, 2026
- RHSA-2024:0775 Red Hat Security Advisory: jenkins and jenkins-2-plugins security update Red Hat Security Advisories (RHSA) · Oct 2, 2026
- WID-SEC-2024-1642 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 20, 2024
- WID-SEC-2024-0199 Jenkins: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 20, 2024
- NCSC-2024-0294 Kwetsbaarheden verholpen in Oracle Communications NCSC-NL (Netherlands) · Jul 17, 2024
References
- Jenkins Security Advisory 2024-01-24 vendor-advisory
- https://www.sonarsource.com/blog/excessive-expansion-uncovering-critical-security-vulnerabilities-in-jenkins/
- http://www.openwall.com/lists/oss-security/2024/01/24/6
- 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