{"id":"CVE-2023-29011","aliases":["CVE-2023-29011"],"related":[],"kind":"vulnerability","state":"published","title":"Git for Windows's config file of `connect.exe` is susceptible to malicious placing","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2023-04-25T20:40:30.247Z","modified":"2026-06-17T05:49:11.147Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","score":7.6,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-427"],"affected":[{"ranges":[{"version":"< 2.40.1","status":"affected"}],"vendor":"git-for-windows","product":"git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"2.40.1"}],"vendor":"git_for_windows_project","product":"git_for_windows","cpe":"cpe:2.3:a:git_for_windows_project:git_for_windows:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/git-for-windows/git/security/advisories/GHSA-g4fv-xjqw-q7jm","tags":["vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1","tags":["release-notes","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-02-03T18:07:17.305Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-29011","url":"https://www.cve.org/CVERecord?id=CVE-2023-29011","licence":"CVE Terms of Use","modified":"2025-02-03T18:07:25.939Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-29011","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29011","licence":"Public domain","modified":"2026-06-17T05:49:11.147Z"}],"updatedAt":"2026-11-25T22:58:23.752Z","epss":{"score":0.00381,"percentile":0.34211,"date":"2026-12-01T12:00:22.000Z"}}