CVE-2026-42284

Publication date 7 May 2026

Last updated 27 May 2026


Ubuntu priority

Cvss 3 Severity Score

8.1 · High

Score breakdown

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.

Status

Package Ubuntu Release Status
python-git 26.04 LTS resolute
Fixed 3.1.46-1ubuntu0.1~esm1
25.10 questing Ignored end of life, was needed
24.04 LTS noble
Fixed 3.1.37-3ubuntu0.1~esm2
22.04 LTS jammy
Fixed 3.1.24-1ubuntu0.1~esm3
20.04 LTS focal
Fixed 3.0.7-1ubuntu0.1~esm4
18.04 LTS bionic
Not affected
16.04 LTS xenial
Not affected
14.04 LTS trusty
Not affected

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro 30-day free trial

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
python-git

Severity score breakdown

CVSS version: CVSS v3.0

Base score 8.1 · High

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H


Access our resources on patching vulnerabilities