7.1

CVE-2026-76217: GitPython before 3.1.58 Arbitrary File Read via pathspec-from-file

Analyzed
AliasesGHSA-hh9p-6wh2-4mfcPYSEC-2026-3841UBUNTU-CVE-2026-76217
Published 19-08-2026Last modified 08-10-2026

Vulnerability summary

CVE-2026-76217 is a high (CVSS 7.1) External Control of File Name or Path vulnerability in gitpython_project gitpython. EPSS estimates a 0.36% chance of exploitation in the next 30 days, higher than 31.7% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
7.1/10
010
High · v4.0 (CVE.org)
EPSS score
0.36%
0%100%
Low · -0.05 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 1 · Downstream 5 · Related 3

Timeline

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

Description

GitPython versions before 3.1.58 fail to validate options passed to git rm and git checkout commands in IndexFile.remove() and Head.checkout(). Attackers can supply --pathspec-from-file and --pathspec-file-nul parameters to read arbitrary files accessible to the process, with full file contents returned in GitCommandError.stderr.

CVSS metrics

11 scores · 8 sources · 2 versions

EPSS trend

Probability

0.36%

Chance of exploitation in the next 30 days

Percentile

32%

Versus all other CVEs

30-day change

Decrease -0.05 pp

From 0.41% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Gitpython

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard4 products
  • awx< 24.6.1-r49
  • checkov< 3.3.9-r1
  • mlflow< 3.16.0-r0
  • opal< 0.9.6-r5
Wolfi2 products
  • checkov< 3.3.9-r1
  • mlflow< 3.16.0-r0
Alpine1 product
  • py3-gitpython< 3.1.61-r0
Debian1 product
  • python-gitAll versions (No fix recorded) | < 3.1.30-1+deb12u3 | < 3.1.44-1+deb13u1 | < 3.1.61-1
Gitpython_project1 product
Gitpython-developers1 product
PyPI1 product
  • gitpython< 3.1.58
Ubuntu1 product
  • python-gitAll versions (No fix recorded)

8 vendors · 12 products

References

14 links
Show all 14 references