CVE-2026-67326: 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. A
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.
Details
Original advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-67326
Referenced CVEs
| CVE | CSIRTS overview | External |
|---|---|---|
| CVE-2026-67326 | coverage & exploitation status | NVD · CVE.org |
Recent advisories for GitPython
A cluster of recent advisories against the same product widens the attack surface — attackers routinely chain freshly published CVEs on one product, so review these together.
- highCVE-2026-67325: GitPython before 3.1.51 contains an incomplete command injection blocklist that fails to accou…nvd · 2026-08-01
- criticalCVE-2026-67324: GitPython 3.1.50 fails to recognize joined short-option forms such as -u (the short form of --…nvd · 2026-08-01
- highCVE-2026-67323: GitPython before 3.1.51 fails to guard against dangerous Git options passed as keyword argumen…nvd · 2026-08-01
- highCVE-2026-67322: GitPython before 3.1.52 is vulnerable to environment-variable exfiltration in Repo.clone_from(…nvd · 2026-08-01
- highGHSA-94p4-4cq8-9g67: GitPython: Environment-variable exfiltration via Repo.create_remote() / Remote.add() URL …ghsa · 2026-07-24
- highGHSA-r9mr-m37c-5fr3: GitPython: Unsafe git option guard bypass via single-character kwarg value token smugglin…ghsa · 2026-07-24
More from NVD Recent CVEs
- mediumCVE-2026-67355: guzzlehttp/guzzle versions before 7.15.1 fail to preserve host-only cookie scope, storing the …2026-08-01
- mediumCVE-2026-67354: guzzlehttp/guzzle versions before 7.15.1 contain an information disclosure vulnerability in Re…2026-08-01
- mediumCVE-2026-67353: guzzlehttp/guzzle versions before 7.15.1 contain a denial of service vulnerability in the Cook…2026-08-01
- highCVE-2026-67352: luci-app-https-dns-proxy contains a stored cross-site scripting vulnerability in the resolver_…2026-08-01
- mediumCVE-2026-67344: ArcadeDB before 26.7.2 fails to enforce the UPDATE_SCHEMA database permission on the ALTER TYP…2026-08-01