Advisory

PYSEC-2026-3952

Also known as: CVE-2026-73623, GHSA-6p8h-3wgx-97gf

Summary

The record has no summary.

Details

GitPython before 3.1.54 contains an incomplete denylist in unsafe_git_clone_options that omits --template, allowing attackers to achieve arbitrary command execution during clone operations. Attackers can supply --template pointing to a directory containing malicious post-checkout hooks that execute when git clones the repository.

Severity

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

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.54 (ecosystem)

Fixed versions

3.1.54

Fix

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

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