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-2026-87817

published high CVSS 4.0 · 8.7

GitPython before 3.1.60 Remote Code Execution via Git Directory Impersonation

Published
09 Sep 2026, 11:21:04 UTC
Updated
08 Oct 2026, 15:25:56 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
gitpython-developers — GitPython0 to < 3.1.60 (affected · semver) · 3.1.60 (unaffected · semver) · Other versions: unaffected Version-specific Not stated VulnCheck
Debian bookworm python-git Advisory build 3.1.30-1+deb12u3 DLA-4872-1
SUSE / openSUSE SLE-15-SP4 python311-GitPythonnoarch Advisory build 3.1.34.1693646983.2a2ae77-150400.9.11.1 SUSE-SU-2026:4191-1
Debian trixie python-git Advisory build 3.1.44-1+deb13u1 DSA-6594-1
SUSE / openSUSE SLE-15-SP5 python311-GitPythonnoarch Advisory build 3.1.34.1693646983.2a2ae77-150400.9.11.1 SUSE-SU-2026:4191-1
SUSE / openSUSE SLE-15-SP6 python311-GitPythonnoarch Advisory build 3.1.34.1693646983.2a2ae77-150400.9.11.1 SUSE-SU-2026:4191-1
SUSE / openSUSE SLE-15-SP7 python311-GitPythonnoarch Advisory build 3.1.34.1693646983.2a2ae77-150400.9.11.1 SUSE-SU-2026:4191-1
SUSE / openSUSE SLE-3-SP7 python311-GitPythonnoarch Advisory build 3.1.34.1693646983.2a2ae77-150400.9.11.1 SUSE-SU-2026:4191-1
Show 1 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Leap-16.0 python313-GitPythonnoarch Advisory build 3.1.44-160000.4.1 OPENSUSE-SU-2026:21874-1

Description

GitPython before 3.1.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked files like gitdir, commondir, and HEAD. Attackers can execute arbitrary code by placing a malicious pre-commit hook in the tracked hooks directory that executes when a victim calls index.commit() on a cloned or opened repository.

en · VulnCheck · cna

Vendor advisories explicitly linked to this CVE.

8

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
4.0
Base score
8.7 / 10
Severity
high
Provider
VulnCheck · cna
Vector string
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 8.8 high VulnCheck · cna CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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
gitpython-developers GitPython 0 to < 3.1.60 (affected · semver)3.1.60 (unaffected · semver)Default: unaffected VulnCheck · cna

Weaknesses

1
  • CWE-94 Improper Control of Generation of Code ('Code Injection') (VulnCheck · cna)

References

2

Provider assertions

2

VulnCheck · cna

GitPython before 3.1.60 Remote Code Execution via Git Directory Impersonation

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
5aa291006da62956a6fa529b03dcaa147ba2583ea9565b982b16be9541a97555
Ingested
09 Oct 2026, 16:39:26 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