CVE-2026-78679

Summary

GitPython 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.

Affected Software

VendorProductVersion RangeStatus
gitpython-developersGitPython0 < 3.1.59affected
gitpython-developersGitPython3.1.59unaffected

Weaknesses

  • CWE-73: External Control of File Name or Path

References