Skip to content
OpenAdvisories
Medium ALSA-2023:0965 5 CVEs

Moderate: php security update

Published Feb 28, 2023 · Updated Oct 29, 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 (8.0.27). (BZ#2161667)

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: Due to an integer overflow PDO::quote() may return unquoted string (CVE-2022-31631)
* php: phar wrapper can occur dos when using 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.

Fixed packages 25

ReleasePackageFixed in
AlmaLinux · 9 php 8.0.27-1.el9_1
AlmaLinux · 9 php-bcmath 8.0.27-1.el9_1
AlmaLinux · 9 php-cli 8.0.27-1.el9_1
AlmaLinux · 9 php-common 8.0.27-1.el9_1
AlmaLinux · 9 php-dba 8.0.27-1.el9_1
AlmaLinux · 9 php-dbg 8.0.27-1.el9_1
AlmaLinux · 9 php-devel 8.0.27-1.el9_1
AlmaLinux · 9 php-embedded 8.0.27-1.el9_1
AlmaLinux · 9 php-enchant 8.0.27-1.el9_1
AlmaLinux · 9 php-ffi 8.0.27-1.el9_1
AlmaLinux · 9 php-fpm 8.0.27-1.el9_1
AlmaLinux · 9 php-gd 8.0.27-1.el9_1
AlmaLinux · 9 php-gmp 8.0.27-1.el9_1
AlmaLinux · 9 php-intl 8.0.27-1.el9_1
AlmaLinux · 9 php-ldap 8.0.27-1.el9_1
AlmaLinux · 9 php-mbstring 8.0.27-1.el9_1
AlmaLinux · 9 php-mysqlnd 8.0.27-1.el9_1
AlmaLinux · 9 php-odbc 8.0.27-1.el9_1
AlmaLinux · 9 php-opcache 8.0.27-1.el9_1
AlmaLinux · 9 php-pdo 8.0.27-1.el9_1
AlmaLinux · 9 php-pgsql 8.0.27-1.el9_1
AlmaLinux · 9 php-process 8.0.27-1.el9_1
AlmaLinux · 9 php-snmp 8.0.27-1.el9_1
AlmaLinux · 9 php-soap 8.0.27-1.el9_1
AlmaLinux · 9 php-xml 8.0.27-1.el9_1

Vulnerabilities 5

  • 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.

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/9/ALSA-2023-0965.html