PoC Monitor
← All CVEs
CVE-2026-67326published 1 Aug 2026 12:22 UTCData: JSON · API

Gitpython-developers GitPython

GitPython before 3.1.50 Newline Injection via config_writer section

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by NVD · CWE-20
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

gitpython-developers GitPython
  • < 3.1.50

Fixed in 3.1.50

Mitigation

Upgrade GitPython to 3.1.50 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published1 Aug 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.