ADVISORIES

Vulnerability

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. 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.

16 advisories report this vulnerability, across 7 ecosystems.

Advisories in PyPI

  • GHSA-mv93-w799-cj2w

    GitPython: Newline injection in config_writer() section parameter bypasses CVE-2026-42215 patch, enabling RCE via core.hooksPath

    High CVE-2026-67326 PyPI Updated 17 September 2026
  • PYSEC-2026-3980

    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…

    CVE-2026-67326 PyPI Updated 17 September 2026

References