Alpine: multiple patch packages: security update to 2.7.6-r6

high Tenable Self-Hosted Container Security Plugin ID 424328

Description

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

- do_ed_script in pch.c in GNU patch through 2.7.6 does not block strings beginning with a ! character.
NOTE: this is the same commit as for CVE-2019-13638, but the ! syntax is specific to ed, and is unrelated
to a shell metacharacter. (CVE-2018-20969)

- GNU Patch version 2.7.6 contains an input validation vulnerability when processing patch files,
specifically the EDITOR_PROGRAM invocation (using ed) can result in code execution. This attack appear to
be exploitable via a patch file processed via the patch utility. This is similar to FreeBSD's
CVE-2015-1418 however although they share a common ancestry the code bases have diverged over time.
(CVE-2018-1000156)

- GNU patch through 2.7.6 is vulnerable to OS shell command injection that can be exploited by opening a
crafted patch file that contains an ed style diff payload with shell metacharacters. The ed editor does
not need to be present on the vulnerable system. This is different from CVE-2018-1000156. (CVE-2019-13638)

See Also

https://security.alpinelinux.org/vuln/CVE-2018-1000156

https://security.alpinelinux.org/vuln/CVE-2018-20969

https://security.alpinelinux.org/vuln/CVE-2019-13638

Plugin Details

Severity: High

ID: 424328

Version: Revision 1.8

Type: Local

Published: 4/4/2025

Updated: 7/2/2026

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

Risk Information

VPR

Risk Factor: Medium

Score: 6.9

Percentile: 97.06

CVSS v2

Risk Factor: High

Base Score: 9.3

Temporal Score: 7.3

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

CVSS Score Source: CVE-2019-13638

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 7

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/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

Vulnerability Publication Date: 4/6/2018

Reference Information

CVE: CVE-2018-1000156, CVE-2018-20969, CVE-2019-13638

BID: 104691