CVE-2022-29187
Detail
Modified After Enrichment
This CVE record has been updated after NVD enrichment efforts were completed. Enrichment data supplied by the NVD may require amendment due to these changes.
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.
Metrics
CVSS Version 4.0
CVSS Version 3.x
CVSS Version 2.0
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
CVSS 4.0 Severity and Vector Strings:
NVD assessment
not yet provided.
CVSS 3.x Severity and Vector Strings:
Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0 Severity and Vector Strings:
Vector:
(AV:L/AC:M/Au:N/C:C/I:C/A:C)
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected] .
URL
Source(s)
Tag(s)
http://seclists.org/fulldisclosure/2022/Nov/1
CVE, GitHub, Inc.
Mailing List
Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/07/14/1
CVE, GitHub, Inc.
Mailing List
Third Party Advisory
https://github.blog/2022-04-12-git-security-vulnerability-announced
CVE, GitHub, Inc.
Third Party Advisory
https://github.com/git/git/security/advisories/GHSA-j342-m5hw-rr3v
CVE, GitHub, Inc.
Third Party Advisory
https://lists.debian.org/debian-lts-announce/2022/12/msg00025.html
CVE, GitHub, Inc.
Mailing List
Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DDI325LOO2XBDDKLINOAQJEG6MHAURZE/
CVE, GitHub, Inc.
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DIKWISWUDFT2FAITYIA6372BVLH3OOOC/
CVE, GitHub, Inc.
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HVOLER2PIGMHPQMDGG4RDE2KZB74QLA2/
CVE, GitHub, Inc.
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TRZG5CDUQ27OWTPC5MQOR4UASNXHWEZS/
CVE, GitHub, Inc.
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UDZRZAL7QULOB6V7MKT66MOMWJLBJPX4/
CVE, GitHub, Inc.
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YROCMBWYFKRSS64PO6FUNM6L7LKBUKVW/
CVE, GitHub, Inc.
https://lore.kernel.org/git/xmqqv8s2fefi.fsf%40gitster.g/T/#u
CVE, GitHub, Inc.
https://security.gentoo.org/glsa/202312-15
CVE, GitHub, Inc.
https://security.gentoo.org/glsa/202401-17
CVE, GitHub, Inc.
https://support.apple.com/kb/HT213496
CVE, GitHub, Inc.
Third Party Advisory
Weakness Enumeration
CWE-ID
CWE Name
Source
CWE-427
Uncontrolled Search Path Element
NIST
GitHub, Inc.
CWE-282
Improper Ownership Management
GitHub, Inc.
Change History
19 change records found show changes
CVE Modified by GitHub, Inc.
6/17/2026 12:39:46 AM
Action
Type
Old Value
New Value
Added
Affected
[{"vendor":"git","product":"git","versions":[{"version":">= 2.30.3, < 2.30.5","status":"affected"},{"version":">= 2.31.2, < 2.31.4","status":"affected"},{"version":">= 2.32.1, < 2.32.3","status":"affected"},{"version":">= 2.33.2, < 2.33.4","status":"affected"},{"version":">= 2.34.2, < 2.34.4","status":"affected"},{"version":">= 2.35.2, < 2.35.4","status":"affected"},{"version":">= 2.36, < 2.36.2","status":"affected"},{"version":">= 2.37, < 2.37.1","status":"affected"}]}]
CVE Modified by CVE
11/21/2024 1:58:40 AM
Action
Type
Old Value
New Value
Added
Reference
http://seclists.org/fulldisclosure/2022/Nov/1
Added
Reference
http://www.openwall.com/lists/oss-security/2022/07/14/1
Added
Reference
https://github.blog/2022-04-12-git-security-vulnerability-announced
Added
Reference
https://github.com/git/git/security/advisories/GHSA-j342-m5hw-rr3v
Added
Reference
https://lists.debian.org/debian-lts-announce/2022/12/msg00025.html
Added
Reference
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DDI325LOO2XBDDKLINOAQJEG6MHAURZE/
Added
Reference
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DIKWISWUDFT2FAITYIA6372BVLH3OOOC/
Added
Reference
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HVOLER2PIGMHPQMDGG4RDE2KZB74QLA2/
Added
Reference
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TRZG5CDUQ27OWTPC5MQOR4UASNXHWEZS/
Added
Reference
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UDZRZAL7QULOB6V7MKT66MOMWJLBJPX4/
Added
Reference
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YROCMBWYFKRSS64PO6FUNM6L7LKBUKVW/
Added
Reference
https://lore.kernel.org/git/xmqqv8s2fefi.fsf%40gitster.g/T/#u
Added
Reference
https://security.gentoo.org/glsa/202312-15
Added
Reference
https://security.gentoo.org/glsa/202401-17
Added
Reference
https://support.apple.com/kb/HT213496
CVE Modified by GitHub, Inc.
5/14/2024 6:29:57 AM
Action
Type
Old Value
New Value
CVE Modified by GitHub, Inc.
1/14/2024 5:15:08 AM
Action
Type
Old Value
New Value
Added
Reference
GitHub, Inc. https://security.gentoo.org/glsa/202401-17 [No types assigned]
CVE Modified by GitHub, Inc.
12/27/2023 5:15:37 AM
Action
Type
Old Value
New Value
Added
Reference
GitHub, Inc. https://security.gentoo.org/glsa/202312-15 [No types assigned]
CVE Modified by GitHub, Inc.
11/06/2023 10:45:57 PM
Action
Type
Old Value
New Value
Added
Reference
GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DDI325LOO2XBDDKLINOAQJEG6MHAURZE/ [No types assigned]
Added
Reference
GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DIKWISWUDFT2FAITYIA6372BVLH3OOOC/ [No types assigned]
Added
Reference
GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HVOLER2PIGMHPQMDGG4RDE2KZB74QLA2/ [No types assigned]
Added
Reference
GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TRZG5CDUQ27OWTPC5MQOR4UASNXHWEZS/ [No types assigned]
Added
Reference
GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UDZRZAL7QULOB6V7MKT66MOMWJLBJPX4/ [No types assigned]
Added
Reference
GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YROCMBWYFKRSS64PO6FUNM6L7LKBUKVW/ [No types assigned]
Added
Reference
GitHub, Inc. https://lore.kernel.org/git/xmqqv8s2fefi.fsf%40gitster.g/T/#u [No types assigned]
Removed
Reference
GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected] /message/DDI325LOO2XBDDKLINOAQJEG6MHAURZE/
Removed
Reference
GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected] /message/DIKWISWUDFT2FAITYIA6372BVLH3OOOC/
Removed
Reference
GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected] /message/HVOLER2PIGMHPQMDGG4RDE2KZB74QLA2/
Removed
Reference
GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected] /message/TRZG5CDUQ27OWTPC5MQOR4UASNXHWEZS/
Removed
Reference
GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected] /message/UDZRZAL7QULOB6V7MKT66MOMWJLBJPX4/
Removed
Reference
GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected] /message/YROCMBWYFKRSS64PO6FUNM6L7LKBUKVW/
Removed
Reference
GitHub, Inc. https://lore.kernel.org/git/[email protected] /T/#u
Modified Analysis by NIST
4/14/2023 2:43:22 PM
Action
Type
Old Value
New Value
Changed
CPE Configuration
OR
*cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
*cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
OR
*cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
*cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
*cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
Added
CPE Configuration
OR
*cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
Changed
Reference Type
https://lists.debian.org/debian-lts-announce/2022/12/msg00025.html No Types Assigned
https://lists.debian.org/debian-lts-announce/2022/12/msg00025.html Mailing List, Third Party Advisory
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/[email protected] /message/DIKWISWUDFT2FAITYIA6372BVLH3OOOC/ No Types Assigned
https://lists.fedoraproject.org/archives/list/[email protected] /message/DIKWISWUDFT2FAITYIA6372BVLH3OOOC/ Mailing List, Third Party Advisory
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/[email protected] /message/HVOLER2PIGMHPQMDGG4RDE2KZB74QLA2/ No Types Assigned
https://lists.fedoraproject.org/archives/list/[email protected] /message/HVOLER2PIGMHPQMDGG4RDE2KZB74QLA2/ Mailing List, Third Party Advisory
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/[email protected] /message/UDZRZAL7QULOB6V7MKT66MOMWJLBJPX4/ No Types Assigned
https://lists.fedoraproject.org/archives/list/[email protected] /message/UDZRZAL7QULOB6V7MKT66MOMWJLBJPX4/ Mailing List, Third Party Advisory
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/[email protected] /message/YROCMBWYFKRSS64PO6FUNM6L7LKBUKVW/ No Types Assigned
https://lists.fedoraproject.org/archives/list/[email protected] /message/YROCMBWYFKRSS64PO6FUNM6L7LKBUKVW/ Mailing List, Third Party Advisory
CVE Modified by GitHub, Inc.
1/30/2023 10:15:09 PM
Action
Type
Old Value
New Value
Added
Reference
https://lists.fedoraproject.org/archives/list/[email protected] /message/UDZRZAL7QULOB6V7MKT66MOMWJLBJPX4/ [No Types Assigned]
CVE Modified by GitHub, Inc.
1/29/2023 10:15:08 PM
Action
Type
Old Value
New Value
Added
Reference
https://lists.fedoraproject.org/archives/list/[email protected] /message/HVOLER2PIGMHPQMDGG4RDE2KZB74QLA2/ [No Types Assigned]
CVE Modified by GitHub, Inc.
1/28/2023 10:15:09 PM
Action
Type
Old Value
New Value
Added
Reference
https://lists.fedoraproject.org/archives/list/[email protected] /message/YROCMBWYFKRSS64PO6FUNM6L7LKBUKVW/ [No Types Assigned]
CVE Modified by GitHub, Inc.
1/27/2023 6:15:11 AM
Action
Type
Old Value
New Value
Added
Reference
https://lists.fedoraproject.org/archives/list/[email protected] /message/DIKWISWUDFT2FAITYIA6372BVLH3OOOC/ [No Types Assigned]
CVE Modified by GitHub, Inc.
12/13/2022 8:15:10 PM
Action
Type
Old Value
New Value
Added
Reference
https://lists.debian.org/debian-lts-announce/2022/12/msg00025.html [No Types Assigned]
Modified Analysis by NIST
12/08/2022 8:45:05 PM
Action
Type
Old Value
New Value
Added
CWE
NIST CWE-427
Added
CPE Configuration
OR
*cpe:2.3:a:apple:xcode:*:*:*:*:*:*:*:* versions up to (excluding) 14.1
Added
CPE Configuration
OR
*cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
*cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
Changed
Reference Type
http://seclists.org/fulldisclosure/2022/Nov/1 No Types Assigned
http://seclists.org/fulldisclosure/2022/Nov/1 Mailing List, Third Party Advisory
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/[email protected] /message/DDI325LOO2XBDDKLINOAQJEG6MHAURZE/ No Types Assigned
https://lists.fedoraproject.org/archives/list/[email protected] /message/DDI325LOO2XBDDKLINOAQJEG6MHAURZE/ Mailing List, Third Party Advisory
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/[email protected] /message/TRZG5CDUQ27OWTPC5MQOR4UASNXHWEZS/ No Types Assigned
https://lists.fedoraproject.org/archives/list/[email protected] /message/TRZG5CDUQ27OWTPC5MQOR4UASNXHWEZS/ Mailing List, Third Party Advisory
Changed
Reference Type
https://support.apple.com/kb/HT213496 No Types Assigned
https://support.apple.com/kb/HT213496 Third Party Advisory
CVE Modified by GitHub, Inc.
11/08/2022 12:15:11 AM
Action
Type
Old Value
New Value
Added
Reference
http://seclists.org/fulldisclosure/2022/Nov/1 [No Types Assigned]
CVE Modified by GitHub, Inc.
11/01/2022 4:15:17 PM
Action
Type
Old Value
New Value
Added
Reference
https://support.apple.com/kb/HT213496 [No Types Assigned]
CVE Modified by GitHub, Inc.
7/28/2022 11:15:07 PM
Action
Type
Old Value
New Value
Added
Reference
https://lists.fedoraproject.org/archives/list/[email protected] /message/DDI325LOO2XBDDKLINOAQJEG6MHAURZE/ [No Types Assigned]
CVE Modified by GitHub, Inc.
7/21/2022 3:15:10 PM
Action
Type
Old Value
New Value
Added
Reference
https://lists.fedoraproject.org/archives/list/[email protected] /message/TRZG5CDUQ27OWTPC5MQOR4UASNXHWEZS/ [No Types Assigned]
Initial Analysis by NIST
7/20/2022 5:05:45 AM
Action
Type
Old Value
New Value
Added
CVSS V3.1
NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Added
CVSS V2
NIST (AV:L/AC:M/Au:N/C:C/I:C/A:C)
Added
CPE Configuration
OR
*cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions from (including) 2.30.3 up to (excluding) 2.30.5
*cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions from (including) 2.31.2 up to (excluding) 2.31.4
*cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions from (including) 2.32.1 up to (excluding) 2.32.3
*cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions from (including) 2.33.2 up to (excluding) 2.33.4
*cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions from (including) 2.34.2 up to (excluding) 2.34.4
*cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions from (including) 2.35.2 up to (excluding) 2.35.4
*cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions from (including) 2.36.0 up to (excluding) 2.36.2
*cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions from (including) 2.37.0 up to (excluding) 2.37.1
Changed
Reference Type
http://www.openwall.com/lists/oss-security/2022/07/14/1 No Types Assigned
http://www.openwall.com/lists/oss-security/2022/07/14/1 Mailing List, Third Party Advisory
Changed
Reference Type
https://github.blog/2022-04-12-git-security-vulnerability-announced No Types Assigned
https://github.blog/2022-04-12-git-security-vulnerability-announced Third Party Advisory
Changed
Reference Type
https://github.com/git/git/security/advisories/GHSA-j342-m5hw-rr3v No Types Assigned
https://github.com/git/git/security/advisories/GHSA-j342-m5hw-rr3v Third Party Advisory
Changed
Reference Type
https://lore.kernel.org/git/[email protected] /T/#u No Types Assigned
https://lore.kernel.org/git/[email protected] /T/#u Mailing List, Release Notes, Third Party Advisory
CVE Modified by GitHub, Inc.
7/13/2022 11:15:08 PM
Action
Type
Old Value
New Value
Added
Reference
http://www.openwall.com/lists/oss-security/2022/07/14/1 [No Types Assigned]
Quick Info
CVE Dictionary Entry: CVE-2022-29187 NVD
Published Date: 07/12/2022 NVD
Last Modified: 06/17/2026
Source: GitHub, Inc.