Input validation error in GitPython - CVE-2026-67326
Published: May 11, 2026 / Updated: September 14, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to improper input validation in config_writer() and set_value() in git/config.py when processing a crafted section parameter containing newline characters. A remote attacker can supply a crafted section name to inject arbitrary section headers into .git/config and execute arbitrary code.
User interaction is required to trigger a git hook after the malicious configuration is written.
Affected software
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Desktop 15
Python 3 Module
openSUSE Leap
openEuler
python311-GitPython
python-GitPython
python-GitPython-help
python3-GitPython
How to mitigate CVE-2026-67326
python311-GitPython - update to 3.1.34.1693646983.2a2ae77-150400.9.8.1
python-GitPython - update to 3.1.52-1
python-GitPython-help - update to 3.1.52-1
python3-GitPython - update to 3.1.52-1