CVE-2026-76221 PUBLISHED

GitPython before 3.1.58 Config Injection via option-name

Assigner: VulnCheck
Reserved: 19.08.2026 Published: 19.08.2026 Updated: 20.08.2026

GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allows attackers to forge arbitrary git-config directives by injecting equals signs, hash symbols, and whitespace into option names. Attackers can inject malicious option names like 'sshCommand = touch /tmp/RCE #' to execute arbitrary commands via core.sshCommand or core.hooksPath on the next git operation.

Metrics

CVSS Vector: 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
CVSS Score: 8.7

Product Status

Vendor gitpython-developers
Product GitPython
Versions Default: unaffected
  • affected from 0 to 3.1.58 (excl.)
  • Version 3.1.58 is unaffected

Credits

  • manus-use reporter

References

Problem Types

  • Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') CWE