Bypass of safe.directory protections in Git
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| git | git | affected |
|
Configuration 1 [-]
|
Configuration 2 [-]
|
Configuration 3 [-]
|
Configuration 4 [-]
|
| Package | CPE | Advisory | Released Date |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | |||
| git-0:2.39.1-1.el8 | cpe:/a:redhat:enterprise_linux:8 | RHSA-2023:2859 | 2023-05-16T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Extended Update Support | |||
| git-0:2.31.8-1.el8_6 | cpe:/a:redhat:rhel_eus:8.6 | RHSA-2024:0407 | 2024-01-25T00:00:00Z |
| Red Hat Enterprise Linux 9 | |||
| git-0:2.39.1-1.el9 | cpe:/a:redhat:enterprise_linux:9 | RHSA-2023:2319 | 2023-05-09T00:00:00Z |
No data available yet.
| Source | ID | Title |
|---|---|---|
Debian DLA |
DLA-3239-1 | git security update |
Debian DLA |
DLA-3239-2 | git regression update |
Debian DSA |
DSA-5332-1 | git security update |
EUVD |
EUVD-2022-33581 | Git is a distributed revision control system. Git prior to versions 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4, and 2.30.5, is vulnerable to privilege escalation in all platforms. An unsuspecting user could still be affected by the issue reported in CVE-2022-24765, for example when navigating as root into a shared tmp directory that is owned by them, but where an attacker could create a git repository. Versions 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4, and 2.30.5 contain a patch for this issue. The simplest way to avoid being affected by the exploit described in the example is to avoid running git as root (or an Administrator in Windows), and if needed to reduce its use to a minimum. While a generic workaround is not possible, a system could be hardened from the exploit described in the example by removing any such repository if it exists already and creating one as root to block any future attacks. |
Ubuntu USN |
USN-5511-1 | Git vulnerabilities |
No CVSS v4.0
No CVSS v3.0
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.446% probability within 30 days)
Key SSVC decision points have not yet been added.
No history.