CVE Catalog

CVE-2026-67326

HighCVSS 7.0
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.19%

9th percentile - higher than 9% of all known CVEs

Summary

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.

Risk Assessment

An attacker can remotely execute arbitrary code on the server or workstation when the victim runs git operations, potentially leading to full system compromise.

Recommendation

Update GitPython to version 3.1.50 or later, which properly validates newline characters in the section parameter.

Other vulnerabilities in GitPython

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS