Skip to content
RedCVE

CVE-2026-100689Gitpython Developers GitPython path traversal

gitpython-developersPublished:

CVSS score

8.7

High

CVSS 4.0 from vulncheck.com

Exploit probability (EPSS)

0.40%

0.40% chance of exploitation in the next 30 days, higher than 35.1% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official description

GitPython before 3.1.62 does not validate the `path` field read from an untrusted .gitmodules file when updating submodules. While a prior fix (GHSA-hmq2-w58f-27jc) added Submodule._validated_name() to constrain the `name` field, and GitPython's own containment guard Submodule._to_relative_path() is applied in add() and move(), Submodule.update() derives the absolute checkout location from the raw `path` value without that guard. A .gitmodules entry containing directory traversal components (e.g., path = ../../../tmp/escaped) can therefore cause directories to be created via os.makedirs() outside the repository working tree, populated from the submodule URL on the clone path, and removed via shutil.rmtree() when force_remove is used. Exploitation requires an application flow that updates submodules at a non-HEAD commit (such as a historical-commit API); the common clone-then-update flow re-derives the path from a canonical tree lookup and is not affected. The issue is fixed in GitPython 3.1.62.

Source: NVD · CNA: disclosure@vulncheck.com

How to fix it, step by step

  1. Check whether you're affected

    Find every system running gitpython-developers GitPython and compare its version with the affected versions.

  2. Update to a fixed version

    • Update GitPython to 3.1.62 or later.
  3. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None

Values in red make the vulnerability easier to exploit or more damaging. CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/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

Affected products

Affected productsVersions
gitpython-developers GitPython< 3.1.62

Weakness

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-100689 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.4% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-100689?

CVE-2026-100689 has a CVSS 4.0 base score of 8.7 (high).

Which versions are affected?

Gitpython Developers GitPython (< 3.1.62)

Is there a patch for CVE-2026-100689?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.