Skip to content
OpenAdvisories
Medium ALSA-2023:2903 6 CVEs

Moderate: php:7.4 security update

Published May 16, 2023 · Updated Nov 5, 2026

Summary

PHP is an HTML-embedded scripting language commonly used with the Apache HTTP Server.

The following packages have been upgraded to a later upstream version: php (7.4.33).

Security Fix(es):

* XKCP: buffer overflow in the SHA-3 reference implementation (CVE-2022-37454)
* php: standard insecure cookie could be treated as a '__Host-' or '__Secure-' cookie by PHP applications (CVE-2022-31629)
* php: OOB read due to insufficient input validation in imageloadfont() (CVE-2022-31630)
* php: PDO::quote() may return unquoted string due to an integer overflow (CVE-2022-31631)
* php: phar: infinite loop when decompressing quine gzip file (CVE-2022-31628)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.

Fixed packages 45

ReleasePackageFixed in
AlmaLinux · 8 apcu-panel 5.1.18-1.module_el8.6.0+2750+78feabcb
AlmaLinux · 8 libzip 1.6.1-1.module_el8.6.0+2750+78feabcb
AlmaLinux · 8 libzip 1.6.1-1.module_el8.6.0+3239+bedf0508
AlmaLinux · 8 libzip-devel 1.6.1-1.module_el8.6.0+2750+78feabcb
AlmaLinux · 8 libzip-devel 1.6.1-1.module_el8.6.0+3239+bedf0508
AlmaLinux · 8 libzip-tools 1.6.1-1.module_el8.6.0+3239+bedf0508
AlmaLinux · 8 libzip-tools 1.6.1-1.module_el8.6.0+2750+78feabcb
AlmaLinux · 8 php 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-bcmath 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-cli 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-common 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-dba 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-dbg 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-devel 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-embedded 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-enchant 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-ffi 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-fpm 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-gd 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-gmp 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-intl 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-json 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-ldap 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-mbstring 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-mysqlnd 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-odbc 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-opcache 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-pdo 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-pear 1:1.10.13-1.module_el8.6.0+3268+b150a051
AlmaLinux · 8 php-pecl-apcu 5.1.18-1.module_el8.6.0+2750+78feabcb
AlmaLinux · 8 php-pecl-apcu 5.1.18-1.module_el8.6.0+3239+bedf0508
AlmaLinux · 8 php-pecl-apcu-devel 5.1.18-1.module_el8.6.0+3239+bedf0508
AlmaLinux · 8 php-pecl-apcu-devel 5.1.18-1.module_el8.6.0+2750+78feabcb
AlmaLinux · 8 php-pecl-rrd 2.0.1-1.module_el8.6.0+2750+78feabcb
AlmaLinux · 8 php-pecl-rrd 2.0.1-1.module_el8.6.0+3239+bedf0508
AlmaLinux · 8 php-pecl-xdebug 2.9.5-1.module_el8.6.0+3239+bedf0508
AlmaLinux · 8 php-pecl-xdebug 2.9.5-1.module_el8.6.0+2750+78feabcb
AlmaLinux · 8 php-pecl-zip 1.18.2-1.module_el8.6.0+2750+78feabcb
AlmaLinux · 8 php-pecl-zip 1.18.2-1.module_el8.6.0+3239+bedf0508
AlmaLinux · 8 php-pgsql 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-process 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-snmp 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-soap 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-xml 7.4.33-1.module_el8.8.0+3477+f828cbb0
AlmaLinux · 8 php-xmlrpc 7.4.33-1.module_el8.8.0+3477+f828cbb0

Vulnerabilities 6

  • Critical 9.8

    Buffer overflow in sponge queue functions

    The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and resultant buffer overflow that allows attackers to execute arbitrary code or eliminate expected cryptographic properties. This occurs in the sponge function interface.

  • Critical 9.1

    PDO::quote() may return unquoted string

    In PHP versions 8.0.* before 8.0.27, 8.1.* before 8.1.15, 8.2.* before 8.2.2 when using PDO::quote() function to quote user-supplied data for SQLite, supplying an overly long string may cause the driver to incorrectly quote the data, which may further lead to…

  • Medium 6.5
    CVE-2022-31629 Public exploit EPSS 50%

    $_COOKIE names string replacement (. -> _): cookie integrity vulnerabilities

    In PHP versions before 7.4.31, 8.0.24 and 8.1.11, the vulnerability enables network and same-site attackers to set a standard insecure cookie in the victim's browser which is treated as a `__Host-` or `__Secure-` cookie by PHP applications.

  • Medium 6.5
    CVE-2022-31630 Public exploit

    OOB read due to insufficient input validation in imageloadfont()

    In PHP versions prior to 7.4.33, 8.0.25 and 8.1.12, when using imageloadfont() function in gd extension, it is possible to supply a specially crafted font file, such as if the loaded font is used with imagechar() function, the read outside allocated buffer wi…

  • Low 2.3

    phar wrapper can occur dos when using quine gzip file

    In PHP versions before 7.4.31, 8.0.24 and 8.1.11, the phar uncompressor code would recursively uncompress "quines" gzip files, resulting in an infinite loop.

  • Unscored —

    The zend_string_extend function in Zend/zend_string.h in PHP through 7.1.5 does not prevent changes to string objects t…

References

  • report
    https://access.redhat.com/security/cve/CVE-2022-31628
  • report
    https://access.redhat.com/security/cve/CVE-2022-31629
  • report
    https://access.redhat.com/security/cve/CVE-2022-31630
  • report
    https://access.redhat.com/security/cve/CVE-2022-31631
  • report
    https://access.redhat.com/security/cve/CVE-2022-37454
  • report
    https://bugzilla.redhat.com/2133687
  • report
    https://bugzilla.redhat.com/2133688
  • report
    https://bugzilla.redhat.com/2139280
  • report
    https://bugzilla.redhat.com/2140200
  • report
    https://bugzilla.redhat.com/2158791
  • advisory
    https://errata.almalinux.org/8/ALSA-2023-2903.html
  • report
    https://www.redhat.com/security/data/cve/CVE-2017-8923.html