CVE-2024-23897
jenkins: Arbitrary file read vulnerability through the CLI can lead to RCE
Overview
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: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-22, CWE-27
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | jenkins | <2.452.1 | 2.452.1 |
| Maven | org.jenkins-ci.main:jenkins-core | >=1.606, <2.426.3>=2.427, <2.440.1>=2.441, <2.442 | 2.426.32.440.12.442 |
Open a package to see all its vulnerabilities.
Operating systems · 2 fixes
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | jenkins | eol |
alpine 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| edge | jenkins | 2.426.3-r0 |
References
- packetstormsecurity.com http://packetstormsecurity.com/files/176839/Jenkins-2.441-LTS-2.426.3-CVE-2024-23897-Scanner.html
- packetstormsecurity.com http://packetstormsecurity.com/files/176840/Jenkins-2.441-LTS-2.426.3-Arbitrary-File-Read.html
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/01/24/6
- access.redhat.com https://access.redhat.com/security/cve/CVE-2024-23897
- github.com https://github.com/jenkinsci/jenkins
- github.com https://github.com/jenkinsci/jenkins/commit/554f03782057c499c49bbb06575f0d28b5200edb
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-23897
- www.cisa.gov https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- www.cisa.gov https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-23897
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2024-23897
Show all 15 references
- www.jenkins.io https://www.jenkins.io/changelog-stable/#v2.440.1
- www.jenkins.io https://www.jenkins.io/security/advisory/2024-01-24/#SECURITY-3314
- www.sonarsource.com https://www.sonarsource.com/blog/excessive-expansion-uncovering-critical-security-vulnerabilities-in-jenkins
- www.sonarsource.com https://www.sonarsource.com/blog/excessive-expansion-uncovering-critical-security-vulnerabilities-in-jenkins/
- www.vicarius.io https://www.vicarius.io/vsociety/posts/the-anatomy-of-a-jenkins-vulnerability-cve-2024-23897-revealed-1
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.