Improper Neutralization of Special Elements in Output Used by a Downstream Component in GitPython - #VU140974

 

Improper Neutralization of Special Elements in Output Used by a Downstream Component in GitPython - #VU140974

Published: August 5, 2026


Vulnerability identifier: #VU140974
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-74
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to improper neutralization of special elements in output used by a downstream component in the GitPython config writer when writing attacker-controlled option names into git configuration files. A remote user can supply a crafted option name to forge git configuration directives and execute arbitrary code.

Exploitation requires an embedding application to pass a caller-influenced option name to the configuration writer, and code execution occurs on a subsequent git operation such as an ssh git action or hook execution.


Affected software

GitPython

Remediation

Install security update from vendor's website.

GitPython - update to 3.1.58

External References

Related Security Bulletins