{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-23946 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2023-23946 is a medium-severity path traversal vulnerability in git, published on 14 Feb 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-23946 and fix it if it is affected.\n\nWhat it is: CVE-2023-23946 is a medium-severity path traversal vulnerability in git, published on 14 Feb 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-23946 in the wild and no public exploit code.\n\nAffected product: git. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2023-23946/ (Markdown: https://insights.sbomify.com/CVE-2023-23946/index.md)","id":"CVE-2023-23946","markdown":"https://insights.sbomify.com/CVE-2023-23946/index.md","name":"CVE-2023-23946","record":{"aliases":["ALPINE-CVE-2023-23946","CLEANSTART-2026-ZB48297","CLSA-2024-1714728645","DEBIAN-CVE-2023-23946","GHSA-r87m-v37r-cwfh","UBUNTU-CVE-2023-23946"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Git version control","requires_auth":"none","summary":"Attackers can overwrite files outside the working tree by crafting malicious input to git apply, potentially modifying user data.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"git","vendor":"git-scm"}],"cvss":{"score":6.2,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Git, a revision control system, is vulnerable to path traversal prior to versions 2.39.2, 2.38.4, 2.37.6, 2.36.5, 2.35.7, 2.34.7, 2.33.7, 2.32.6, 2.31.7, and 2.30.8. By feeding a crafted input to `git apply`, a path outside the working tree can be overwritten as the user who is running `git apply`. A fix has been prepared and will appear in v2.39.2, v2.38.4, v2.37.6, v2.36.5, v2.35.7, v2.34.7, v2.33.7, v2.32.6, v2.31.7, and v2.30.8. As a workaround, use `git apply --stat` to inspect a patch before applying; avoid applying one that creates a symbolic link and then creates a file beyond the symbolic link.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2023-09-07","github_poc":2,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-09-07T10:07:25Z","kind":"github_poc","ref":"https://github.com/bruno-1337/CVE-2023-23946-POC","stars":1,"title":"Explanation and POC of the CVE-2023-23946"},{"date":"2026-05-16T17:08:07Z","kind":"github_poc","ref":"https://github.com/tralsesec/CVE-2023-23946","stars":0,"title":"Original standalone Proof-of-Concept exploit for CVE-2023-23946 (Git path traversal via crafted patches in git-apply)."}],"tier":"poc_unverified"},"has_fix":true,"headline":"Git's `git apply` overwriting paths outside the working tree","id":"CVE-2023-23946","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":0,"n_references":3,"next":{"headline":"Argo CD users with any cluster secret update access may update out-of-bounds cluster secrets","id":"CVE-2023-23947"},"packages":[],"prev":{"headline":"Nexcloud Mail app temporarily stores cleartext password in database","id":"CVE-2023-23944"},"products":["git"],"published":"2023-02-14","related":[{"cvss_score":9.8,"headline":"gitattributes parsing integer overflow in git","id":"CVE-2022-23521","kev_date_added":null,"published":"2023-01-17"},{"cvss_score":9.8,"headline":"Integer overflow in `git archive`, `git log --format` leading to RCE in git","id":"CVE-2022-41903","kev_date_added":null,"published":"2023-01-17"},{"cvss_score":9.8,"headline":"Security feature bypass in Git","id":"CVE-2019-1353","kev_date_added":null,"published":"2020-01-24"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2016-2315","kev_date_added":null,"published":"2016-04-08"},{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2016-2324","kev_date_added":null,"published":"2016-04-08"},{"cvss_score":8.8,"headline":"Command injection in Git","id":"CVE-2019-1387","kev_date_added":null,"published":"2019-12-18"},{"cvss_score":8.8,"headline":"Command injection in n/a","id":"CVE-2017-1000117","kev_date_added":null,"published":"2017-10-04"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["git"]},"summary":"Attackers can overwrite files outside the working tree by crafting malicious input to git apply, potentially modifying user data.","url":"https://insights.sbomify.com/CVE-2023-23946/"}