Read the docs

GitPython checks submodule paths after cloning, enabling RCE

Priority LOW 35CWE-696Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
High
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 6 fixed, 6 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.

Summary

GitPython before 3.2.1 is affected, including the Gitpython PyPI package. Its create_submodule() function clones into a submodule path before rejecting unsafe destinations, so a crafted submodule can leave an executable post-checkout hook that later Git operations run (CWE-696). A remote attacker who controls a submodule path can run code in an application that accepts untrusted submodule paths, but the attack depends on specific conditions.

Written with Claude Haiku 5.5 from the sources below · 2026-11-06

Description from the CNA

GitPython is a python library used to interact with Git repositories. Prior to 3.2.1, create_submodule() in git/objects/submodule/base.py accepts an attacker-influenced submodule path such as .git/hooks and invokes _clone_repo() before safely rejecting the destination. In 3.1.x, _validate_repo_path() does not exist and the call succeeds silently, while in 3.2.0 and later affected revisions the check in git/index/base.py raises ValueError only after the clone has written to disk and does not remove the planted file. An attacker-controlled submodule can therefore place an executable post-checkout hook that a later Git operation executes. Exploitation requires an application to accept an untrusted submodule path and a clone destination such as .git/hooks that is empty enough for Git to clone into it, which commonly means that default sample hooks are absent. This issue is fixed in version 3.2.1.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00423 36th percentileScored 2026-11-07
Fix Partial GitPython (gitpython-developers): 3.2.1Gitpython (PyPI): 3.2.1Red Hat: 5 advisoriesRed Hat: 6 fixed, 6 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
gitpython-developersGitPythonbefore 3.2.13.2.1Patch availableCNA
—Gitpython (PyPI)before 3.2.13.2.1Patch availableGHSA-83vg-56qc-22m7
  • GitPython Vendorgitpython-developers Affected before 3.2.1 Fixed in 3.2.1 Patch available CNA
  • Gitpython (PyPI) Vendor— Affected before 3.2.1 Fixed in 3.2.1 Patch available GHSA-83vg-56qc-22m7

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:*:*:*——gitpython-developers

Remediation

Upgrade GitPython to version 3.2.1. Red Hat fixes are in RHSA-2026:92510 (OpenShift AI 3.4), RHSA-2026:92861 (Satellite 6.19 for RHEL 9), RHSA-2026:95656 (Satellite 6.17 for RHEL 9), RHSA-2026:95657 (Satellite 6.18 for RHEL 9) and RHSA-2026:95655 (Satellite 6.16 for RHEL 8 and 9). Red Hat has no planned fix for AI Inference Server. The sources list no fixed version for Ansible Automation Platform 2, RHEL AI 3, OpenShift AI (RHOAI) and Satellite 6.

Written with Claude Haiku 5.5 from the sources below · 2026-11-06

  • Fix · CNA GitPython (gitpython-developers) Fixed in 3.2.1
  • Fix · GHSA-83vg-56qc-22m7 Gitpython (PyPI) Fixed in 3.2.1 Advisory →

Red Hat 5 advisories

  • RHSA-2026:95655 Released 2026-11-05 · Red Hat rating Critical
    Satellite 6.16 EUS security update
    • Red Hat Satellite 6.16 for RHEL 8 openvox-agent-8.32.0-1.el8sat, openvox-server-8.18.0-1.el8sat, python-brotli-1.2.1-1.el8pc +11
    • Red Hat Satellite 6.16 for RHEL 9 openvox-agent-8.32.0-1.el9sat, openvox-server-8.18.0-1.el9sat, python-brotli-1.2.1-1.el9pc +11
  • RHSA-2026:95657 Released 2026-11-05 · Red Hat rating Critical
    Satellite 6.18 security update
    • Red Hat Satellite 6.18 for RHEL 9 openvox-agent-8.32.0-1.el9sat, openvox-server-8.18.0-1.el9sat, python3.12-brotli-1.2.1-1.el9pc +4
  • RHSA-2026:95656 Released 2026-11-05 · Red Hat rating Critical
    Satellite 6.17 security update
    • Red Hat Satellite 6.17 for RHEL 9 openvox-agent-8.32.0-1.el9sat, openvox-server-8.18.0-1.el9sat, python-brotli-1.2.1-1.el9pc +9
