CVE-2026-78678

NameCVE-2026-78678
DescriptionGitPython 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-git (PTS)bullseye3.1.14-1vulnerable
bullseye (security)3.1.14-1+deb11u1vulnerable
bookworm3.1.30-1+deb12u2vulnerable
trixie3.1.44-1vulnerable
forky, sid3.1.50-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-gitsource(unstable)(unfixed)

Notes

https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-5xxx-qhh7-9287

Search for package or bug name: Reporting problems