CVE-2026-78678

Medium

Description

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.

SeverityMedium
CVSS6.5
Exploit probability—
ProductGitpython
PublishedAug 25, 2026
First seenAug 25, 2026
Weakness typeCWE-88CWE-88

How to fix

Update
  • gitpython_project gitpython3.1.59 or later
  • gitpython3.1.59 or later

Affected products

ProductAffected versionsFixed in
gitpython_project gitpythonv < 3.1.593.1.59
gitpythonPyPIv < 3.1.593.1.59

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.