Alpine: patch: security update to 2.7.6-r0

high Tenable Self-Hosted Container Security Plugin ID 406211

Description

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

- A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6. (CVE-2018-6952)

- 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-6952

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

Plugin Details

Severity: High

ID: 406211

Version: Revision 1.25

Type: Local

Published: 10/31/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

Vulnerability Publication Date: 2/3/2018

Reference Information

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

BID: 103047, 104691