CVE-2026-78679

NameCVE-2026-78679
DescriptionGitPython before 3.1.59 contains an arbitrary file read vulnerability in TagReference.create() where a positional reference parameter bypasses the unsafe option guard. Attackers can supply a reference value like --file=<path> to read arbitrary files, with contents returned in the annotated tag message.
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)
ReferencesDLA-4872-1, DSA-6594-1
Debian Bugs1145672

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-git (PTS)bookworm3.1.30-1+deb12u2vulnerable
bookworm (security)3.1.30-1+deb12u3fixed
trixie3.1.44-1vulnerable
trixie (security)3.1.44-1+deb13u1fixed
forky, sid3.2.1-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-gitsourcebookworm3.1.30-1+deb12u3DLA-4872-1
python-gitsourcetrixie3.1.44-1+deb13u1DSA-6594-1
python-gitsource(unstable)3.1.61-11145672

Notes

https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-3wxw-xv34-2frg
Fixed by: https://github.com/gitpython-developers/GitPython/commit/1b0d2d9b91575f7db44ef4ff58ac37fc9335e5f6 (3.1.59)
When fixing this issue make sure to fix it completely to not open up CVE-2026-110859

Search for package or bug name: Reporting problems