CVE-2026-69097

High

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.

SeverityHigh
CVSS7.0
Exploit probability—
ProductGitpython
PublishedAug 3, 2026
First seenAug 3, 2026
Weakness typeCWE-74Injection

How to fix

Update
  • gitpython_project gitpython3.1.53 or later
  • gitpython3.1.53 or later

Affected products

ProductAffected versionsFixed in
gitpython_project gitpythonv < 3.1.533.1.53
gitpythonPyPIv < 3.1.533.1.53

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.