CVE-2026-42284CWE-88

GitPython: Unsafe option check validates multi_options before shlex.split transforms it

High · published May 7, 2026

CVSS v3.1
8.1
EPSS
1%
Percentile
52.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00707 · 52.9th percentile
Weakness
CWE-88 · Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Published
2026-05-07T18:19Z
EPSS history
Timeline
  • 07 MAY 18:19Z
    GitPython: Unsafe option check validates multi_options before shlex.split transforms it
    cvelistv5