Skip to content
OpenAdvisories
Critical SUSE-SU-2022:3997-1 8 CVEs

Security update for php7

Published Nov 15, 2022 · Updated Feb 4, 2026

Summary

This update for php7 fixes the following issues:

- Version update to 7.4.33:
- CVE-2022-31630: Fixed out-of-bounds read due to insufficient input validation in imageloadfont() (bsc#1204979).
- CVE-2022-37454: Fixed buffer overflow in hash_update() on long parameter (bsc#1204577).

- Version update to 7.4.32 (jsc#SLE-23639)
- CVE-2022-31628: Fixed an uncontrolled recursion in the phar uncompressor while decompressing 'quines' gzip files. (bsc#1203867)
- CVE-2022-31629: Fixed a bug which could lead an attacker to set an insecure cookie that will treated as secure in the victim's browser. (bsc#1203870)

Fixed packages 11

ReleasePackageFixed in
openSUSE · Leap 15.4 apache2-mod_php7 7.4.33-150400.4.13.1
openSUSE · Leap 15.4 php7 7.4.33-150400.4.13.1
openSUSE · Leap 15.4 php7-embed 7.4.33-150400.4.13.1
openSUSE · Leap 15.4 php7-fastcgi 7.4.33-150400.4.13.1
openSUSE · Leap 15.4 php7-fpm 7.4.33-150400.4.13.1
openSUSE · Leap 15.4 php7-test 7.4.33-150400.4.13.2
SUSE · SLES 15 SP4 Linux Enterprise Module for Legacy 15 SP4 apache2-mod_php7 7.4.33-150400.4.13.1
SUSE · SLES 15 SP4 Linux Enterprise Module for Legacy 15 SP4 php7 7.4.33-150400.4.13.1
SUSE · SLES 15 SP4 Linux Enterprise Module for Legacy 15 SP4 php7-fastcgi 7.4.33-150400.4.13.1
SUSE · SLES 15 SP4 Linux Enterprise Module for Legacy 15 SP4 php7-fpm 7.4.33-150400.4.13.1
SUSE · SLES 15 SP4 Linux Enterprise Module for Package Hub 15 SP4 php7-embed 7.4.33-150400.4.13.1

Vulnerabilities 8

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

  • High 8.2

    UAF due to php_filter_float() failing

    In PHP versions 7.4.x below 7.4.28, 8.0.x below 8.0.16, and 8.1.x below 8.1.3, when using filter functions with FILTER_VALIDATE_FLOAT filter and min/max limits, if the filter fails, there is a possibility to trigger use of allocated memory after free, which c…

  • 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
    CVE-2022-31626 Public exploit EPSS 58%

    mysqlnd/pdo password buffer overflow

    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 pdo_mysql extension with mysqlnd driver, if the third party is allowed to supply host to connect to and the password for the connection, password of excessive length can trigg…

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

  • Medium 5.3
    CVE-2021-21707 Public exploit EPSS 25%

    Special characters break path parsing in XML functions

    In PHP versions 7.3.x below 7.3.33, 7.4.x below 7.4.26 and 8.0.x below 8.0.13, certain XML parsing functions, like simplexml_load_file(), URL-decode the filename passed to them. If that filename contains URL-encoded NUL character, this may cause the function …

  • 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://bugzilla.suse.com/1203867
  • report
    https://bugzilla.suse.com/1203870
  • report
    https://bugzilla.suse.com/1204577
  • report
    https://bugzilla.suse.com/1204979
  • web
    https://www.suse.com/security/cve/CVE-2021-21707
  • web
    https://www.suse.com/security/cve/CVE-2021-21708
  • web
    https://www.suse.com/security/cve/CVE-2022-31625
  • web
    https://www.suse.com/security/cve/CVE-2022-31626
  • web
    https://www.suse.com/security/cve/CVE-2022-31628
  • web
    https://www.suse.com/security/cve/CVE-2022-31629
  • web
    https://www.suse.com/security/cve/CVE-2022-31630
  • web
    https://www.suse.com/security/cve/CVE-2022-37454