CVE-2026-69097: GitPython before 3.1.53 fails to properly escape section names in git config files, allowing attackers to inje
34
Routine
HIGH 7.0UPGRADE
CVE-2026-69097 is a high-severity flaw (CVSS 7.0) affecting gitpython. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
GitPython before 3.1.53 fails to properly escape section names in git config files, allowing attackers to inject arbitrary configuration directives through malicious submodule names. Attackers can inject core.sshCommand or other dangerous config keys into the victim's .git/config via create_submodule or clone_from operations, achieving remote code execution when git performs ssh operations.
Why this priority
- High severity
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.0 (High) |
| Attack vector | Local |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.3% (top 82%) |
| CISA exploited list | No |
| Weakness | CWE-74 |
| Published | 2026-08-03 |
| Last modified | 2026-10-23 |
Publisher (CNA): VulnCheck · Vendor: gitpython project
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
gitpython project gitpython UPGRADE
Affected: < 3.1.53
Fixed in: 3.1.53
Safe to downgrade to: no unaffected older release
1. Check installed version
pip show gitpython
2. UPGRADE to 3.1.53
pip install --upgrade "gitpython>=3.1.53"
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Related CVEs
- CVE-2026-67324 CRITICAL 9.8 UPGRADE GitPython 3.1.50 fails to recognize joined short-option forms such as -u<value> (the short form of --upload-pa
- CVE-2026-67325 HIGH 8.8 UPGRADE GitPython before 3.1.51 contains an incomplete command injection blocklist that fails to account for git's lon
- CVE-2026-67323 HIGH 8.4 UPGRADE GitPython before 3.1.51 fails to guard against dangerous Git options passed as keyword arguments in Repo.archi
- CVE-2026-76221 HIGH 8.8 UPGRADE GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allow
- CVE-2026-67322 HIGH 7.5 UPGRADE GitPython before 3.1.52 is vulnerable to environment-variable exfiltration in Repo.clone_from()