Skip to content
CORVASEC — Knowledge Defends
Vulnerability Explorer›CVE-2026-67326
VULNERABILITY

CVE-2026-67326

Common Vulnerabilities and Exposures record

HIGH

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

CVSS
7.3
Severity
HIGH
Vector
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Timeline

Published
Aug 1, 2026 13:17
Modified
Oct 23, 2026 23:10
Last observed
Oct 23, 2026 20:12

CWE

CWE-20

Affected product identifiers

cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*

References