Git for Windows's config file of `connect.exe` is susceptible to malicious placing
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 `:\etc\connectrc` files on multi-user machines.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-29011
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 03:45 UTC · Revision 1
Source evidence
Git for Windows's config file of `connect.exe` is susceptible to malicious placing
core-osv · Original sourcePublished 25 Apr 2023, 20:40 UTC
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 `:\etc\connectrc` files on multi-user machines.
osv:CVE-2023-29011
Complete source record
{
"id": "0abc50bd545d7e95d3a98d1bf8148aa7bbc37f8ae5d92a068c83e514a760288f",
"url": "https://osv.dev/vulnerability/CVE-2023-29011",
"method": "structured",
"payload": {
"kind": "advisory",
"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 `:\\etc\\connectrc` files on multi-user machines.",
"evidence": "osv:CVE-2023-29011",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2023-29011",
"aliases": [
"CVE-2023-29011",
"GHSA-g4fv-xjqw-q7jm"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/git-for-windows/git",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "ceee26d5cac05a3437097b43d034c4ad2e99d571"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.40.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "ceee26d5cac05a3437097b43d034c4ad2e99d571"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v2.40.1.windows.1"
},
{
"cpe": "cpe:2.3:a:git_for_windows_project:git_for_windows:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.40.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v2.30.0-rc2",
"v2.27.0-rc1",
"v2.21.0",
"v2.22.0-rc0",
"v2.15.0",
"v2.17.0",
"v2.18.0",
"v2.19.0",
"v2.19.0-rc2",
"v2.19.0-rc1",
"v2.19.0-rc0",
"v2.18.0-rc2",
"v2.18.0-rc1",
"v2.18.0-rc0",
"v2.17.0-rc2",
"v2.17.0-rc1",
"v2.17.0-rc0",
"v2.16.0-rc0",
"v2.16.0",
"v2.16.0-rc1",
"v2.16.0-rc2",
"v2.15.0-rc2",
"v2.15.0-rc1",
"v2.15.0-rc0",
"v2.14.0",
"v2.14.0-rc1",
"v2.11.0",
"v2.12.0",
"v2.13.0",
"v2.14.0-rc0",
"v2.13.0-rc2",
"v2.13.0-rc1",
"v2.13.0-rc0",
"v2.10.0",
"v2.12.0-rc2",
"v2.12.0-rc1",
"v2.12.0-rc0",
"v2.11.0-rc3",
"v2.9.0",
"v2.11.0-rc2",
"v2.11.0-rc1",
"v2.11.0-rc0",
"v2.10.0-rc2",
"v2.10.0-rc1",
"v2.10.0-rc0",
"v2.7.0",
"v2.9.0-rc2",
"v2.8.0",
"v2.9.0-rc1",
"v2.9.0-rc0",
"v2.8.0-rc4",
"v2.8.0-rc1",
"v2.8.0-rc3",
"v2.8.0-rc2",
"v2.8.0-rc0",
"v2.6.0",
"v2.7.0-rc3",
"v2.4.0",
"v2.7.0-rc1",
"v2.7.0-rc2",
"v2.0.0",
"v2.7.0-rc0",
"v2.6.0-rc1",
"v2.6.0-rc3",
"v2.6.0-rc2",
"v2.5.0",
"v2.6.0-rc0",
"v2.2.0",
"v2.5.0-rc3",
"v2.5.0-rc0",
"v2.5.0-rc2",
"v2.5.0-rc1",
"v2.4.0-rc0",
"v2.4.0-rc3",
"v2.4.0-rc2",
"v2.4.0-rc1",
"v2.3.0",
"v2.3.0-rc2",
"v2.3.0-rc1",
"v2.3.0-rc0",
"v1.8.5",
"v2.2.0-rc1",
"v2.2.0-rc3",
"v2.2.0-rc2",
"v2.1.0",
"v2.2.0-rc0",
"v2.1.0-rc2",
"v2.1.0-rc1",
"v2.1.0-rc0",
"v1.9.0",
"v2.0.0-rc2",
"v2.0.0-rc4",
"v2.0.0-rc3",
"v2.0.0-rc1",
"v2.0.0-rc0",
"v1.9-rc0",
"v1.9.0-rc3",
"v1.9-rc2",
"v1.9-rc1",
"v1.8.5-rc3",
"v1.8.5-rc2",
"v1.8.5-rc0",
"v1.8.5-rc1",
"v1.8.4",
"v1.8.3",
"v1.8.4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v1.4.4-rc2",
"v1.4.4-rc1",
"v1.4.3",
"v1.4.3-rc3",
"v1.4.3-rc2",
"v1.4.3-rc1",
"v1.4.2",
"v1.4.2-rc4",
"v1.4.2-rc3",
"v1.4.2-rc2",
"v1.4.2-rc1",
"v1.4.1",
"v1.4.1-rc2",
"v1.4.1-rc1",
"v1.3.0-rc1",
"v1.2.0",
"v1.1.0",
"v1.0.0",
"v1.0rc6",
"v0.99.9n",
"v1.0rc5",
"v0.99.9m",
"v1.0rc4",
"v0.99.9l",
"v0.99.9k",
"v1.0rc3",
"v0.99.9j",
"v1.0rc2",
"v0.99.9i",
"v1.0rc1",
"v0.99.9h",
"v0.99.9g",
"v0.99.9f",
"v0.99.9e",
"v0.99.9d",
"v0.99.9c",
"v0.99.9b",
"v0.99.9a",
"v0.99.8g",
"v0.99.8f",
"v0.99.8e",
"v0.99.8d",
"v0.99.8c",
"v0.99.8b",
"v0.99.8a",
"v0.99.8",
"v0.99.7",
"v0.99.6",
"v0.99.5",
"v0.99.4",
"v0.99.3",
"v0.99.2",
"v0.99.1",
"v0.99"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-29011.json"
}
}
],
"modified": "2026-10-28T02:30:49.723873665Z",
"provider": "osv",
"references": [
"https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/29xxx/CVE-2023-29011.json",
"https://github.com/git-for-windows/git/security/advisories/GHSA-g4fv-xjqw-q7jm",
"https://nvd.nist.gov/vuln/detail/CVE-2023-29011"
],
"provider_metadata": {
"cwe_ids": [
"CWE-427"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/29xxx/CVE-2023-29011.json"
}
},
"related_cves": [
{
"value": "CVE-2023-29011",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 517864,
"published_at": "2023-04-25T20:40:30.247+00:00"
}