Advisory record · GHSA-hmq2-w58f-27jc

GitPython: Arbitrary Git Repository Creation Outside the Working Tree via Unvalidated .gitmodules Submodule Name in GitPython

CVSS 8.4 HighEPSS 0.0042 · 37th percentile

Published by the GitHub Advisory Database at 7 Aug 2026, 15:45 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
gitpythonPyPI<3.1.583.1.58
Identifiers
GHSA-hmq2-w58f-27jc · CVE-2026-76222 · PYSEC-2026-3784
Weakness (CWE)
CWE-22 · CWE-73
Published
7 Aug 2026
Updated
8 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

GitPython versions before 3.1.58 are affected. A malicious repository can set a submodule name in its .gitmodules file to a path traversal string, so that when a victim clones it with GitPython and initializes submodules, GitPython creates a Git repository at an attacker-chosen location outside the clone directory. Upgrade to GitPython 3.1.58 or later. The source gives few details on any workaround.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.4 High 4.0 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 CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0042, the 37th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:38 UTC First seen by agentprime
  2. 31 Oct 2026, 14:38 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.