Advisory

PYSEC-2026-3947

Also known as: CVE-2026-67324, GHSA-v396-v7q4-x2qj

Summary

The record has no summary.

Details

GitPython 3.1.50 fails to recognize joined short-option forms such as -u<value> (the short form of --upload-pack=<value>) when enforcing its default unsafe-option gate. When an application passes attacker-influenced clone options into Repo.clone_from(..., multi_options=..., allow_unsafe_options=False), an attacker can supply -u<helper> to bypass the gate that blocks --upload-pack/-u, causing Git to execute the specified helper command during clone. Fixed in 3.1.51.

Severity

Not rated by the source.

Dates

Published
2026-08-01 13:17 UTC
Modified
2026-09-11 13:45 UTC

Affected packages and fixes

gitpython

PyPI · All systems

Affected

  • introduced 3.1.50, fixed 3.1.51 (ecosystem)

Fixed versions

3.1.51

Fix

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

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