9.8criticalExploited
Arbitrary file read vulnerability through the Jenkins CLI can lead to RCE
- Severity
- 9.8critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 99.9% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- jenkins
- Also known as
- GHSA-6f9g-cxwr-q5jrBIT-JENKINS-2024-23897
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
| Product or package | Versions | Reported by |
|---|---|---|
| Jenkins Project Jenkins | Not specified Not affected: before 1.606, from 2.442 before *, from 2.426.3 before 2.426.*, from 2.440.1 before 2.440.* | CVE List |
| jenkins jenkins | before 2.426.3, before 2.442 Not affected: before 1.606, from 2.442 before *, from 2.426.3 before 2.427, from 2.440.1 before 2.441 | CVE List, NVD |
| org.jenkins-ci.main:jenkins-core (Maven) | from 1.606 before 2.426.3, from 2.427 before 2.440.1, from 2.441 before 2.442 | GitHub Advisory Database |
| jenkins (Bitnami) | before 2.452.1 | Bitnami Vulnerability Database |
| Jenkins Jenkins Command Line Interface (CLI) | Not specified | CISA KEV |
All scores
| CISA-ADP | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Jenkins has a built-in command line interface (CLI) to access Jenkins from a script or shell environment.
Jenkins uses the args4j library to parse command arguments and options on the Jenkins controller when processing CLI commands. This command parser has a feature that replaces an @ character followed by a file path in an argument with the file’s contents (expandAtFiles). This feature is enabled by default and Jenkins 2.441 and earlier, LTS 2.426.2 and earlier does not disable it.
This allows attackers to read arbitrary files on the Jenkins controller file system using the default character encoding of the Jenkins controller process.
-
Attackers with Overall/Read permission can read entire files.
-
Attackers without Overall/Read permission can read the first few lines of files. The number of lines that can be read depends on available CLI commands. As of publication of this advisory, the Jenkins security team has found ways to read the first three lines of files in recent releases of Jenkins without having any plugins installed, and has not identified any plugins that would increase this line count.
Binary files containing cryptographic keys used for various Jenkins features can also be read, with some limitations (see note on binary files below). As of publication, the Jenkins security team has confirmed the following possible attacks in addition to reading contents of all files with a known file path. All of them leverage attackers' ability to obtain cryptographic keys from binary files, and are therefore only applicable to instances where that is feasible.
NVD (es)
Jenkins 2.441 y anteriores, LTS 2.426.2 y anteriores no desactivan una función de su analizador de comandos CLI que reemplaza un carácter '@' seguido de una ruta de archivo en un argumento con el contenido del archivo, lo que permite a atacantes no autenticados leer archivos arbitrarios en el sistema de archivos del controlador Jenkins.
Bitnami Vulnerability Database
Jenkins 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.
CISA KEV
Jenkins Command Line Interface (CLI) contains a path traversal vulnerability that allows attackers limited read access to certain files, which can lead to code execution.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-23897 changed 2025-10-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6f9g-cxwr-q5jr changed 2026-08-07 | CC-BY-4.0 |
| NVD | CVE-2024-23897 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-JENKINS-2024-23897 changed 2026-09-08 | Apache-2.0 |
| CISA KEV | CVE-2024-23897 changed 2024-08-19 | CC0-1.0 |