PYSEC-2026-3948

At a glance

Published
Updated
CVE
CVE-2026-73619
Aliases
GHSA-539m-9xh6-q6rr
CVSS_V4
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

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 packages

PackageVersions
PyPI · gitpythonintroduced 0, fixed 3.1.57

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — PyPA Advisory Database