ADVISORIES

Vulnerability

CVE-2026-76221

GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allows attackers to forge arbitrary git-config directives by injecting equals signs, hash symbols, and whitespace into option names. Attackers can inject malicious option names like 'sshCommand = touch /tmp/RCE #' to execute arbitrary commands via core.sshCommand or core.hooksPath on the next git operation.

15 advisories report this vulnerability, across 8 ecosystems.

Advisories

  • ALPINE-CVE-2026-76221

    GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allows attackers to forge arbitrary git-config directives by injecting equals signs, hash symbols, and whitespace…

    CVE-2026-76221 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2026-76221
    CVE-2026-76221 Alpine Updated 18 November 2026
  • DEBIAN-CVE-2026-76221

    GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allows attackers to forge arbitrary git-config directives by injecting equals signs, hash symbols, and whitespace…

    CVE-2026-76221 Debian Updated 31 October 2026
  • DLA-4872-1

    python-git - security update

    CVE-2026-100689CVE-2026-110855CVE-2026-110856CVE-2026-110857 Debian Updated 20 November 2026
  • DSA-6594-1

    python-git - security update

    CVE-2026-42215CVE-2026-42284CVE-2026-44243CVE-2026-44244 Debian Updated 20 November 2026
  • GHSA-jm78-9fvv-mhgr

    GitPython: git-config OPTION-name injection via =/#/whitespace bypasses name validator, enabling forged core.sshCommand/hooksPath (RCE)

    High CVE-2026-76221 PyPI Updated 10 September 2026
  • OESA-2026-3699

    python-GitPython security update

    Critical CVE-2026-73619CVE-2026-73620CVE-2026-73621CVE-2026-73622 openEuler Updated 5 September 2026
  • OESA-2026-3700

    python-GitPython security update

    Critical CVE-2026-73619CVE-2026-73620CVE-2026-73621CVE-2026-73622 openEuler Updated 5 September 2026
  • OESA-2026-3721

    python-GitPython security update

    Critical CVE-2026-73619CVE-2026-73620CVE-2026-73621CVE-2026-73622 openEuler Updated 13 September 2026
  • PYSEC-2026-3783

    GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allows attackers to forge arbitrary git-config directives by injecting equals signs, hash symbols, and whitespace…

    CVE-2026-76221 PyPI Updated 3 September 2026
  • RHSA-2026:63385

    Red Hat Security Advisory: Satellite 6.19.4 Async Update

    CVE-2026-10051CVE-2026-11332CVE-2026-16493CVE-2026-34993 Red Hat Updated 24 November 2026
  • SUSE-SU-2026:4072-1

    Security update for python-GitPython

    CVE-2026-42215CVE-2026-42284CVE-2026-44243CVE-2026-44244 SUSE Updated 13 September 2026
  • UBUNTU-CVE-2026-76221

    GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allows attackers to forge arbitrary git-config directives by injecting equals signs, hash symbols, and whitespace…

    CVE-2026-76221 Ubuntu Updated 24 November 2026
  • openSUSE-SU-2026:11566-1

    python313-GitPython-3.1.59-2.1 on GA media

    CVE-2026-73619CVE-2026-73620CVE-2026-73621CVE-2026-73623 openSUSE Updated 22 August 2026
  • openSUSE-SU-2026:21874-1

    Security update for python-GitPython

    CVE-2026-67322CVE-2026-67323CVE-2026-67325CVE-2026-67326 openSUSE Updated 25 September 2026

References