ALAS-2024-2520

Related Vulnerabilities: 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 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)

ALAS-2024-2520


Amazon Linux 2 Security Advisory: ALAS-2024-2520
Advisory Release Date: 2024-04-11 01:07 Pacific
Advisory Updated Date: 2024-04-15 12:00 Pacific
Severity: Important

Issue Overview:

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)


Affected Packages:

php


Note:

This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.


Issue Correction:
Run yum update php to update your system.

New Packages:
aarch64:
    php-5.4.16-46.amzn2.0.5.aarch64
    php-cli-5.4.16-46.amzn2.0.5.aarch64
    php-fpm-5.4.16-46.amzn2.0.5.aarch64
    php-common-5.4.16-46.amzn2.0.5.aarch64
    php-devel-5.4.16-46.amzn2.0.5.aarch64
    php-ldap-5.4.16-46.amzn2.0.5.aarch64
    php-pdo-5.4.16-46.amzn2.0.5.aarch64
    php-mysqlnd-5.4.16-46.amzn2.0.5.aarch64
    php-pgsql-5.4.16-46.amzn2.0.5.aarch64
    php-process-5.4.16-46.amzn2.0.5.aarch64
    php-odbc-5.4.16-46.amzn2.0.5.aarch64
    php-soap-5.4.16-46.amzn2.0.5.aarch64
    php-snmp-5.4.16-46.amzn2.0.5.aarch64
    php-xml-5.4.16-46.amzn2.0.5.aarch64
    php-xmlrpc-5.4.16-46.amzn2.0.5.aarch64
    php-mbstring-5.4.16-46.amzn2.0.5.aarch64
    php-gd-5.4.16-46.amzn2.0.5.aarch64
    php-bcmath-5.4.16-46.amzn2.0.5.aarch64
    php-dba-5.4.16-46.amzn2.0.5.aarch64
    php-embedded-5.4.16-46.amzn2.0.5.aarch64
    php-pspell-5.4.16-46.amzn2.0.5.aarch64
    php-recode-5.4.16-46.amzn2.0.5.aarch64
    php-intl-5.4.16-46.amzn2.0.5.aarch64
    php-enchant-5.4.16-46.amzn2.0.5.aarch64
    php-debuginfo-5.4.16-46.amzn2.0.5.aarch64

i686:
    php-5.4.16-46.amzn2.0.5.i686
    php-cli-5.4.16-46.amzn2.0.5.i686
    php-fpm-5.4.16-46.amzn2.0.5.i686
    php-common-5.4.16-46.amzn2.0.5.i686
    php-devel-5.4.16-46.amzn2.0.5.i686
    php-ldap-5.4.16-46.amzn2.0.5.i686
    php-pdo-5.4.16-46.amzn2.0.5.i686
    php-mysqlnd-5.4.16-46.amzn2.0.5.i686
    php-pgsql-5.4.16-46.amzn2.0.5.i686
    php-process-5.4.16-46.amzn2.0.5.i686
    php-odbc-5.4.16-46.amzn2.0.5.i686
    php-soap-5.4.16-46.amzn2.0.5.i686
    php-snmp-5.4.16-46.amzn2.0.5.i686
    php-xml-5.4.16-46.amzn2.0.5.i686
    php-xmlrpc-5.4.16-46.amzn2.0.5.i686
    php-mbstring-5.4.16-46.amzn2.0.5.i686
    php-gd-5.4.16-46.amzn2.0.5.i686
    php-bcmath-5.4.16-46.amzn2.0.5.i686
    php-dba-5.4.16-46.amzn2.0.5.i686
    php-embedded-5.4.16-46.amzn2.0.5.i686
    php-pspell-5.4.16-46.amzn2.0.5.i686
    php-recode-5.4.16-46.amzn2.0.5.i686
    php-intl-5.4.16-46.amzn2.0.5.i686
    php-enchant-5.4.16-46.amzn2.0.5.i686
    php-debuginfo-5.4.16-46.amzn2.0.5.i686

src:
    php-5.4.16-46.amzn2.0.5.src

x86_64:
    php-5.4.16-46.amzn2.0.5.x86_64
    php-cli-5.4.16-46.amzn2.0.5.x86_64
    php-fpm-5.4.16-46.amzn2.0.5.x86_64
    php-common-5.4.16-46.amzn2.0.5.x86_64
    php-devel-5.4.16-46.amzn2.0.5.x86_64
    php-ldap-5.4.16-46.amzn2.0.5.x86_64
    php-pdo-5.4.16-46.amzn2.0.5.x86_64
    php-mysqlnd-5.4.16-46.amzn2.0.5.x86_64
    php-pgsql-5.4.16-46.amzn2.0.5.x86_64
    php-process-5.4.16-46.amzn2.0.5.x86_64
    php-odbc-5.4.16-46.amzn2.0.5.x86_64
    php-soap-5.4.16-46.amzn2.0.5.x86_64
    php-snmp-5.4.16-46.amzn2.0.5.x86_64
    php-xml-5.4.16-46.amzn2.0.5.x86_64
    php-xmlrpc-5.4.16-46.amzn2.0.5.x86_64
    php-mbstring-5.4.16-46.amzn2.0.5.x86_64
    php-gd-5.4.16-46.amzn2.0.5.x86_64
    php-bcmath-5.4.16-46.amzn2.0.5.x86_64
    php-dba-5.4.16-46.amzn2.0.5.x86_64
    php-embedded-5.4.16-46.amzn2.0.5.x86_64
    php-pspell-5.4.16-46.amzn2.0.5.x86_64
    php-recode-5.4.16-46.amzn2.0.5.x86_64
    php-intl-5.4.16-46.amzn2.0.5.x86_64
    php-enchant-5.4.16-46.amzn2.0.5.x86_64
    php-debuginfo-5.4.16-46.amzn2.0.5.x86_64