Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-76221: GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allow

50
This month
HIGH 8.8UPGRADE

CVE-2026-76221 is a high-severity flaw (CVSS 8.8) affecting gitpython. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • High severity
  • Public exploit reference

A fixed release or distro patch exists.

Risk facts

CVSS score8.8 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededLow
User interactionNone
EPSS exploit chance0.8% (top 45%)
CISA exploited listNo
WeaknessCWE-74
Published2026-08-19
Last modified2026-10-23
Publisher (CNA): VulnCheck · Vendor: gitpython project

Am I affected?

Timeline

gitpython project gitpython UPGRADE
Affected: < 3.1.58
Fixed in: 3.1.58
Safe to downgrade to: no unaffected older release
1. Check installed version
pip show gitpython
2. UPGRADE to 3.1.58
pip install --upgrade "gitpython>=3.1.58"

Exact fixes by distribution

Fedora 46 · python-streamlink · FIXED · 8.6.2-1.fc46 · FEDORA-2026-a56fcfdc08 · source
sudo dnf upgrade --advisory=FEDORA-2026-a56fcfdc08
Fedora ELN · valgrind · FIXED · 3.28.0-1.eln159 · FEDORA-2026-c593ef1d15 · source
sudo dnf upgrade --advisory=FEDORA-2026-c593ef1d15
Debian 12 · python-git · NO FIX YET
Debian 13 · python-git · NO FIX YET
RHEL AI (RHEL AI) 3 · rhelai3/bootc-cuda-rhel9 · NOT AFFECTED
RHEL AI (RHEL AI) 3 · rhelai3/bootc-gaudi-rhel9 · NOT AFFECTED
RHEL AI (RHEL AI) 3 · rhelai3/bootc-rocm-rhel9 · NOT AFFECTED
RHEL AI (RHEL AI) 3 · rhelai3/disk-image-cuda-rhel9 · NOT AFFECTED
Alpine 3.24 · py3-gitpython · FIXED · py3-gitpython-3.1.61-r0
apk add --upgrade py3-gitpython apk info -v py3-gitpython

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Related CVEs

References

← Back to latest CVEs