Vulnerability

CVE-2026-67326

highCVSS 4.0 7.3Published 1 Aug 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Gitpython Project gitpython

Weakness type

References

  • github.com /gitpython-developers/GitPython/security/advisories/GHSA-mv…
  • www.vulncheck.com /advisories/gitpython-before-newline-injection-via-config-w…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning