Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. GitPython
  4. ›
  5. GHSA-539m-9xh6-q6rr

GHSA-539m-9xh6-q6rr: GitPython: Incomplete unsafe_git_archive_options denylist omits --add-file / --add-virtual-file, enabling arbitrary file read via Repo.archive()

August 3, 2026

Repo.archive() does call the option guard, so this is not a missing-guard report. The guard is present and working; the denylist it consults is incomplete.

References

  • github.com/advisories/GHSA-539m-9xh6-q6rr
  • github.com/gitpython-developers/GitPython/commit/7a4f5dcb7bf3cbcbf6e438017efcdfe0bc0d36ca
  • github.com/gitpython-developers/GitPython/pull/2193
  • github.com/gitpython-developers/GitPython/releases/tag/3.1.57
  • github.com/gitpython-developers/GitPython/security/advisories/GHSA-539m-9xh6-q6rr

Code Behaviors & Features

Detect and mitigate GHSA-539m-9xh6-q6rr with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.1.57

Fixed versions

  • 3.1.57

Solution

Upgrade to version 3.1.57 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-73: External Control of File Name or Path

Source file

pypi/GitPython/GHSA-539m-9xh6-q6rr.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:16 +0000.