Arbitrary Argument Injection Affecting gitpython package, versions [,3.1.59)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.23% (14th 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-PYTHON-GITPYTHON-19256802
  • published25 Aug 2026
  • disclosed25 Aug 2026
  • creditmanus-use

Introduced: 25 Aug 2026

NewCVE-2026-78678  (opens in a new tab)
CWE-88  (opens in a new tab)

How to fix?

Upgrade GitPython to version 3.1.59 or higher.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to Arbitrary Argument Injection via the Repo.blame() and Repo.blame_incremental() option check in git/repo/base.py. An attacker can read local files by supplying a blame revision such as --contents=/etc/passwd or -S=/path/to/file, which git blame echoes into the blame output returned to the caller. The vulnerable guard only screened revision options against a denylist that did not include these file-reading blame options, so applications that forward user-controlled revision strings into Repo.blame() or Repo.blame_incremental() expose host-file contents at the privileges of the process.

CVSS Base Scores

version 4.0
version 3.1