Live threats

All CVEs / Gitpython Project

CVE-2026-76222Gitpython Project Gitpython

High 8.4 No auth needed

Priority
65
CVSS 4.0
8.4
EPSS
—
Auth required
No
Published
Aug 19, 2026
Updated
Sep 2, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:H/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

GitPython before 3.1.58 fails to validate submodule names from .gitmodules files, allowing attackers to create Git repositories at arbitrary filesystem paths outside the intended clone directory. Attackers can craft malicious repositories with traversal sequences in submodule names that GitPython processes during submodule initialization, creating attacker-controlled Git repositories at escaped filesystem locations.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gitpython.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI gitpython < 3.1.58 3.1.58 pip install "gitpython>=3.1.58"
PyPI gitpython < 3.1.58 3.1.58 pip install "gitpython>=3.1.58"

Per OSV / GitHub Advisories (GHSA-hmq2-w58f-27jc, PYSEC-2026-3784). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
gitpython_projectgitpython< 3.1.58

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.