{"schemaVersion":3,"id":"CVE-2024-23897","aliases":["GHSA-6f9g-cxwr-q5jr","BIT-jenkins-2024-23897"],"status":"published","duplicateOf":null,"title":"Jenkins Command Line Interface (CLI) Path Traversal Vulnerability","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.","dates":{"published":"2024-01-24T17:52:22.842Z","modified":"2025-10-21T23:05:25.971Z","reserved":null,"kevAdded":["2024-08-19T00:00:00.000Z"],"kevDue":["2024-09-09T00:00:00.000Z"]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Maven","score":9.3,"severity":"critical","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.99999,"percentile":0.99995,"severity":"critical","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.99999},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.99999,"percentile":0.99995}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.99999,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.99999,"percentile":0.99995}]},"kev":{"state":"listed","entries":[{"source":"cisa","sourceLabel":"CISA","dateAdded":"2024-08-19T00:00:00.000Z","dueDate":"2024-09-09T00:00:00.000Z","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","name":"Jenkins Command Line Interface (CLI) Path Traversal Vulnerability","description":"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.","notes":[{"type":"url","href":"https://www.jenkins.io/security/advisory/2024-01-24/#SECURITY-3314","label":"www.jenkins.io/security/advisory/2024-01-24/"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2024-23897","label":"nvd.nist.gov/vuln/detail/CVE-2024-23897"}],"vendor":"Jenkins","product":"Jenkins Command Line Interface (CLI)","ransomware":true,"ransomwareUse":"Known","exploitationType":null}],"listedCount":1,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":true,"entry":{"source":"cisa","sourceLabel":"CISA","dateAdded":"2024-08-19T00:00:00.000Z","dueDate":"2024-09-09T00:00:00.000Z","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","name":"Jenkins Command Line Interface (CLI) Path Traversal Vulnerability","description":"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.","notes":[{"type":"url","href":"https://www.jenkins.io/security/advisory/2024-01-24/#SECURITY-3314","label":"www.jenkins.io/security/advisory/2024-01-24/"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2024-23897","label":"nvd.nist.gov/vuln/detail/CVE-2024-23897"}],"vendor":"Jenkins","product":"Jenkins Command Line Interface (CLI)","ransomware":true,"ransomwareUse":"Known","exploitationType":null}},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"known","sources":["cisa"]},"exploits":[{"id":"REF_C2570B2E6A429732","name":"Exploit Reference (sonarsource.com)","source":"reference","url":"https://www.sonarsource.com/blog/excessive-expansion-uncovering-critical-security-vulnerabilities-in-jenkins/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_DD993723EEED5CFD","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/176840/Jenkins-2.441-LTS-2.426.3-Arbitrary-File-Read.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_C860CDC301462992","name":"Exploit Reference (vicarius.io)","source":"reference","url":"https://www.vicarius.io/vsociety/posts/the-anatomy-of-a-jenkins-vulnerability-cve-2024-23897-revealed-1","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"MSF_AUXILIARY_GATHER_JENKINS_CLI_AMPERSAND_ARBITRARY_FILE_READ","name":"Jenkins cli Ampersand Replacement Arbitrary File Read","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/gather/jenkins_cli_ampersand_arbitrary_file_read.rb","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"auxiliary/gather/jenkins_cli_ampersand_arbitrary_file_read","rank":"300","rankName":"normal","postAuth":false,"check":true,"stability":["crash-safe"],"sideEffects":[],"reliability":[]}},{"id":"51993","name":"Jenkins 2.441 - Local File Inclusion","source":"exploit-database","url":"https://www.exploit-db.com/exploits/51993","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":null,"platforms":["java"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"webapps","platform":"java","file":"exploits/java/webapps/51993.py","codes":["CVE-2024-23897"]},"metasploit":null}],"exploitCount":5,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"},{"id":"CWE-27","name":"Path Traversal: 'dir/../../filename'","description":"The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize multiple internal \"../\" sequences that can resolve to a location that is outside of that directory.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/27.html"}],"affected":[{"vendor":"jenkins","product":"jenkins","name":"Jenkins","label":"jenkins","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.426.3","noFixRecorded":false,"fixedIn":null},{"text":"< 2.442","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.426.3 | < 2.442","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"jenkins","label":"Jenkins","category":"server-app"}},"hubHref":"/vendor/jenkins/jenkins"},{"vendor":"org.jenkins-ci.main","product":"jenkins-core","name":"org.jenkins-ci.main:jenkins-core","label":"jenkins-core","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.jenkins-ci.main/jenkins-core","purlType":"maven","versions":[{"text":"≥ 1.606, < 2.426.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.427, < 2.440.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.441, < 2.442","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.606, < 2.426.3 | ≥ 2.427, < 2.440.1 | ≥ 2.441, < 2.442","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.jenkins.io/security/advisory/2024-01-24/#SECURITY-3314","label":"www.jenkins.io/security/advisory/2024-01-24/","hostname":"www.jenkins.io","tags":["Vendor Advisory","WEB"]},{"url":"https://www.sonarsource.com/blog/excessive-expansion-uncovering-critical-security-vulnerabilities-in-jenkins/","label":"www.sonarsource.com/blog/…","hostname":"www.sonarsource.com","tags":["Exploit","Press/Media Coverage"]},{"url":"http://www.openwall.com/lists/oss-security/2024/01/24/6","label":"www.openwall.com/lists/oss-security/2024/01/24/6","hostname":"www.openwall.com","tags":["WEB","Mailing List"]},{"url":"http://packetstormsecurity.com/files/176839/Jenkins-2.441-LTS-2.426.3-CVE-2024-23897-Scanner.html","label":"packetstormsecurity.com/files/176839/Jenkins-2.441-LTS-2.426.3-CVE-2024-23897-Scanner.html","hostname":"packetstormsecurity.com","tags":["WEB","Third Party Advisory","VDB Entry"]},{"url":"http://packetstormsecurity.com/files/176840/Jenkins-2.441-LTS-2.426.3-Arbitrary-File-Read.html","label":"packetstormsecurity.com/files/176840/Jenkins-2.441-LTS-2.426.3-Arbitrary-File-Read.html","hostname":"packetstormsecurity.com","tags":["WEB","Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://www.vicarius.io/vsociety/posts/the-anatomy-of-a-jenkins-vulnerability-cve-2024-23897-revealed-1","label":"www.vicarius.io/vsociety/posts/the-anatomy-of-a-jenkins-vulnerability-cve-2024-23897-revealed-1","hostname":"www.vicarius.io","tags":["WEB","Exploit","Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-23897","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-23897","hostname":"www.cisa.gov","tags":["Government Resource","WEB","US Government Resource"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23897","label":"nvd.nist.gov/vuln/detail/CVE-2024-23897","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/jenkinsci/jenkins/commit/554f03782057c499c49bbb06575f0d28b5200edb","label":"github.com/jenkinsci/jenkins/commit/554f03782057c499c49bbb06575f0d28b5200edb","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/jenkinsci/jenkins","label":"github.com/jenkinsci/jenkins","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://www.jenkins.io/changelog-stable/#v2.440.1","label":"www.jenkins.io/changelog-stable/","hostname":"www.jenkins.io","tags":["WEB"]},{"url":"https://www.sonarsource.com/blog/excessive-expansion-uncovering-critical-security-vulnerabilities-in-jenkins","label":"www.sonarsource.com/blog/excessive-expansion-uncovering-critical-security-vulnerabilities-in-jenkins","hostname":"www.sonarsource.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["RHSA-2024:0775","RHSA-2024:0776","RHSA-2024:0778"],"duplicates":[],"related":["CGA-7599-VH7R-JGGH","CGA-HH8Q-GM3C-2W42","CGA-PWH9-GRGP-3CXQ"]},"timeline":[{"kind":"published","date":"2024-01-24T17:52:22.842Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"kev-added","date":"2024-08-19T00:00:00.000Z","label":"Added to CISA KEV","detail":"Jenkins Command Line Interface (CLI) Path Traversal Vulnerability","source":"cisa"},{"kind":"kev-due","date":"2024-09-09T00:00:00.000Z","label":"CISA remediation due","detail":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","source":"cisa"},{"kind":"modified","date":"2025-10-21T23:05:25.971Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":90,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T20:43:57.976Z","stale":false,"partial":false}}