Skip to content
CVE PROGRAM SOURCE RECORD7.1 High

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

gitpython-developers GitPython

Default version status: unaffected

  • 0 to < 3.1.57affected
  • 3.1.57unaffected
pkg:pypi/gitpython

References