Advisory

PYSEC-2026-3981

Also known as: CVE-2026-69097, GHSA-3rp5-jjmw-4wv2

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.3, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2026-08-03 14:16 UTC
Modified
2026-09-17 09:00 UTC

Affected packages and fixes

gitpython

PyPI · All systems

Affected

  • introduced 0, fixed 3.1.53 (ecosystem)

Fixed versions

3.1.53

Fix

  • Fixed version 3.1.53
    pip install --upgrade gitpython==3.1.53

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences