Skip to content
OpenAdvisories
High ALAS2-2023-2375 4 CVEs

Important: php security update (Amazon Linux 2)

Published Nov 29, 2023 · Updated Dec 4, 2023

Summary

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2023-0662: In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, excessive number of parts in HTTP form upload can cause high resource consumption and excessive number of log entries. This can cause denial of service on the affected server by exhausting CPU resources or disk space. CVE-2022-31625: A vulnerability was found in PHP due to an uninitialized array in pg_query_params() function. When using the Postgres database extension, supplying invalid parameters to the parameterized query may lead to PHP attempting to free memory, using uninitialized data as pointers. This flaw allows a remote attacker with the ability to control query parameters to execute arbitrary code on the system or may cause a denial of service. CVE-2017-9229: 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-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 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.

Fixed packages 25

ReleasePackageFixed in
Amazon Linux · 2 php 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-bcmath 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-cli 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-common 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-dba 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-debuginfo 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-devel 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-embedded 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-enchant 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-fpm 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-gd 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-intl 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-ldap 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-mbstring 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-mysqlnd 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-odbc 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-pdo 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-pgsql 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-process 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-pspell 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-recode 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-snmp 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-soap 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-xml 0:5.4.16-46.amzn2.0.3
Amazon Linux · 2 php-xmlrpc 0:5.4.16-46.amzn2.0.3

Vulnerabilities 4

  • High 8.1

    Freeing unallocated memory in php_pgsql_free_params()

    In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when using Postgres database extension, supplying invalid parameters to the parametrized query may lead to PHP attempting to free memory using uninitialized data as pointers. This …

  • High 7.5

    DoS vulnerability when parsing multipart request body

    In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, excessive number of parts in HTTP form upload can cause high resource consumption and excessive number of log entries. This can cause denial of service on the affected server by exhaustin…

  • Unscored —

    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 …

  • Unscored —

    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 …

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2017-9228.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2017-9229.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-31625.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2023-0662.html