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

critical Tenable Cloud Security Plugin ID 483102

Description

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

- GitPython before 3.1.58 contains a remote code execution vulnerability in Repo.init that forwards unsafe
git options without validation. Attackers can supply a template parameter pointing to a directory with
malicious git hooks that execute arbitrary code when git operations are performed on the initialized
repository. (CVE-2026-76218)

- GitPython versions before 3.1.58 fail to validate options passed to git rm and git checkout commands in
IndexFile.remove() and Head.checkout(). Attackers can supply --pathspec-from-file and --pathspec-file-nul
parameters to read arbitrary files accessible to the process, with full file contents returned in
GitCommandError.stderr. (CVE-2026-76217)

- GitPython versions before 3.1.58 contain an arbitrary file overwrite vulnerability in IndexFile.from_tree,
IndexFile.reset, and IndexFile.merge_tree methods that append caller-influenced treeish strings to git
read-tree without option validation or argument separation. Attackers can inject the --index-output option
to overwrite arbitrary files with a valid git-index blob, destroying existing file content at attacker-
controlled writable paths. (CVE-2026-76219)

- GitPython before 3.1.58 contains a command execution vulnerability in the check_unsafe_options guard that
can be bypassed by combining a single-character kwarg with split_single_char_options=False. Attackers can
supply a crafted kwargs dictionary to guarded methods like clone_from to emit a joined token parsed as
--upload-pack, enabling arbitrary OS command execution at default allow_unsafe_options=False.
(CVE-2026-76220)

Solution

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

See Also

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

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

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

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

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

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

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

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

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

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

Plugin Details

Severity: Critical

ID: 483102

Version: Revision 1.2

Type: Local

Published: 11/26/2026

Updated: 11/26/2026

Supported Sensors: Agentless Assessment

Risk Information

VPR

Risk Factor: Medium

Score: 6.9

Percentile: 96.58

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 7

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

CVSS Score Source: CVE-2026-76218

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.9

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

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

CVSS v4

Risk Factor: Critical

Base Score: 9.3

Threat Score: 8.1

Threat Vector: CVSS:4.0/E:P

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS Score Source: CVE-2026-78676

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 8/7/2026

Reference Information

CVE: CVE-2026-76217, CVE-2026-76218, CVE-2026-76219, CVE-2026-76220, CVE-2026-76221, CVE-2026-76222, CVE-2026-78675, CVE-2026-78676, CVE-2026-78677, CVE-2026-78678