Advisory

PYSEC-2026-3951

Also known as: CVE-2026-73622, GHSA-94p4-4cq8-9g67

Summary

The record has no summary.

Details

GitPython before 3.1.55 fails to disable environment variable expansion in Remote.create() and Submodule.add() URL handling, allowing attackers to exfiltrate secrets by supplying URLs containing variable references. Attackers can craft URLs with environment variable tokens that are expanded into .git/config and .gitmodules, then transmitted to attacker-controlled hosts during fetch or pull operations.

Severity

Not rated by the source.

Dates

Published
2026-08-13 12:17 UTC
Modified
2026-09-10 13:00 UTC

Affected packages and fixes

gitpython

PyPI · All systems

Affected

  • introduced 0, fixed 3.1.55 (ecosystem)

Fixed versions

3.1.55

Fix

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

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