Arbitrary File Read Vulnerability in Jenkins CLI Command Parser
CVE-2024-23897
Key Information:
Timeline
Exploit known 2 days after it was published
- 🟡
Public PoC available
- 🦅
CISA Reported
- 🥇
Vulnerability reached the number 1 worldwide trending spot
- 💰
Used in Ransomware
- 👾
Exploit known to exist
- 📈
Vulnerability started trending
- 📰
First article discovered by Penetration Testing
Vulnerability published
Vulnerability Reserved
Badges
How risky is it?
- Yes: Works over the network, no login needed
- Yes: Public exploit code (17 proof-of-concepts)
- Yes: Attacked in the wild (on CISA's KEV list)
- Yes: Used by ransomware
Our verdict
Patch now
Attackers are using it. Patch or mitigate today.
What to do
1Check the vendor's fix
No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.
Read the vendor advisory ↗2Follow CISA's required action
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
3Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach Jenkins. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
4Look for signs of compromise
It is being exploited in the wild, so check logs on exposed Jenkins systems for unusual requests or new processes from before you patched. The 17 public proof-of-concepts show what an attack looks like.
5Why it's rated "Patch now"
- CISA lists it as a Known Exploited Vulnerability, so it is being attacked in the wild.
- Ransomware groups use it.
- Exploit code is public, so attacks are easy to copy.
- It can be exploited remotely without credentials.
- EPSS gives it a 99.9% chance of exploitation in the next 30 days.
- Its CVSS severity is critical (9.8).
What is CVE-2024-23897?
CVE-2024-23897 is a critical vulnerability in Jenkins, an open-source automation server. The flaw exists in the CLI command parser, which does not disable a feature that allows an '@' character followed by a file path in an argument to be replaced with the file's contents. This enables unauthenticated attackers to read arbitrary files on the Jenkins controller file system, potentially exposing sensitive information.
The vulnerability affects Jenkins versions 2.441 and earlier, as well as LTS 2.426.2 and earlier. It has been exploited in the wild, with reports indicating that ransomware groups have used it to infiltrate organizations. The flaw is fixed in versions 2.442 and LTS 2.426.3.
Potential Impact of CVE-2024-23897
-
Arbitrary File Read: Attackers can read arbitrary files on the Jenkins controller file system, which may include sensitive information such as credentials and configuration files.
-
Potential for Remote Code Execution: By reading sensitive files, attackers may escalate privileges and execute arbitrary code on the Jenkins server.
CISA has reported CVE-2024-23897
CISA provides regional cyber and physical services to support security and resilience across the United States. CISA monitor the most dangerous vulnerabilities and have identified CVE-2024-23897 as being exploited and is known by the CISA as enabling ransomware campaigns.
The CISA's recommendation is: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Affected Version(s)
Jenkins 0
Jenkins 0 < 1.606
Jenkins 2.442
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
News Articles
Critical Jenkins vulnerability added to CISA’s known vulnerabilities catalog
The RCE vulnerability was leveraged in ransomware attacks targeting Indian banks.
Exploit Released for Critical Jenkins RCE Flaw
Jenkins has been discovered with a critical vulnerability that is associated with arbitrary code execution that threat actors can exploit for malicious purposes.
Vulnerabilities, Vulnerabilities Everywhere – PSW #840
This week: YAVD: Yet Another Vulnerable Driver, why bring your own when one already exists, backdoors in MIFARE Classic, wireless hacking tips, AMD sinkclose vulnerability will keep running, you down with SLDP yea you know me, Phrack!, IoTGoats, Pixel vulnerabilities, leaking variables, a DEF CON ta...
References
More Jenkins Vulnerabilities
Deserialization Vulnerability in Jenkins
Deserialization Flaw in Jenkins
Deserialization Flaw in Jenkins Core Products
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction