# CVE-2023-29011: Git for Windows's config file of `connect.exe` is susceptible to malicious placing

- Severity: High 7.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2023-04-25T20:40:30.247Z
- Modified: 2026-06-17T05:49:11.147Z
- Weaknesses: CWE-427
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- git-for-windows git: < 2.40.1
- git_for_windows_project git_for_windows: before 2.40.1

## Every score

- GitHub_M: CVSS:3.1 7.6 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/git-for-windows/git/security/advisories/GHSA-g4fv-xjqw-q7jm> (vendor-advisory)
- <https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1> (release-notes)

## Sources

- CVE List: [CVE-2023-29011](https://www.cve.org/CVERecord?id=CVE-2023-29011), CVE Terms of Use, modified 2025-02-03
- NVD: [CVE-2023-29011](https://nvd.nist.gov/vuln/detail/CVE-2023-29011), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-29011 · Whole record: https://cve.day/CVE-2023-29011.json · Rebuilt by cve.day 2026-11-25T22:58:23.752Z
