Amazon Linux 2 : patch (ALAS-2018-1008)

high Nessus Plugin ID 109687

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

Malicious patch files cause ed to execute arbitrary commands

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)

Solution

Run 'yum update patch' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALAS-2018-1008.html

Plugin Details

Severity: High

ID: 109687

File Name: al2_ALAS-2018-1008.nasl

Version: 1.5

Type: local

Agent: unix

Published: 5/11/2018

Updated: 10/10/2024

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.3

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

CVSS Score Source: CVE-2018-1000156

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

CPE: p-cpe:/a:amazon:linux:patch-debuginfo, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:patch

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/10/2018

Vulnerability Publication Date: 4/6/2018

Reference Information

CVE: CVE-2018-1000156

ALAS: 2018-1008