Arbitrary Code Injection Affecting python311-GitPython package, versions <3.1.34.1693646983.2a2ae77-150400.9.11.1


Severity

Recommended
0.0
high
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
0.42% (36th 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-SLES154-PYTHON311GITPYTHON-19853189
  • published16 Sept 2026
  • disclosed15 Sept 2026

Introduced: 15 Sep 2026

CVE-2026-87817  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade SLES:15.4 python311-GitPython to version 3.1.34.1693646983.2a2ae77-150400.9.11.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python311-GitPython package and not the python311-GitPython package as distributed by SLES. See How to fix? for SLES:15.4 relevant fixed versions and status.

GitPython before 3.1.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked files like gitdir, commondir, and HEAD. Attackers can execute arbitrary code by placing a malicious pre-commit hook in the tracked hooks directory that executes when a victim calls index.commit() on a cloned or opened repository.

CVSS Base Scores

version 3.1