Amazon Linux AMI : php56 (ALAS-2017-871)

critical Nessus Plugin ID 102545

Synopsis

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

Description

Out-of-bounds heap write in bitset_set_range()

An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A heap out-of-bounds write occurs in bitset_set_range() during regular expression compilation due to an uninitialized variable from an incorrect state transition. An incorrect state transition in parse_char_class() could create an execution path that leaves a critical local variable uninitialized until it's used as an index, resulting in an out-of-bounds write memory corruption. (CVE-2017-9228)

Invalid pointer dereference in left_adjust_char_head()

An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A SIGSEGV occurs in left_adjust_char_head() during regular expression compilation. Invalid handling of reg->dmax in forward_search_range() could result in an invalid pointer dereference, normally as an immediate denial-of-service condition. (CVE-2017-9229)

Heap buffer overflow in next_state_val() during regular expression compilation

An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A heap out-of-bounds write or read occurs in next_state_val() during regular expression compilation. Octal numbers larger than 0xff are not handled correctly in fetch_token() and fetch_token_in_cc(). A malformed regular expression containing an octal number in the form of '\\700';
would produce an invalid code point value larger than 0xff in next_state_val(), resulting in an out-of-bounds write memory corruption. (CVE-2017-9226)

Out-of-bounds stack read in mbc_enc_len() during regular expression searching

An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A stack out-of-bounds read occurs in mbc_enc_len() during regular expression searching. Invalid handling of reg>dmin in forward_search_range() could result in an invalid pointer dereference, as an out-of-bounds read from a stack buffer. CVE-2017-9227

Out-of-bounds stack read in match_at() during regular expression searching

An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A stack out-of-bounds read occurs in match_at() during regular expression searching. A logical error involving order of validation and access in match_at() could result in an out-of-bounds read from a stack buffer.
(CVE-2017-9224)

Solution

Run 'yum update php56' to update your system.

See Also

https://alas.aws.amazon.com/ALAS-2017-871.html

Plugin Details

Severity: Critical

ID: 102545

File Name: ala_ALAS-2017-871.nasl

Version: 3.3

Type: local

Agent: unix

Published: 8/18/2017

Updated: 4/18/2018

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: High

Base Score: 7.5

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

CVSS v3

Risk Factor: Critical

Base Score: 9.8

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

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:php56-imap, p-cpe:/a:amazon:linux:php56-mysqlnd, p-cpe:/a:amazon:linux:php56-opcache, p-cpe:/a:amazon:linux:php56-recode, p-cpe:/a:amazon:linux:php56-xml, p-cpe:/a:amazon:linux:php56-fpm, p-cpe:/a:amazon:linux:php56-bcmath, p-cpe:/a:amazon:linux:php56-mssql, p-cpe:/a:amazon:linux:php56-dbg, p-cpe:/a:amazon:linux:php56-embedded, cpe:/o:amazon:linux, p-cpe:/a:amazon:linux:php56-tidy, p-cpe:/a:amazon:linux:php56-intl, p-cpe:/a:amazon:linux:php56-pgsql, p-cpe:/a:amazon:linux:php56-gmp, p-cpe:/a:amazon:linux:php56-enchant, p-cpe:/a:amazon:linux:php56-mcrypt, p-cpe:/a:amazon:linux:php56-odbc, p-cpe:/a:amazon:linux:php56-pspell, p-cpe:/a:amazon:linux:php56-soap, p-cpe:/a:amazon:linux:php56-process, p-cpe:/a:amazon:linux:php56-cli, p-cpe:/a:amazon:linux:php56-dba, p-cpe:/a:amazon:linux:php56-xmlrpc, p-cpe:/a:amazon:linux:php56-gd, p-cpe:/a:amazon:linux:php56-mbstring, p-cpe:/a:amazon:linux:php56-devel, p-cpe:/a:amazon:linux:php56-ldap, p-cpe:/a:amazon:linux:php56-snmp, p-cpe:/a:amazon:linux:php56-debuginfo, p-cpe:/a:amazon:linux:php56, p-cpe:/a:amazon:linux:php56-pdo, p-cpe:/a:amazon:linux:php56-common

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

Patch Publication Date: 8/17/2017

Reference Information

CVE: CVE-2017-9224, CVE-2017-9226, CVE-2017-9227, CVE-2017-9228, CVE-2017-9229

ALAS: 2017-871