8.8

CVE-2026-87817: gitpython_project gitpython Code Injection

CVSS: 8.8v3.1HighAnalyzed
AliasesGHSA-239g-whfq-7xj9PYSEC-2026-3982UBUNTU-CVE-2026-87817
Published 09-09-2026Last modified 08-10-2026

Vulnerability summary

CVE-2026-87817 is a high (CVSS 8.8) Code Injection vulnerability in gitpython_project gitpython. EPSS estimates a 0.40% chance of exploitation in the next 30 days, higher than 33.2% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
45/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.40%
0%100%
Low · +0.08 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 1 · Downstream 8 · Related 2

Timeline

  1. 09-09-2026
    PublishedVulnerability first disclosed.
  2. 08-10-2026
    Last modifiedVulnerability information updated.

Description

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 metrics

9 scores · 6 sources · 2 versions

EPSS trend

Probability

0.40%

Chance of exploitation in the next 30 days

Percentile

33%

Versus all other CVEs

30-day change

+0.08 pp

From 0.33% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.40%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Gitpython

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Chainguard6 products
  • awx< 24.6.1-r64
  • nemo-rl-cuda-13.0< 0.7.0-r2
  • nemo-rl-cuda-13.0-automodel< 0.7.0-r2
  • nemo-rl-cuda-13.0-mcore< 0.7.0-r2
  • nemo-rl-cuda-13.0-sglang< 0.7.0-r2
Debian1 product
  • python-gitAll versions (No fix recorded) | < 3.1.61-1
Gitpython_project1 product
Gitpython-developers1 product
PyPI1 product
  • gitpython< 3.1.60
Ubuntu1 product
  • python-gitAll versions (No fix recorded)

6 vendors · 11 products

References

12 links
Show all 12 references