Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-67326: GitPython before 3.1.50 fails to validate newline characters in the section parameter of config_writer(), allo

34
Routine
HIGH 7.0UPGRADE

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

GitPython before 3.1.50 fails to validate newline characters in the section parameter of config_writer(), allowing attackers to inject arbitrary section headers into .git/config. Attackers can inject newlines to create a forged [core] section with hooksPath pointing to attacker-controlled directories, achieving remote code execution when git hooks are triggered.

Why this priority

  • High severity
  • Public exploit reference

A fixed release or distro patch exists.

Risk facts

CVSS score7.0 (High)
Attack vectorLocal
Attack complexityHigh
Privileges neededNone
User interactionRequired
EPSS exploit chance0.3% (top 84%)
CISA exploited listNo
WeaknessCWE-20
Published2026-08-01
Last modified2026-10-23
Publisher (CNA): VulnCheck · Vendor: gitpython project

Am I affected?

Timeline

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