PyPA Advisory Database
PYSEC-2026-3948
Details
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | gitpython | All versions before 3.1.57 (fixed in 3.1.57) |