{"api_version":"1","generated_at":"2026-04-23T01:19:46+00:00","cve":"CVE-2023-29011","urls":{"html":"https://cve.report/CVE-2023-29011","api":"https://cve.report/api/cve/CVE-2023-29011.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-29011","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-29011"},"summary":{"title":"CVE-2023-29011","description":"Git for Windows, the Windows port of Git, ships with an executable called `connect.exe`, which implements a SOCKS5 proxy that can be used to connect e.g. to SSH servers via proxies when certain ports are blocked for outgoing connections. The location of `connect.exe`'s config file is hard-coded as `/etc/connectrc` which will typically be interpreted as `C:\\etc\\connectrc`. Since `C:\\etc` can be created by any authenticated user, this makes `connect.exe` susceptible to malicious files being placed there by other users on the same multi-user machine. The problem has been patched in Git for Windows v2.40.1. As a workaround, create the folder `etc` on all drives where Git commands are run, and remove read/write access from those folders. Alternatively, watch out for malicious `<drive>:\\etc\\connectrc` files on multi-user machines.","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-g4fv-xjqw-q7jm","name":"https://github.com/git-for-windows/git/security/advisories/GHSA-g4fv-xjqw-q7jm","refsource":"MISC","tags":[],"title":"The config file of `connect.exe` is susceptible to malicious placing · 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-29011","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29011","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"29011","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-29011","qid":"378458","title":"Git for Windows Multiple Security Vulnerability"},{"cve":"CVE-2023-29011","qid":"378588","title":"Microsoft Edge Based on Chromium Prior to 109.0.1518.115 Multiple Vulnerabilities"},{"cve":"CVE-2023-29011","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-29011","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"Git for Windows, the Windows port of Git, ships with an executable called `connect.exe`, which implements a SOCKS5 proxy that can be used to connect e.g. to SSH servers via proxies when certain ports are blocked for outgoing connections. The location of `connect.exe`'s config file is hard-coded as `/etc/connectrc` which will typically be interpreted as `C:\\etc\\connectrc`. Since `C:\\etc` can be created by any authenticated user, this makes `connect.exe` susceptible to malicious files being placed there by other users on the same multi-user machine. The problem has been patched in Git for Windows v2.40.1. As a workaround, create the folder `etc` on all drives where Git commands are run, and remove read/write access from those folders. Alternatively, watch out for malicious `<drive>:\\etc\\connectrc` files on multi-user machines."}]},"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-g4fv-xjqw-q7jm","refsource":"MISC","name":"https://github.com/git-for-windows/git/security/advisories/GHSA-g4fv-xjqw-q7jm"},{"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-g4fv-xjqw-q7jm","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.6,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/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":[]}}}