CVE-2023-29011
Git for Windows's config file of `connect.exe` is susceptible to malicious placing
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.
INFO
Published Date :
April 25, 2023, 9:15 p.m.
Last Modified :
Nov. 21, 2024, 7:56 a.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
---|---|---|---|---|---|---|
CVSS 3.1 | HIGH | [email protected] | ||||
CVSS 3.1 | HIGH | [email protected] |
Solution
- Microsoft has released the following security updates to address this issue: - Patch for the Update 5 for Visual Studio 2013 - Patch for the Update 3 for Visual Studio 2015 - Update 15.9.55 for Visual Studio 2017 - Update 16.11.27 for Visual Studio 2019 - Update 17.0.22 for Visual Studio 2022 - Update 17.2.16 for Visual Studio 2022 - Update 17.4.8 for Visual Studio 2022 - Update 17.6.3 for Visual Studio 2022
Public PoC/Exploit Available at Github
CVE-2023-29011 has a 6 public
PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-29011
.
URL | Resource |
---|---|
https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1 | Release Notes |
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 |
https://github.com/git-for-windows/git/security/advisories/GHSA-g4fv-xjqw-q7jm | Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-29011
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-29011
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
None
HTML
None
HTML
None
HTML CSS
None
zomotoa food app
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-29011
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-29011
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1 Added Reference https://github.com/git-for-windows/git/security/advisories/GHSA-g4fv-xjqw-q7jm -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
May. 04, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1 No Types Assigned https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1 Release Notes Changed Reference Type https://github.com/git-for-windows/git/security/advisories/GHSA-g4fv-xjqw-q7jm No Types Assigned https://github.com/git-for-windows/git/security/advisories/GHSA-g4fv-xjqw-q7jm Vendor Advisory Added CPE Configuration OR *cpe:2.3:a:git_for_windows_project:git_for_windows:*:*:*:*:*:*:*:* versions up to (excluding) 2.40.1
Vulnerability Scoring Details
Base CVSS Score: 7.8
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.08 }} 0.01%
score
0.24203
percentile