External Control of File Name or Path Affecting gitpython package, versions [,3.1.57)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-GITPYTHON-18516645
  • published4 Aug 2026
  • disclosed3 Aug 2026
  • creditAnimesh Roy

Introduced: 3 Aug 2026

New CVE NOT AVAILABLE CWE-73  (opens in a new tab)

How to fix?

Upgrade GitPython to version 3.1.57 or higher.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to External Control of File Name or Path in the Repo.archive. An attacker can access arbitrary files on the filesystem by supplying specially crafted options that are not properly denied by the existing guard, such as --add-file or --add-virtual-file, which allow reading files outside the intended repository and including their contents in the generated archive.

CVSS Base Scores

version 4.0
version 3.1