Alpine: php7: security update to 7.1.9-r0

critical Tenable Cloud Security Plugin ID 406317

Description

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

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

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

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

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

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

See Also

https://security.alpinelinux.org/vuln/CVE-2017-9224

https://security.alpinelinux.org/vuln/CVE-2017-9226

https://security.alpinelinux.org/vuln/CVE-2017-9227

https://security.alpinelinux.org/vuln/CVE-2017-9228

https://security.alpinelinux.org/vuln/CVE-2017-9229

Plugin Details

Severity: Critical

ID: 406317

Version: Revision 1.24

Type: Local

Published: 10/31/2023

Updated: 3/13/2025

Supported Sensors: Agentless Assessment, Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.15

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

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

CVSS Score Source: CVE-2017-9228

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/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: 5/22/2017

Reference Information

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

BID: 100320, 100538, 101244, 99501

IAVB: 2017-B-0088-S