9.8

CVE-2026-42284: GitPython: Unsafe option check validates multi_options before shlex.split transforms it

Modified
AliasesGHSA-x2qx-6953-8485PYSEC-2026-2161UBUNTU-CVE-2026-42284
Published 07-05-2026Last modified 09-05-2026

Vulnerability summary

CVE-2026-42284 is a critical (CVSS 9.8) vulnerability in gitpython_project gitpython. EPSS estimates a 0.57% chance of exploitation in the next 30 days, higher than 47.2% of scored vulnerabilities. 2 public exploits are recorded.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
0.57%
0%100%
Low · -0.14 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits2reference, github

Advisory lineage

Upstream 0 · Downstream 8 · Related 3

Timeline

  1. 07-05-2026
    PublishedVulnerability first disclosed.
  2. 09-05-2026
    Last modifiedVulnerability information updated.

Description

GitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, _clone() validates multi_options as the original list, then executes shlex.split(" ".join(multi_options)). A string like "--branch main --config core.hooksPath=/x" passes validation (starts with --branch), but after split becomes ["--branch", "main", "--config", "core.hooksPath=/x"]. Git applies the config and executes attacker hooks during clone. This issue has been patched in version 3.1.47.

CVSS metrics

8 scores · 8 sources · 1 version

EPSS trend

Probability

0.57%

Chance of exploitation in the next 30 days

Percentile

47%

Versus all other CVEs

30-day change

Decrease -0.14 pp

From 0.71% on 04-10-2026

04-10-202603-11-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

2 found
  • referenceUnverified

    Exploit Reference (tenable.com)

    Maturity: unknown

  • githubUnverified

    Gitpython

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

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

Chainguard7 products
  • awx< 24.6.1-r35
  • checkov< 3.2.525-r0
  • datahub-ingestion-fips< 1.5.0.1-r2
  • mlflow< 3.16.0-r0 | < 3.11.1-r0
  • mlflow-fips< 3.11.1-r0
Wolfi3 products
  • checkov< 3.2.525-r0
  • mlflow< 3.16.0-r0 | < 3.11.1-r0
  • open-webui< 0.8.12-r4 | < 0.9.2-r0
Alpine1 product
  • py3-gitpython< 3.1.49-r0
Debian1 product
  • python-gitAll versions (No fix recorded) | < 3.1.30-1+deb12u3 | < 3.1.44-1+deb13u1 | < 3.1.50-1
Gitpython_project1 product
Gitpython-developers1 product
PyPI1 product
  • gitpython< 3.1.47
Ubuntu1 product
  • python-git< 3.0.7-1ubuntu0.1~esm4 | < 3.1.24-1ubuntu0.1~esm3 | < 3.1.37-3ubuntu0.1~esm2 | All versions (No fix recorded) | < 3.1.46-1ubuntu0.1~esm1

8 vendors · 16 products

References

11 links
Show all 11 references