Advisory

PYSEC-2026-3788

Also known as: CVE-2026-78678, GHSA-5xxx-qhh7-9287

Summary

The record has no summary.

Details

GitPython versions before 3.1.59 contain an incomplete denylist in the unsafe_git_revision_options guard that omits --contents and -S options, allowing attackers to read arbitrary files by passing these options to Repo.blame(). Attackers can supply revision values like --contents=/etc/passwd to leak file contents through the blame result returned to the caller.

Severity

Not rated by the source.

Dates

Published
2026-08-25 02:16 UTC
Modified
2026-09-03 11:00 UTC

Affected packages and fixes

gitpython

PyPI · All systems

Affected

  • introduced 0, fixed 3.1.59 (ecosystem)

Fixed versions

3.1.59

Fix

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

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