CVE-2024-23897: Arbitrary file read vulnerability through the Jenkins CLI can lead to RCE
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.99993%
CWE
Published
1/24/2024
Updated
12/20/2024
KEV Status
Yes
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.jenkins-ci.main:jenkins-core | maven | >= 1.606, <= 2.426.2 | 2.426.3 |
org.jenkins-ci.main:jenkins-core | maven | = 2.441 | 2.442 |
org.jenkins-ci.main:jenkins-core | maven | >= 2.427, < 2.440.1 | 2.440.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from args4j's expandAtFiles feature being enabled by default. The commit diff shows both CLICommand.java and CLIRegisterer.java were modified to add ParserProperties.withAtSyntax(false) via the ALLOW_AT_SYNTAX flag. The original vulnerable versions lacked these safeguards, creating parsers with default settings that permitted '@' file expansion. These two functions are the entry points for CLI argument parsing in both traditional and declarative command implementations.