Skip to content
OpenAdvisories
Critical SUSE-SU-2025:1012-1 6 CVEs

Security update for php8

Published Mar 25, 2025 · Updated May 2, 2025

Summary

This update for php8 fixes the following issues:

- CVE-2025-1217: Fixed header parser of `http` stream wrapper not handling folded headers (bsc#1239664)
- CVE-2024-11235: Fixed reference counting in php_request_shutdown causing Use-After-Free (bsc#1239666)
- CVE-2025-1219: Fixed libxml streams using wrong `content-type` header when requesting a redirected resource (bsc#1239667)
- CVE-2025-1734: Fixed streams HTTP wrapper not failing for headers with invalid name and no colon (bsc#1239668)
- CVE-2025-1861: Fixed stream HTTP wrapper truncate redirect location to 1024 bytes (bsc#1239669)
- CVE-2025-1736: Fixed stream HTTP wrapper header check might omitting basic auth header (bsc#1239670)

Version update to 8.2.28:
Core:
Fixed bug GH-17211 (observer segfault on function loaded with dl()).
LibXML:
Fixed GHSA-wg4p-4hqh-c3g9.
Fixed GHSA-p3x9-6h7p-cgfc (libxml streams use wrong `content-type` header when requesting a redirected resource).
Streams:
Fixed GHSA-hgf5-96fm-v528 (Stream HTTP wrapper header check might omit basic auth header).
Fixed GHSA-52jp-hrpf-2jff (Stream HTTP wrapper truncate redirect location to 1024 bytes).
Fixed GHSA-pcmh-g36c-qc44 (Streams HTTP wrapper does not fail for headers without colon).
Fixed GHSA-v8xr-gpvj-cx9g (Header parser of `http` stream wrapper does not handle folded headers).

Version update version 8.2.27
Calendar:
Fixed jdtogregorian overflow.
Fixed cal_to_jd julian_days argument overflow.
COM:
Fixed bug GH-16991 (Getting typeinfo of non DISPATCH variant segfaults).
Core:
Fail early in *nix configuration build script.
Fixed bug GH-16727 (Opcache bad signal 139 crash in ZTS bookworm (frankenphp)).
Fixed bug GH-16799 (Assertion failure at Zend/zend_vm_execute.h:7469).
Fixed bug GH-16630 (UAF in lexer with encoding translation and heredocs).
Fix is_zend_ptr() huge block comparison.
Fixed potential OOB read in zend_dirname() on Windows.
Curl:
Fix various memory leaks in curl mime handling.
FPM:
Fixed GH-16432 (PHP-FPM 8.2 SIGSEGV in fpm_get_status).
GD:
Fixed GH-16776 (imagecreatefromstring overflow).
GMP:
Revert gmp_pow() overly restrictive overflow checks.
Hash:
Fixed GH-16711: Segfault in mhash().
Opcache:
Fixed bug GH-16770 (Tracing JIT type mismatch when returning UNDEF).
Fixed bug GH-16851 (JIT_G(enabled) not set correctly on other threads).
Fixed bug GH-16902 (Set of opcache tests fail zts+aarch64).
OpenSSL:
Prevent unexpected array entry conversion when reading key.
Fix various memory leaks related to openssl exports.
Fix memory leak in php_openssl_pkey_from_zval().
PDO:
Fixed memory leak of `setFetchMode()`.
Phar:
Fixed bug GH-16695 (phar:// tar parser and zero-length file header blocks).
PHPDBG:
Fixed bug GH-15208 (Segfault with breakpoint map and phpdbg_clear()).
SAPI:
Fixed bug GH-16998 (UBSAN warning in rfc1867).
SimpleXML:
Fixed bug GH-16808 (Segmentation fault in RecursiveIteratorIterator ->current() with a xml element input).
SNMP:
Fixed bug GH-16959 (snmget modifies the object_id array).
Standard:
Fixed bug GH-16905 (Internal iterator functions can't handle UNDEF properties).
Streams:
Fixed network connect poll interuption handling.

Fixed packages 12

ReleasePackageFixed in
openSUSE · Leap 15.6 apache2-mod_php8 8.2.28-150600.3.16.1
openSUSE · Leap 15.6 php8 8.2.28-150600.3.16.1
openSUSE · Leap 15.6 php8-embed 8.2.28-150600.3.16.1
openSUSE · Leap 15.6 php8-fastcgi 8.2.28-150600.3.16.1
openSUSE · Leap 15.6 php8-fpm 8.2.28-150600.3.16.1
openSUSE · Leap 15.6 php8-test 8.2.28-150600.3.16.1
SUSE · SLES 15 SP6 Linux Enterprise Module for Web and Scripting 15 SP6 apache2-mod_php8 8.2.28-150600.3.16.1
SUSE · SLES 15 SP6 Linux Enterprise Module for Web and Scripting 15 SP6 php8 8.2.28-150600.3.16.1
SUSE · SLES 15 SP6 Linux Enterprise Module for Web and Scripting 15 SP6 php8-embed 8.2.28-150600.3.16.1
SUSE · SLES 15 SP6 Linux Enterprise Module for Web and Scripting 15 SP6 php8-fastcgi 8.2.28-150600.3.16.1
SUSE · SLES 15 SP6 Linux Enterprise Module for Web and Scripting 15 SP6 php8-fpm 8.2.28-150600.3.16.1
SUSE · SLES 15 SP6 Linux Enterprise Module for Web and Scripting 15 SP6 php8-test 8.2.28-150600.3.16.1

Vulnerabilities 6

  • Critical 9.2

    Reference counting in php_request_shutdown causes Use-After-Free

    In PHP versions 8.3.* before 8.3.19 and 8.4.* before 8.4.5, a code sequence involving __set handler or ??=  operator and exceptions can lead to a use-after-free vulnerability. If the third party can control the memory layout leading to this, for example by su…

  • Medium 6.3

    Header parser of http stream wrapper does not handle folded headers

    In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when http request module parses HTTP response obtained from a server, folded headers are parsed incorrectly, which may lead to misinterpreting the re…

  • Medium 6.3
    CVE-2025-1219 Public exploit

    libxml streams use wrong content-type header when requesting a redirected resource

    In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when requesting a HTTP resource using the DOM or SimpleXML extensions, the wrong content-type header is used to determine the charset when the reques…

  • Medium 6.3

    Streams HTTP wrapper does not fail for headers with invalid name and no colon

    In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when receiving headers from HTTP server, the headers missing a colon (:) are treated as valid headers even though they are not. This may confuse appl…

  • Medium 6.3

    Stream HTTP wrapper header check might omit basic auth header

    In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when user-supplied headers are sent, the insufficient validation of the end-of-line characters may prevent certain headers from being sent or lead to…

  • Medium 6.3

    Stream HTTP wrapper truncates redirect location to 1024 bytes

    In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when parsing HTTP redirect in the response to an HTTP request, there is currently limit on the location value size caused by limited size of the loca…

References

  • report
    https://bugzilla.suse.com/1239664
  • report
    https://bugzilla.suse.com/1239666
  • report
    https://bugzilla.suse.com/1239667
  • report
    https://bugzilla.suse.com/1239668
  • report
    https://bugzilla.suse.com/1239669
  • report
    https://bugzilla.suse.com/1239670
  • web
    https://www.suse.com/security/cve/CVE-2024-11235
  • web
    https://www.suse.com/security/cve/CVE-2025-1217
  • web
    https://www.suse.com/security/cve/CVE-2025-1219
  • web
    https://www.suse.com/security/cve/CVE-2025-1734
  • web
    https://www.suse.com/security/cve/CVE-2025-1736
  • web
    https://www.suse.com/security/cve/CVE-2025-1861