Skip to content
OpenAdvisories
Medium ALSA-2022:8197 2 CVEs

Moderate: php security, bug fix, and enhancement update

Published Nov 15, 2022 · 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.20). (BZ#2095752)

Security Fix(es):

* php: Use after free due to php_filter_float() failing for ints (CVE-2021-21708)
* php: Uninitialized array in pg_query_params() leading to RCE (CVE-2022-31625)

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 25

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

Vulnerabilities 2

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

References

  • report
    https://access.redhat.com/security/cve/CVE-2021-21708
  • report
    https://access.redhat.com/security/cve/CVE-2022-31625
  • report
    https://bugzilla.redhat.com/2055879
  • report
    https://bugzilla.redhat.com/2098521
  • advisory
    https://errata.almalinux.org/9/ALSA-2022-8197.html