CVE-2024-23897: Jenkins Command Line Interface (CLI) Path Traversal Vulnerability

Reference page built from the source records below, each shown as its source publishes it. Dataset version ref-b461b86a88fb, updated 2026-11-02T23:39:54.475Z.

CISA Known Exploited Vulnerabilities

Name
Jenkins Command Line Interface (CLI) Path Traversal Vulnerability
Vendor
Jenkins
Product
Jenkins Command Line Interface (CLI)
Added to the catalog
2024-08-19
Due date for US federal agencies
2024-09-09
Weaknesses
CWE-27
Catalog version
2026.10.30

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.

Required action (CISA)

Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

Ransomware use: CISA marks this vulnerability as known to be used in ransomware campaigns. CISA does not say which group used it.

Links in CISA's notes

Read on 2026-11-02T23:39:54.475Z under licence cisa-kev-cc0@b0067899 from https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json

NVD analysis

Status
Analyzed
Published
2024-01-24T18:15:09.370
Last modified
2026-06-17T07:13:49.330
Weaknesses
CWE-22, CWE-27

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.

MetricScoreSeverityVectorScored by
CVSS 3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H[email protected] (Primary)
CVSS 3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

References

This product uses the NVD API but is not endorsed or certified by the NVD.

Read on 2026-11-02T23:42:15.686Z under licence nvd-api-terms-of-use@ff2a5288 from https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2024-23897

CVE record

Assigner
jenkins
State
PUBLISHED
Published
2024-01-24T17:52:22.842Z
Updated
2025-10-21T23:05:25.971Z

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.

References

Read on 2026-11-03T02:06:02.079Z under licence cve-terms-of-use@81bfa2f3 from https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2024/23xxx/CVE-2024-23897.json

GitHub Advisory Database

GHSA-6f9g-cxwr-q5jr: Arbitrary file read vulnerability through the Jenkins CLI can lead to RCE

Severity (GitHub)
critical
CVSS
9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H
Weaknesses
CWE-22, CWE-27
Published
2024-01-24T18:31:02Z
Updated
2025-10-22T19:24:55Z
  • maven org.jenkins-ci.main:jenkins-core: affected >= 1.606, <= 2.426.2, first patched 2.426.3
  • maven org.jenkins-ci.main:jenkins-core: affected = 2.441, first patched 2.442
  • maven org.jenkins-ci.main:jenkins-core: affected >= 2.427, < 2.440.1, first patched 2.440.1

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.

Read on 2026-11-03T07:52:58.165Z under licence ghsa-cc-by-4.0@9e5f1b3c from https://api.github.com/advisories/GHSA-6f9g-cxwr-q5jr

Also known as / affected packages

GHSA-6f9g-cxwr-q5jr

Also known as: CVE-2024-23897. OSV.dev record, GitHub advisory.

  • Maven org.jenkins-ci.main:jenkins-core: introduced 1.606, fixed 2.426.3
  • Maven org.jenkins-ci.main:jenkins-core: introduced 2.427, fixed 2.440.1
  • Maven org.jenkins-ci.main:jenkins-core: introduced 2.441, fixed 2.442

Read on 2026-11-03T01:55:03.305Z under licence ghsa-cc-by-4.0@9e5f1b3c from https://api.osv.dev/v1/vulns/GHSA-6f9g-cxwr-q5jr

Defensive techniques (MITRE D3FEND)

D3FEND maps these defensive techniques to the weakness (CWE) that NVD lists for this CVE, through the digital artifacts the weakness affects. D3FEND does not say they stop this vulnerability.

CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

D3FEND ontology version 1.6.0.

Read on 2026-11-02T23:53:56.145Z under licence d3fend-terms-of-use@f98cbc7e from https://d3fend.mitre.org/api/weakness/cwe/CWE-22.json

CWE-27: Path Traversal: 'dir/../../filename'

D3FEND ontology version 1.6.0.

Read on 2026-11-02T23:54:02.435Z under licence d3fend-terms-of-use@f98cbc7e from https://d3fend.mitre.org/api/weakness/cwe/CWE-27.json

MITRE D3FEND™ knowledge graph. © 2025 The MITRE Corporation.
"The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use D3FEND for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy." Terms: https://d3fend.mitre.org/tou/

Sources and licences

  • CISA

    Source: CISA Catalog of Known Exploited Vulnerabilities, version 2026.10.30, CC0 1.0. Use of this data does not imply endorsement by CISA or DHS.

    CC0 1.0 Universal

  • National Vulnerability Database (NIST)

    This product uses the NVD API but is not endorsed or certified by the NVD.

    NVD API Terms of Use (NIST publications in the public domain, 17 U.S.C. 105)

  • CVE Program, The MITRE Corporation

    Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation. CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.

    CVE Program Terms of Use ("CVE Usage" licence)

  • GitHub Advisory Database

    Source: GitHub Advisory Database, https://github.com/advisories/GHSA-6f9g-cxwr-q5jr, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Changes: fields selected and reformatted by ransomware-tracker.com.

    CC BY 4.0

  • GitHub Advisory Database via OSV.dev

    GHSA-6f9g-cxwr-q5jr: GitHub Advisory Database, https://github.com/advisories/GHSA-6f9g-cxwr-q5jr. Licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/), provided as is, without warranties. Retrieved via OSV.dev (https://osv.dev/vulnerability/GHSA-6f9g-cxwr-q5jr), which enriches records; fields selected and reformatted by ransomware-tracker.com.

    CC BY 4.0

  • MITRE D3FEND

    MITRE D3FEND™ knowledge graph. © 2025 The MITRE Corporation.
    "The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use D3FEND for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy." Terms: https://d3fend.mitre.org/tou/

    MITRE D3FEND Terms of Use (site + knowledge graph); source repo MIT

Cite this page

Dragons Eye Ransomware Tracker, "CVE-2024-23897: Jenkins Command Line Interface (CLI) Path Traversal Vulnerability",
entity page, dataset version ref-b461b86a88fb, updated 2026-11-02T23:39:54.475Z,
https://ransomware-tracker.com/cve/CVE-2024-23897 (accessed 2026-11-03).
Underlying source: CISA Catalog of Known Exploited Vulnerabilities, version 2026.10.30.
Underlying source: National Vulnerability Database (NIST), CVE API 2.0, record last modified 2026-06-17T07:13:49.330.
Underlying source: CVE List (CVE Program, The MITRE Corporation), record updated 2025-10-21T23:05:25.971Z.
Underlying source: GitHub Advisory Database, GHSA-6f9g-cxwr-q5jr, updated 2025-10-22T19:24:55Z.
Underlying source: GitHub Advisory Database, GHSA-6f9g-cxwr-q5jr, via OSV.dev, modified 2026-08-07T08:12:22.565142377Z.
Underlying source: MITRE D3FEND, ontology version 1.6.0.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.

CISA KEV index