What’s Vulnerable › Vulnerabilities

CVE-2026-73619: GitPython before 3.1.57 Arbitrary File Read via Repo.archive()

Description

GitPython before 3.1.57 contains an incomplete denylist in the unsafe_git_archive_options guard that omits --add-file and --add-virtual-file options. Attackers can supply these options to Repo.archive() to read arbitrary files from the filesystem and include them in the returned archive.

Affected products

How to fix

Upgrade to a fixed version: gitpython-developers GitPython 3.1.57. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-73619 or the next vulnerability affects your stack