PYSEC-2026-3783
Dashboard / Vulnerabilities / PYSEC-2026-3783
PYSEC-2026-3783
Published: 19 Aug 2026Last Modified: 3 Sept 2026
Aliases:
Summary:
Details: 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.
References: https://www.vulncheck.com/advisories/gitpython-before-config-injection-via-option-name, https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-jm78-9fvv-mhgr
Affected packages
Package
Name: gitpython
Purl: pkg:pypi/gitpython
Affected ranges
Type: ECOSYSTEM
Events:
Introduced- 0
Fixed -3.1.58
Affected versions
0.1.7
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
