{"api_version":"1","generated_at":"2026-04-23T01:19:01+00:00","cve":"CVE-2023-29012","urls":{"html":"https://cve.report/CVE-2023-29012","api":"https://cve.report/api/cve/CVE-2023-29012.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-29012","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-29012"},"summary":{"title":"CVE-2023-29012","description":"Git for Windows is the Windows port of Git. Prior to version 2.40.1, any user of Git CMD who starts the command in an untrusted directory is impacted by an Uncontrolles Search Path Element vulnerability. Maliciously-placed `doskey.exe` would be executed silently upon running Git CMD. The problem has been patched in Git for Windows v2.40.1. As a workaround, avoid using Git CMD or, if using Git CMD, avoid starting it in an untrusted directory.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-04-25 21:15:00","updated_at":"2023-05-04 21:18:00"},"problem_types":["CWE-427"],"metrics":[],"references":[{"url":"https://github.com/git-for-windows/git/security/advisories/GHSA-gq5x-v87v-8f7g","name":"https://github.com/git-for-windows/git/security/advisories/GHSA-gq5x-v87v-8f7g","refsource":"MISC","tags":[],"title":"Git CMD erroneously executes `doskey.exe` in the current directory, if it exists · Advisory · git-for-windows/git · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1","name":"https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1","refsource":"MISC","tags":[],"title":"Release Git for Windows 2.40.1 · git-for-windows/git · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-29012","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29012","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"29012","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"git_for_windows_project","cpe5":"git_for_windows","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-29012","qid":"378458","title":"Git for Windows Multiple Security Vulnerability"},{"cve":"CVE-2023-29012","qid":"378588","title":"Microsoft Edge Based on Chromium Prior to 109.0.1518.115 Multiple Vulnerabilities"},{"cve":"CVE-2023-29012","qid":"92027","title":"Microsoft Visual Studio Security Updates for June 2023"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-29012","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"Git for Windows is the Windows port of Git. Prior to version 2.40.1, any user of Git CMD who starts the command in an untrusted directory is impacted by an Uncontrolles Search Path Element vulnerability. Maliciously-placed `doskey.exe` would be executed silently upon running Git CMD. The problem has been patched in Git for Windows v2.40.1. As a workaround, avoid using Git CMD or, if using Git CMD, avoid starting it in an untrusted directory."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-427: Uncontrolled Search Path Element","cweId":"CWE-427"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"git-for-windows","product":{"product_data":[{"product_name":"git","version":{"version_data":[{"version_affected":"=","version_value":"< 2.40.1"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/git-for-windows/git/security/advisories/GHSA-gq5x-v87v-8f7g","refsource":"MISC","name":"https://github.com/git-for-windows/git/security/advisories/GHSA-gq5x-v87v-8f7g"},{"url":"https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1","refsource":"MISC","name":"https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1"}]},"source":{"advisory":"GHSA-gq5x-v87v-8f7g","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.3,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H","version":"3.1"}]}},"nvd":{"publishedDate":"2023-04-25 21:15:00","lastModifiedDate":"2023-05-04 21:18:00","problem_types":["CWE-427"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git_for_windows_project:git_for_windows:*:*:*:*:*:*:*:*","versionEndExcluding":"2.40.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}