{"answers":{"affected":"7 open source packages ship an affected version, including org.jenkins-ci.main:jenkins-core and jenkins. It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2024-23897 in the wild since at least 19 Aug 2024, including in ransomware campaigns.","fix":"Upgrade org.jenkins-ci.main:jenkins-core to a fixed version for your release line: 2.426.3, 2.440.1 or 2.442. US federal agencies must fix it by 9 Sep 2024.","what":"CVE-2024-23897 is a critical path traversal vulnerability in Jenkins Jenkins, published on 24 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-23897 and fix it if it is affected.\n\nWhat it is: CVE-2024-23897 is a critical path traversal vulnerability in Jenkins Jenkins, published on 24 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2024-23897 in the wild since at least 19 Aug 2024, including in ransomware campaigns.\n\nAffected packages and fixed versions:\n- org.jenkins-ci.main:jenkins-core (Maven): affected from 1.606; fixed in 2.426.3\n- org.jenkins-ci.main:jenkins-core (Maven): affected from 1.606; fixed in 2.426.3\n- org.jenkins-ci.main:jenkins-core (Maven): affected from 2.427; fixed in 2.440.1\n- org.jenkins-ci.main:jenkins-core (Maven): affected from 2.427; fixed in 2.440.1\n- org.jenkins-ci.main:jenkins-core (Maven): affected from 2.441; fixed in 2.442\n- org.jenkins-ci.main:jenkins-core (Maven): affected from 2.441; fixed in 2.442\n- jenkins (Bitnami): affected all versions; fixed in 2.452.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-23897/ (Markdown: https://insights.sbomify.com/CVE-2024-23897/index.md)","id":"CVE-2024-23897","markdown":"https://insights.sbomify.com/CVE-2024-23897/index.md","name":"CVE-2024-23897","record":{"aliases":["BIT-jenkins-2024-23897","GHSA-6f9g-cxwr-q5jr"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Jenkins automation server","requires_auth":"none","summary":"Unauthenticated attackers can read arbitrary files on the Jenkins controller by exploiting CLI argument parsing, exposing sensitive system data.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"jenkins","cpe":[{"product":"jenkins","vendor":"jenkins"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-27","name":"Path Traversal: 'dir/../../filename'"}],"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.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":1,"first_seen":"2024-01-23","github_poc":50,"max_poc_stars":209,"metasploit":1,"nuclei":1,"refs":[{"date":"2024-01-26T09:44:32Z","kind":"github_poc","ref":"https://github.com/h4x0r-dz/CVE-2024-23897","stars":209,"title":"CVE-2024-23897"},{"date":"2024-01-26T08:02:00Z","kind":"github_poc","ref":"https://github.com/binganao/CVE-2024-23897","stars":101,"title":null},{"date":"2024-01-27T19:34:48Z","kind":"github_poc","ref":"https://github.com/wjlin0/CVE-2024-23897","stars":87,"title":"CVE-2024-23897 - Jenkins 任意文件读取 利用工具"},{"date":"2024-01-26T19:00:03Z","kind":"github_poc","ref":"https://github.com/xaitax/CVE-2024-23897","stars":82,"title":"CVE-2024-23897 | Jenkins \u003c= 2.441 \u0026 \u003c= LTS 2.426.2 PoC and scanner. "},{"date":"2024-02-16T07:16:04Z","kind":"github_poc","ref":"https://github.com/godylockz/CVE-2024-23897","stars":46,"title":"Proof of concept for CVE-2024-23897: Jenkins arbitrary file read"},{"date":"2024-02-04T20:56:42Z","kind":"github_poc","ref":"https://github.com/kaanatmacaa/CVE-2024-23897","stars":23,"title":"Nuclei template for CVE-2024-23897 (Jenkins LFI Vulnerability)"},{"date":"2024-01-28T01:57:06Z","kind":"github_poc","ref":"https://github.com/Vozec/CVE-2024-23897","stars":18,"title":"This repository presents a proof-of-concept of CVE-2024-23897"},{"date":"2024-01-27T12:57:28Z","kind":"github_poc","ref":"https://github.com/P4x1s/CVE-2024-23897","stars":15,"title":"CVE-2024-23897 jenkins-cli"}],"tier":"exploited"},"has_fix":true,"headline":"Jenkins Command Line Interface (CLI) Path Traversal","id":"CVE-2024-23897","indexable":true,"kev":{"dateAdded":"2024-08-19","dueDate":"2024-09-09","knownRansomwareCampaignUse":"Known","product":"Jenkins Command Line Interface (CLI)","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","vendorProject":"Jenkins","vulnerabilityName":"Jenkins Command Line Interface (CLI) Path Traversal Vulnerability"},"kind":"cve","links":{"ecosystem":"Bitnami","product":"jenkins:jenkins","products":["jenkins:jenkins"],"type":"path_traversal","year":"2024"},"n_packages":7,"n_references":5,"next":{"headline":"Cross-site WebSocket hijacking vulnerability in the Jenkins CLI","id":"CVE-2024-23898"},"packages":[{"ecosystem":"Bitnami","fixed":["2.452.1"],"introduced":["0"],"last_affected":[],"package":"jenkins","purl":"pkg:bitnami/jenkins","source":"BIT-jenkins-2024-23897"},{"ecosystem":"Maven","fixed":["2.426.3"],"introduced":["1.606"],"last_affected":[],"package":"org.jenkins-ci.main:jenkins-core","purl":null,"source":"GHSA-6f9g-cxwr-q5jr"},{"ecosystem":"Maven","fixed":["2.426.3"],"introduced":["1.606"],"last_affected":[],"package":"org.jenkins-ci.main:jenkins-core","purl":"pkg:maven/org.jenkins-ci.main/jenkins-core","source":"GHSA-6f9g-cxwr-q5jr"},{"ecosystem":"Maven","fixed":["2.440.1"],"introduced":["2.427"],"last_affected":[],"package":"org.jenkins-ci.main:jenkins-core","purl":null,"source":"GHSA-6f9g-cxwr-q5jr"},{"ecosystem":"Maven","fixed":["2.440.1"],"introduced":["2.427"],"last_affected":[],"package":"org.jenkins-ci.main:jenkins-core","purl":"pkg:maven/org.jenkins-ci.main/jenkins-core","source":"GHSA-6f9g-cxwr-q5jr"},{"ecosystem":"Maven","fixed":["2.442"],"introduced":["2.441"],"last_affected":[],"package":"org.jenkins-ci.main:jenkins-core","purl":null,"source":"GHSA-6f9g-cxwr-q5jr"},{"ecosystem":"Maven","fixed":["2.442"],"introduced":["2.441"],"last_affected":[],"package":"org.jenkins-ci.main:jenkins-core","purl":"pkg:maven/org.jenkins-ci.main/jenkins-core","source":"GHSA-6f9g-cxwr-q5jr"}],"prev":{"headline":"Cross-Site Scripting (XSS) vulnerability in Cups Easy","id":"CVE-2024-23896"},"products":["Jenkins"],"published":"2024-01-24","related":[{"cvss_score":9.8,"headline":"Jenkins Stapler Web Framework Deserialization of Untrusted Data","id":"CVE-2018-1000861","kev_date_added":"2022-02-10","published":"2018-12-10"},{"cvss_score":9.8,"headline":"Jenkins Remote Code Execution","id":"CVE-2017-1000353","kev_date_added":"2025-10-02","published":"2018-01-29"},{"cvss_score":7.5,"headline":"Jenkins User Interface (UI) Information Disclosure","id":"CVE-2015-5317","kev_date_added":"2023-05-12","published":"2015-11-25"},{"cvss_score":9.8,"headline":"Multiple vulnerabilities allow bypassing path filtering of agent-to-controller access control in Jenkins","id":"CVE-2021-21690","kev_date_added":null,"published":"2021-11-04"},{"cvss_score":9.8,"headline":"Multiple vulnerabilities allow bypassing path filtering of agent-to-controller access control in Jenkins","id":"CVE-2021-21691","kev_date_added":null,"published":"2021-11-04"},{"cvss_score":9.8,"headline":"Multiple vulnerabilities allow bypassing path filtering of agent-to-controller access control in Jenkins","id":"CVE-2021-21692","kev_date_added":null,"published":"2021-11-04"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["Jenkins Project"]},"summary":"Unauthenticated attackers can read arbitrary files on the Jenkins controller by exploiting CLI argument parsing, exposing sensitive system data.","url":"https://insights.sbomify.com/CVE-2024-23897/"}