Skip to content
OpenAdvisories
High · 7.0 CVE-2026-69097 EUVD-2026-52290GHSA-3rp5-jjmw-4wv2GHSA-9xx9-hw38-h2w9PYSEC-2026-3981

GitPython before 3.1.53 Config Injection via Submodule Names

Published Aug 3, 2026 · Updated Aug 14, 2026 · Assigned by VulnCheck

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 products

VendorProductAffectedFixed
gitpython-developers GitPython < 3.1.53 3.1.53

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-git 3.1.61-1 —
Debian 13 python-git 3.1.44-1+deb13u1 —
Debian 12 python-git 3.1.30-1+deb12u3 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-git No fix yet —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS python-git No fix yet —
Ubuntu Pro 24.04 LTS python-git No fix yet —
Ubuntu Pro 22.04 LTS python-git No fix yet —
Ubuntu Pro 20.04 LTS python-git No fix yet —
Ubuntu Pro 18.04 LTS python-git No fix yet —
Ubuntu Pro 16.04 LTS python-git No fix yet —
Ubuntu Pro 14.04 LTS python-git No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP6 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLES 15 SP5 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLES 15 SP4 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLES 3 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP6 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLES for SAP 15 SP5 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLES for SAP 15 SP4 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLE HPC 15 SP5 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLE HPC 15 SP4 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-GitPython 3.1.58-1.1 openSUSE-SU-2026:11466-1
openSUSE Leap 16.0 python-GitPython 3.1.44-160000.4.1 openSUSE-SU-2026:21874-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI gitpython < 3.1.53 3.1.53 GHSA-3rp5-jjmw-4wv2

Advisories 3

References