Vulnerability · Published Aug 3, 2026 · Assigned by VulnCheck

CVE-2026-69097GitPython before 3.1.53 Config Injection via Submodule Names

High 7.0

In plain English

A high-severity injection in GitPython from gitpython-developers. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 19% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.0High
Exploit odds (30 days)0.3%top 81.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-git3.1.30-1+deb12u3DEBIAN-CVE-2026-69097
Debian:13python-git3.1.44-1+deb13u1DEBIAN-CVE-2026-69097
Debian:14python-git3.1.61-1DEBIAN-CVE-2026-69097
PyPIgitpython3.1.53GHSA-3rp5-jjmw-4wv2
PyPIgitpython3.1.53PYSEC-2026-3981
Ubuntu:26.10python-gitno fix listedUBUNTU-CVE-2026-69097

Affected products (as reported)

VendorProductVersions
gitpython-developers GitPython 0 – before 3.1.53

Weakness: CWE-74 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

References