Alpine: multiple py3-gitpython packages: security update to 3.1.49-r0

critical Tenable Cloud Security Plugin ID 441048

Description

There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:

- 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. (CVE-2026-42215)

- 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. (CVE-2026-42284)

Solution

Update the py3-gitpython library and its related packages to version 3.1.49-r0 or later.

See Also

https://security.alpinelinux.org/vuln/CVE-2026-42215

https://security.alpinelinux.org/vuln/CVE-2026-42284

Plugin Details

Severity: Critical

ID: 441048

Version: Revision 1.5

Type: Local

Published: 5/1/2026

Updated: 7/2/2026

Supported Sensors: Agentless Assessment, Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.84

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-42284

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Reference Information

CVE: CVE-2026-42215, CVE-2026-42284