Read the docs
TI-2023-21112 Aliases CVE-2023-40267GHSA-pr76-5cm5-w9cj

GitPython before 3.1.32 does not block insecure non-multi options in clone and clone_from.

Priority MEDIUM 51CWE-78Published · Updated

Key facts

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

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-78.

Summary

GitPython before 3.1.32 does not block insecure non-multi options in clone and clone_from. NOTE: this issue exists because of an incomplete fix for CVE-2022-24439.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01182 67th percentileScored 2026-11-07
Fix Partial GitPython (PyPI): 3.1.32Red Hat: 4 advisoriesRed Hat: 6 fixed, 9 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
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
——all versions—No fix listedCNA
—GitPython (PyPI)before 3.1.323.1.32Patch availableGHSA-pr76-5cm5-w9cj
  • — Vendor— Affected all versions Fixed in — No fix listed CNA
  • GitPython (PyPI) Vendor— Affected before 3.1.32 Fixed in 3.1.32 Patch available GHSA-pr76-5cm5-w9cj

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*before 3.1.32Vulnerablegitpython-developers
  • cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:* Versions before 3.1.32 Vulnerable ·gitpython-developers

Remediation

  • Fix · GHSA-pr76-5cm5-w9cj GitPython (PyPI) Fixed in 3.1.32 Advisory →

Red Hat 4 advisories

  • RHSA-2023:6818 Released 2023-11-08 · Red Hat rating Important
    Satellite 6.14 security and bug fix update
    • Red Hat Satellite 6.14 for RHEL 8 foreman-3.7.0.9-1.el8sat, foreman-cli-3.7.0.9-1.el8sat, foreman-debug-3.7.0.9-1.el8sat +33
  • RHSA-2023:5931 Released 2023-10-19 · Red Hat rating Important
    Satellite 6.13.5 Async Security Update
    • Red Hat Satellite 6.13 for RHEL 8 foreman-3.5.1.23-1.el8sat, foreman-cli-3.5.1.23-1.el8sat, foreman-debug-3.5.1.23-1.el8sat +17
  • RHSA-2023:4991 Released 2023-09-06 · Red Hat rating Low
    Red Hat Ansible Automation Platform 2.3 Product Security and Bug Fix Update
    • Red Hat Ansible Automation Platform 2.3 for RHEL 8 automation-controller-venv-tower-4.3.13-1.el8ap
    • Red Hat Ansible Automation Platform 2.3 for RHEL 9 automation-controller-venv-tower-4.3.13-1.el9ap
Show 1 more Red Hat advisories
  • RHSA-2023:4971 Released 2023-09-05 · Red Hat rating Moderate
    Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update
    • Red Hat Ansible Automation Platform 2.4 for RHEL 8 automation-controller-venv-tower-4.4.3-1.el8ap, python39-gitpython-3.1.32-1.el8ap, python3x-gitpython-3.1.32-1.el8ap
    • Red Hat Ansible Automation Platform 2.4 for RHEL 9 automation-controller-venv-tower-4.4.3-1.el9ap, python-gitpython-3.1.32-1.el9ap, python3-gitpython-3.1.32-1.el9ap

Vendor assessments

Red Hat

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

ProductStatusPlan or fix
Red Hat Ansible Tower 3AffectedNo fix yet
Red Hat Certification Program for Red Hat Enterprise Linux 9AffectedNo fix yet: Fix deferred
Red Hat Certification for Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Certification for Red Hat Enterprise Linux 7AffectedNo fix planned: Out of support scope
Red Hat Certification for Red Hat Enterprise Linux 8AffectedNo fix yet: Fix deferred
Red Hat OpenStack Platform 16.1AffectedNo fix yet: Fix deferred
Red Hat OpenStack Platform 16.2AffectedNo fix yet: Fix deferred
Red Hat OpenStack Platform 17.0AffectedNo fix yet: Fix deferred
Red Hat OpenStack Platform 17.1AffectedNo fix yet: Fix deferred
Red Hat Ansible Automation Platform 2.3 for RHEL 8Fixed RHSA-2023:4991
Red Hat Ansible Automation Platform 2.3 for RHEL 9Fixed RHSA-2023:4991
Red Hat Ansible Automation Platform 2.4 for RHEL 8Fixed RHSA-2023:4971
Red Hat Ansible Automation Platform 2.4 for RHEL 9Fixed RHSA-2023:4971
Red Hat Satellite 6.13 for RHEL 8Fixed RHSA-2023:5931
Red Hat Satellite 6.14 for RHEL 8Fixed RHSA-2023:6818
Not affected: 8 products
  • Red Hat Ansible Automation Platform 1.2
  • Red Hat Ansible Automation Platform 2.3 for RHEL 8
  • Red Hat Ansible Automation Platform 2.3 for RHEL 9
  • Red Hat Ansible Automation Platform 2.4 for RHEL 8
  • Red Hat Ansible Automation Platform 2.4 for RHEL 9
  • Red Hat OpenStack Platform 18.0
  • Red Hat Satellite 6.13 for RHEL 8
  • Red Hat Satellite 6.14 for RHEL 8

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-40267
  2. 2026-10-03 Alias added: GHSA-pr76-5cm5-w9cj

References

  • 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
  • TI-2026-32220 GitPython: Path traversal in GitPython reference APIs allows arbitrary file write and delete outside the repository CVSS 4.0HIGH 7.8
  • TI-2026-47621 GitPython before 3.1.51 Command Injection via option prefix abbreviation CVSS 4.0HIGH 8.7
See all 34 →

Sources