Show 2 more Red Hat advisories
  • RHSA-2026:92861 Released 2026-10-29 · Red Hat rating Critical
    Satellite 6.19 security update
    • Red Hat Satellite 6.19 for RHEL 9 openvox-agent-8.31.1-1.el9sat, openvox-server-8.17.0-1.el9sat, python3.12-brotli-1.2.1-1.el9pc +6
  • RHSA-2026:92510 Released 2026-10-29 · Red Hat rating Critical
    RHOAI 3.4.6 - Red Hat OpenShift AI
    • Red Hat OpenShift AI 3.4 registry.redhat.io/rhoai/odh-built-in-detector-rhel9, registry.redhat.io/rhoai/odh-cli-rhel9, registry.redhat.io/rhoai/odh-dashboard-rhel9 +47

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Exploit IntelligenceAffectedNo fix yet
Red Hat AI Inference ServerAffectedNo fix planned: Will not fix
Red Hat Ansible Automation Platform 2AffectedNo fix yet
Red Hat Enterprise Linux AI (RHEL AI) 3AffectedNo fix yet
Red Hat OpenShift AI (RHOAI)AffectedNo fix yet
Red Hat Satellite 6AffectedNo fix yet
Red Hat OpenShift AI 3.4Fixed RHSA-2026:92510
Red Hat Satellite 6.16 for RHEL 8Fixed RHSA-2026:95655
Red Hat Satellite 6.16 for RHEL 9Fixed RHSA-2026:95655
Red Hat Satellite 6.17 for RHEL 9Fixed RHSA-2026:95656
Red Hat Satellite 6.18 for RHEL 9Fixed RHSA-2026:95657
Red Hat Satellite 6.19 for RHEL 9Fixed RHSA-2026:92861
Not affected: 11 products
  • Red Hat Ansible Automation Platform 2
  • Red Hat OpenShift AI (RHOAI)
  • Red Hat OpenShift AI 3.4
  • Red Hat OpenStack Platform 13 (Queens)
  • Red Hat OpenStack Platform 16.2
  • Red Hat OpenStack Platform 17.1
  • Red Hat Satellite 6.16 for RHEL 8
  • Red Hat Satellite 6.16 for RHEL 9
  • Red Hat Satellite 6.17 for RHEL 9
  • Red Hat Satellite 6.18 for RHEL 9
  • Red Hat Satellite 6.19 for RHEL 9

Timeline

  1. 2026-10-21 Threatist record created from CVE-2026-114145
  2. 2026-10-22 Affected versions changed · Red Hat
  3. 2026-10-22 CVSS score added · Red Hat
  4. 2026-10-22 Alias added: GHSA-83vg-56qc-22m7
  5. 2026-10-22 Fix available: PyPI/[email protected] · GHSA-83vg-56qc-22m7
  6. 2026-10-22 CVSS score added · GHSA-83vg-56qc-22m7
  7. 2026-10-22 Weakness changed · GHSA-83vg-56qc-22m7
  8. 2026-10-22 6 new references · GHSA-83vg-56qc-22m7
  9. 2026-10-23 Affected versions changed · Red Hat
  10. 2026-10-23 Priority changed: MEDIUM → LOW
  11. 2026-10-23 CISA SSVC decision points changed
  12. 2026-10-27 Affected versions changed · Red Hat
  13. 2026-10-30 Fix available: RHSA-2026:92510 · Red Hat
  14. 2026-10-30 Fix available: Red Hat OpenShift AI 3.4 · Red Hat
  15. 2026-10-30 Affected versions changed · Red Hat
  16. 2026-10-30 Fix available: Red Hat Satellite 6.19 for RHEL 9 · Red Hat
  17. 2026-10-31 Fix available: RHSA-2026:92861 · Red Hat
  18. 2026-11-06 Fix available: Red Hat Satellite 6.16 for RHEL 8, Red Hat Satellite 6.16 for RHEL 9, Red Hat Satellite 6.17 for RHEL 9 +1 · Red Hat
  19. 2026-11-06 Fix available: RHSA-2026:95656 · Red Hat
  20. 2026-11-06 Fix available: RHSA-2026:95655 · Red Hat
  21. 2026-11-06 Fix available: RHSA-2026:95657 · Red Hat

References

  • TI-2026-74549 Argument injection in GitPython Head.checkout() leaks arbitrary files CVSS 4.0HIGH 8.7
  • TI-2026-74546 Regular expression denial of service in GitPython author parsing CVSS 4.0HIGH 8.7
  • TI-2026-54689 GitPython before 3.1.59 Path Traversal via separate-git-dir CVSS 4.0HIGH 8.7
  • TI-2026-51706 GitPython before 3.1.55 Environment Variable Exfiltration via Remote.add() CVSS 4.0HIGH 8.7
  • TI-2026-47618 GitPython before 3.1.52 Environment Variable Exfiltration via clone_from CVSS 4.0HIGH 8.7
  • TI-2026-30595 GitPython: Unsafe option check validates multi_options before shlex.split transforms it CVSS 3.1CRITICAL 9.8
See all 43 →

Sources