Arbitrary Argument Injection Affecting py3-gitpython package, versions <3.1.61-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.54% (44th percentile)

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-ALPINE324-PY3GITPYTHON-20336396
  • published30 Sept 2026
  • disclosed19 Aug 2026

Introduced: 19 Aug 2026

CVE-2026-76219  (opens in a new tab)
CWE-88  (opens in a new tab)

How to fix?

Upgrade Alpine:3.24 py3-gitpython to version 3.1.61-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3-gitpython package and not the py3-gitpython package as distributed by Alpine. See How to fix? for Alpine:3.24 relevant fixed versions and status.

GitPython versions before 3.1.58 contain an arbitrary file overwrite vulnerability in IndexFile.from_tree, IndexFile.reset, and IndexFile.merge_tree methods that append caller-influenced treeish strings to git read-tree without option validation or argument separation. Attackers can inject the --index-output option to overwrite arbitrary files with a valid git-index blob, destroying existing file content at attacker-controlled writable paths.

CVSS Base Scores

version 3.1