


Perceptive Security
SOC/SIEM Consultancy

GitPython before 3.1.53 fails to properly escape section names in git config files, allowing attackers to inject arbitrary configuration directives through mali…
Published:
2 August 2026 at 22:00:00
Alert date:
3 August 2026 at 15:06:10
Source:
nvd.nist.gov
Supply Chain & Dependencies, Zero-Day Vulnerabilities, Web Technologies
GitPython versions before 3.1.53 contain a vulnerability where section names in git config files are not properly escaped. This allows attackers to inject arbitrary configuration directives through maliciously crafted submodule names. The attack vector involves the create_submodule or clone_from operations, which can be used to inject dangerous keys such as core.sshCommand into the victim's .git/config file. Once injected, these directives are executed when git performs SSH operations, resulting in remote code execution. The vulnerability represents a significant supply chain risk for developers and organizations using GitPython for repository management. A patch was released in GitPython 3.1.53, and users are advised to upgrade immediately. The issue is tracked under CVE-2026-69097 and has been assigned a high criticality rating.
Technical details
Mitigation steps:
Affected products:
GitPython before 3.1.53
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-69097
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-3rp5-jjmw-4wv2
https://www.vulncheck.com/advisories/gitpython-before-config-injection-via-submodule-names
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
