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

Medium Nessus Plugin ID 109696

Synopsis

The remote Amazon Linux AMI 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/ALAS-2018-1008.html

Plugin Details

Severity: Medium

ID: 109696

File Name: ala_ALAS-2018-1008.nasl

Version: 1.3

Type: local

Agent: unix

Published: 2018/05/11

Updated: 2018/08/31

Dependencies: 12634

Risk Information

Risk Factor: Medium

CVSS v2.0

Base Score: 6.8

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

CVSS v3.0

Base Score: 7.8

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

Vulnerability Information

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

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

Patch Publication Date: 2018/05/10

Reference Information

CVE: CVE-2018-1000156

ALAS: 2018-1008