Improper Neutralization of Special Elements in Output Used by a Downstream Component in GitPython - #VU139089
Published: July 22, 2026
GitPython
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to improper neutralization of special elements in git config section names in the GitPython config writer when writing attacker-controlled submodule names into the parent repository's .git/config. A remote attacker can supply a specially crafted submodule name to inject arbitrary config directives and execute arbitrary code.
User interaction is required for the victim to perform a subsequent git operation that uses the injected configuration, and the issue is reachable via untrusted .gitmodules data during submodule initialization or via applications that create submodules from untrusted input.