Alpine: multiple patch packages: security update to 2.7.6-r5 (deprecated)

high Tenable Cloud Security Plugin ID 400518

Description

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

- 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://git.alpinelinux.org/aports/commit/?id=095fae596fc49100874f93b298316eb4f6d24f0f

https://git.alpinelinux.org/aports/commit/?id=c2c48f7368e24b9468874c9f0a654af0d78ec393

Plugin Details

Severity: High

ID: 400518

Version: Revision 1.23

Type: Local

Published: 8/16/2023

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

Patch Publication Date: 8/8/2019

Vulnerability Publication Date: 4/6/2018

Reference Information

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

BID: 104691