CVE-2026-42215

Publication date 7 May 2026

Last updated 27 May 2026


Ubuntu priority

Cvss 3 Severity Score

8.8 · High

Score breakdown

Description

GitPython is a python library used to interact with Git repositories. From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git options such as --upload-pack and --receive-pack by default, but the equivalent Python kwargs upload_pack and receive_pack bypass that check. If an application passes attacker-controlled kwargs into Repo.clone_from(), Remote.fetch(), Remote.pull(), or Remote.push(), this leads to arbitrary command execution even when allow_unsafe_options is left at its default value of False. 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
Vulnerable
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
Fixed 2.1.8-1ubuntu0.1~esm4
16.04 LTS xenial Ignored end of ESM support, was needs-triage
14.04 LTS trusty
Fixed 0.3.2~RC1-3ubuntu0.1~esm3

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

Parameter Value
Base score 8.8 · High
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Scope Unchanged
Confidentiality High
Integrity impact High
Availability impact High
Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Access our resources on patching vulnerabilities