Vulnerability Description
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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Git-Scm | Git | >= 2.30.3, < 2.30.5 |
| Fedoraproject | Fedora | 35 |
| Apple | Xcode | < 14.1 |
| Debian | Debian Linux | 10.0 |
Related Weaknesses (CWE)
References
- http://seclists.org/fulldisclosure/2022/Nov/1Mailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2022/07/14/1Mailing ListThird Party Advisory
- https://github.blog/2022-04-12-git-security-vulnerability-announcedThird Party Advisory
- https://github.com/git/git/security/advisories/GHSA-j342-m5hw-rr3vThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/12/msg00025.htmlMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lore.kernel.org/git/xmqqv8s2fefi.fsf%40gitster.g/T/#u
- https://security.gentoo.org/glsa/202312-15
- https://security.gentoo.org/glsa/202401-17
- https://support.apple.com/kb/HT213496Third Party Advisory
FAQ
What is CVE-2022-29187?
CVE-2022-29187 is a vulnerability with a CVSS score of 7.8 (HIGH). 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 unsus...
How severe is CVE-2022-29187?
CVE-2022-29187 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-29187?
Check the references section above for vendor advisories and patch information. Affected products include: Git-Scm Git, Fedoraproject Fedora, Apple Xcode, Debian Debian Linux.