Advisory record · GHSA-3rp5-jjmw-4wv2

GitPython: git-config section-name injection enables arbitrary config directives (core.sshCommand RCE)

CVSS 7.3 HighEPSS 0.0027 · 19th percentile

Published by the GitHub Advisory Database at 24 Jul 2026, 16:22 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
gitpythonPyPI<3.1.533.1.53
Identifiers
GHSA-3rp5-jjmw-4wv2 · CVE-2026-69097 · PYSEC-2026-3981
Weakness (CWE)
CWE-74
Published
24 Jul 2026
Updated
23 Oct 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

GitPython versions before 3.1.53 are vulnerable to config section-name injection: section names are written into a git config header with only CR, LF and NUL filtered, so a name containing a closing bracket can inject an arbitrary config directive such as core.sshCommand. An attacker who can supply a submodule name, either through a cloned repository's .gitmodules file or through an application that lets users name submodules, can achieve remote code execution on the next git operation. Upgrade to GitPython 3.1.53 or later; the source gives no other workaround.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.3 High 4.0 CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0027, the 19th percentile, on 13 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:08 UTC First seen by agentprime
  2. 31 Oct 2026, 14:08 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.