Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-29187

published high CVSS 3.1 · 7.8

Bypass of safe.directory protections in Git

Published
12 Jul 2022, 00:00:00 UTC
Updated
03 Aug 2024, 06:17:54 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
git — git>= 2.30.3, < 2.30.5 · >= 2.31.2, < 2.31.4 · >= 2.32.1, < 2.32.3 · >= 2.33.2, < 2.33.4 · >= 2.34.2, < 2.34.4 · >= 2.35.2, < 2.35.4 · >= 2.36, < 2.36.2 · >= 2.37, < 2.37.1 Affected Not stated GitHub_M
Amazon Linux AL2 Release evaluationALAS2-2022-1820 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2023-065 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 git Advisory build 2.39.1-1.el8 ALSA-2023:2859
Alpine Linux edge git Fixed 2.37.1-r0 Package fix record
Debian bullseye git Advisory build 1:2.30.2-1+deb11u1 DSA-5332-1
Oracle Linux 8 gitaarch64 Advisory build 0:2.39.1-1.el8 ELSA-2023-2859
Red Hat Enterprise Linux RHEL-8 gitaarch64 Advisory build 2.31.8-1.el8_6 RHSA-2024:0407
Show 95 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE SLE-12-SP2 gitx86_64 Advisory build 2.26.2-27.57.1 SUSE-SU-2022:2537-1
Ubuntu bionic git Advisory build 1:2.17.1-1ubuntu0.12 USN-5511-1
AlmaLinux 9 git Advisory build 2.39.1-1.el9 ALSA-2023:2319
Alpine Linux v3.13 git Fixed 2.30.5-r0 Package fix record
Alpine Linux v3.14 git Fixed 2.32.3-r0 Package fix record
Alpine Linux v3.15 git Fixed 2.34.4-r0 Package fix record
Alpine Linux v3.16 git Fixed 2.36.2-r0 Package fix record
Alpine Linux v3.17 git Fixed 2.37.1-r0 Package fix record
Alpine Linux v3.18 git Fixed 2.37.1-r0 Package fix record
Alpine Linux v3.19 git Fixed 2.37.1-r0 Package fix record
Alpine Linux v3.20 git Fixed 2.37.1-r0 Package fix record
Alpine Linux v3.21 git Fixed 2.37.1-r0 Package fix record
Alpine Linux v3.22 git Fixed 2.37.1-r0 Package fix record
Alpine Linux v3.23 git Fixed 2.37.1-r0 Package fix record
Alpine Linux v3.24 git Fixed 2.37.1-r0 Package fix record
Debian buster git Advisory build 1:2.20.1-2+deb10u5 DLA-3239-1
Oracle Linux 8 gitx86_64 Advisory build 0:2.39.1-1.el8 ELSA-2023-2859
Oracle Linux 9 gitaarch64 Advisory build 0:2.39.1-1.el9 ELSA-2023-2319
Oracle Linux 9 gitx86_64 Advisory build 0:2.39.1-1.el9 ELSA-2023-2319
Red Hat Enterprise Linux RHEL-8 gitaarch64 Advisory build 2.39.1-1.el8 RHSA-2023:2859
Red Hat Enterprise Linux RHEL-8 gitppc64le Advisory build 2.31.8-1.el8_6 RHSA-2024:0407
Red Hat Enterprise Linux RHEL-8 gitppc64le Advisory build 2.39.1-1.el8 RHSA-2023:2859
Red Hat Enterprise Linux RHEL-8 gits390x Advisory build 2.31.8-1.el8_6 RHSA-2024:0407
Red Hat Enterprise Linux RHEL-8 gits390x Advisory build 2.39.1-1.el8 RHSA-2023:2859
Red Hat Enterprise Linux RHEL-8 gitsrc Advisory build 2.31.8-1.el8_6 RHSA-2024:0407
Red Hat Enterprise Linux RHEL-8 gitsrc Advisory build 2.39.1-1.el8 RHSA-2023:2859
Red Hat Enterprise Linux RHEL-8 gitx86_64 Advisory build 2.31.8-1.el8_6 RHSA-2024:0407
Red Hat Enterprise Linux RHEL-8 gitx86_64 Advisory build 2.39.1-1.el8 RHSA-2023:2859
Red Hat Enterprise Linux RHEL-9 gitaarch64 Advisory build 2.39.1-1.el9 RHSA-2023:2319
Red Hat Enterprise Linux RHEL-9 gitppc64le Advisory build 2.39.1-1.el9 RHSA-2023:2319
Red Hat Enterprise Linux RHEL-9 gits390x Advisory build 2.39.1-1.el9 RHSA-2023:2319
Red Hat Enterprise Linux RHEL-9 gitsrc Advisory build 2.39.1-1.el9 RHSA-2023:2319
Red Hat Enterprise Linux RHEL-9 gitx86_64 Advisory build 2.39.1-1.el9 RHSA-2023:2319
SUSE / openSUSE SLE-12-SP3 gitx86_64 Advisory build 2.26.2-27.57.1 SUSE-SU-2022:2537-1
SUSE / openSUSE SLE-12-SP4 gitaarch64 Advisory build 2.26.2-27.57.1 SUSE-SU-2022:2537-1
SUSE / openSUSE SLE-12-SP4 gitppc64le Advisory build 2.26.2-27.57.1 SUSE-SU-2022:2537-1
SUSE / openSUSE SLE-12-SP4 gits390x Advisory build 2.26.2-27.57.1 SUSE-SU-2022:2537-1
SUSE / openSUSE SLE-12-SP4 gitx86_64 Advisory build 2.26.2-27.57.1 SUSE-SU-2022:2537-1
SUSE / openSUSE SLE-12-SP5 gitaarch64 Advisory build 2.26.2-27.57.1 SUSE-SU-2022:2537-1
SUSE / openSUSE SLE-12-SP5 gitppc64le Advisory build 2.26.2-27.57.1 SUSE-SU-2022:2537-1
SUSE / openSUSE SLE-12-SP5 gits390x Advisory build 2.26.2-27.57.1 SUSE-SU-2022:2537-1
SUSE / openSUSE SLE-12-SP5 gitx86_64 Advisory build 2.26.2-27.57.1 SUSE-SU-2022:2537-1
SUSE / openSUSE SLE-15 gitaarch64 Advisory build 2.26.2-150000.41.1 SUSE-SU-2022:2535-1
SUSE / openSUSE SLE-15 gitppc64le Advisory build 2.26.2-150000.41.1 SUSE-SU-2022:2535-1
SUSE / openSUSE SLE-15 gits390x Advisory build 2.26.2-150000.41.1 SUSE-SU-2022:2535-1
SUSE / openSUSE SLE-15 gitx86_64 Advisory build 2.26.2-150000.41.1 SUSE-SU-2022:2535-1
SUSE / openSUSE SLE-15-SP1 gitaarch64 Advisory build 2.26.2-150000.41.1 SUSE-SU-2022:2535-1
SUSE / openSUSE SLE-15-SP1 gitppc64le Advisory build 2.26.2-150000.41.1 SUSE-SU-2022:2535-1
SUSE / openSUSE SLE-15-SP1 gits390x Advisory build 2.26.2-150000.41.1 SUSE-SU-2022:2535-1
SUSE / openSUSE SLE-15-SP1 gitx86_64 Advisory build 2.26.2-150000.41.1 SUSE-SU-2022:2535-1
SUSE / openSUSE SLE-15-SP2 gitaarch64 Advisory build 2.26.2-150000.41.1 SUSE-SU-2022:2535-1
SUSE / openSUSE SLE-15-SP2 gitppc64le Advisory build 2.26.2-150000.41.1 SUSE-SU-2022:2535-1
SUSE / openSUSE SLE-15-SP2 gits390x Advisory build 2.26.2-150000.41.1 SUSE-SU-2022:2535-1
SUSE / openSUSE SLE-15-SP2 gitx86_64 Advisory build 2.26.2-150000.41.1 SUSE-SU-2022:2535-1
SUSE / openSUSE SLE-15-SP3 gitaarch64 Advisory build 2.35.3-150300.10.15.1 SUSE-SU-2022:2550-1
SUSE / openSUSE SLE-15-SP3 gitppc64le Advisory build 2.35.3-150300.10.15.1 SUSE-SU-2022:2550-1
SUSE / openSUSE SLE-15-SP3 gits390x Advisory build 2.35.3-150300.10.15.1 SUSE-SU-2022:2550-1
SUSE / openSUSE SLE-15-SP3 gitx86_64 Advisory build 2.35.3-150300.10.15.1 SUSE-SU-2022:2550-1
SUSE / openSUSE SLE-15-SP4 gitaarch64 Advisory build 2.35.3-150300.10.15.1 SUSE-SU-2022:2550-1
SUSE / openSUSE SLE-15-SP4 gitppc64le Advisory build 2.35.3-150300.10.15.1 SUSE-SU-2022:2550-1
SUSE / openSUSE SLE-15-SP4 gits390x Advisory build 2.35.3-150300.10.15.1 SUSE-SU-2022:2550-1
SUSE / openSUSE SLE-15-SP4 gitx86_64 Advisory build 2.35.3-150300.10.15.1 SUSE-SU-2022:2550-1
SUSE / openSUSE openSUSE-Leap-15.3 gitaarch64 Advisory build 2.35.3-150300.10.15.1 SUSE-SU-2022:2550-1
SUSE / openSUSE openSUSE-Leap-15.3 gitppc64le Advisory build 2.35.3-150300.10.15.1 SUSE-SU-2022:2550-1
SUSE / openSUSE openSUSE-Leap-15.3 gits390x Advisory build 2.35.3-150300.10.15.1 SUSE-SU-2022:2550-1
SUSE / openSUSE openSUSE-Leap-15.3 gitx86_64 Advisory build 2.35.3-150300.10.15.1 SUSE-SU-2022:2550-1
SUSE / openSUSE openSUSE-Leap-15.4 gitaarch64 Advisory build 2.35.3-150300.10.15.1 SUSE-SU-2022:2550-1
SUSE / openSUSE openSUSE-Leap-15.4 gitppc64le Advisory build 2.35.3-150300.10.15.1 SUSE-SU-2022:2550-1
SUSE / openSUSE openSUSE-Leap-15.4 gits390x Advisory build 2.35.3-150300.10.15.1 SUSE-SU-2022:2550-1
SUSE / openSUSE openSUSE-Leap-15.4 gitx86_64 Advisory build 2.35.3-150300.10.15.1 SUSE-SU-2022:2550-1
SUSE / openSUSE openSUSE-Tumbleweed gitaarch64 Advisory build 2.37.1-1.1 OPENSUSE-SU-2024:12188-1
SUSE / openSUSE openSUSE-Tumbleweed gitppc64le Advisory build 2.37.1-1.1 OPENSUSE-SU-2024:12188-1
SUSE / openSUSE openSUSE-Tumbleweed gits390x Advisory build 2.37.1-1.1 OPENSUSE-SU-2024:12188-1
SUSE / openSUSE openSUSE-Tumbleweed gitx86_64 Advisory build 2.37.1-1.1 OPENSUSE-SU-2024:12188-1
Ubuntu focal git Advisory build 1:2.25.1-1ubuntu3.5 USN-5511-1
Ubuntu jammy git Advisory build 1:2.34.1-1ubuntu1.4 USN-5511-1
AlmaLinux 8 git-all Advisory build 2.39.1-1.el8 ALSA-2023:2859
AlmaLinux 8 git-core Advisory build 2.39.1-1.el8 ALSA-2023:2859
AlmaLinux 8 git-core-doc Advisory build 2.39.1-1.el8 ALSA-2023:2859
AlmaLinux 8 git-credential-libsecret Advisory build 2.39.1-1.el8 ALSA-2023:2859
AlmaLinux 8 git-daemon Advisory build 2.39.1-1.el8 ALSA-2023:2859
AlmaLinux 8 git-email Advisory build 2.39.1-1.el8 ALSA-2023:2859
AlmaLinux 8 git-gui Advisory build 2.39.1-1.el8 ALSA-2023:2859
AlmaLinux 8 git-instaweb Advisory build 2.39.1-1.el8 ALSA-2023:2859
AlmaLinux 8 git-subtree Advisory build 2.39.1-1.el8 ALSA-2023:2859
AlmaLinux 8 git-svn Advisory build 2.39.1-1.el8 ALSA-2023:2859
AlmaLinux 8 gitk Advisory build 2.39.1-1.el8 ALSA-2023:2859
AlmaLinux 8 gitweb Advisory build 2.39.1-1.el8 ALSA-2023:2859
AlmaLinux 8 perl-Git Advisory build 2.39.1-1.el8 ALSA-2023:2859
AlmaLinux 8 perl-Git-SVN Advisory build 2.39.1-1.el8 ALSA-2023:2859
AlmaLinux 9 git-all Advisory build 2.39.1-1.el9 ALSA-2023:2319
AlmaLinux 9 git-core Advisory build 2.39.1-1.el9 ALSA-2023:2319
AlmaLinux 9 git-core-doc Advisory build 2.39.1-1.el9 ALSA-2023:2319
AlmaLinux 9 git-credential-libsecret Advisory build 2.39.1-1.el9 ALSA-2023:2319
AlmaLinux 9 git-daemon Advisory build 2.39.1-1.el9 ALSA-2023:2319

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

60

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
git git >= 2.30.3, < 2.30.5 (affected)>= 2.31.2, < 2.31.4 (affected)>= 2.32.1, < 2.32.3 (affected)>= 2.33.2, < 2.33.4 (affected)>= 2.34.2, < 2.34.4 (affected)>= 2.35.2, < 2.35.4 (affected)>= 2.36, < 2.36.2 (affected)>= 2.37, < 2.37.1 (affected) GitHub_M · cna

Weaknesses

2
  • CWE-282 CWE-282: Improper Ownership Management (GitHub_M · cna)
  • CWE-427 CWE-427: Uncontrolled Search Path Element (GitHub_M · cna)

References

15

Provider assertions

2

GitHub_M · cna

Bypass of safe.directory protections in Git

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
71be0add3252f5f127976f8359dcf07aee7070269c3c6a196a1b54202ce183a4
Ingested
23 Sep 2026, 07:59:45 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected