======================================================================

                             CERT-Renater

                 Note d'Information No. 2024/VULN282
_____________________________________________________________________

DATE                : 07/06/2024

HARDWARE PLATFORM(S): /
  OPERATING SYSTEM(S): Systems running PHP versions prior to 8.3.8,
                                    8.2.20, 8.1.29.

=====================================================================
https://www.php.net/ChangeLog-8.php#PHP_8_3
https://www.php.net/ChangeLog-8.php#PHP_8_2
https://www.php.net/ChangeLog-8.php#PHP_8_1
_____________________________________________________________________


Version 8.3.8
06 Jun 2024

     CGI:
         Fixed buffer limit on Windows, replacing read call usage
by _read.
         Fixed bug GHSA-3qgc-jrrr-25jv (Bypass of CVE-2012-1823,
Argument Injection in PHP-CGI). (CVE-2024-4577)
     CLI:
         Fixed bug GH-14189 (PHP Interactive shell input state
incorrectly handles quoted heredoc literals.).
     Core:
         Fixed bug GH-13970 (Incorrect validation of #[Attribute]
flags type for non-compile-time expressions).
     DOM:
         Fix crashes when entity declaration is removed while still
having entity references.
         Fix references not handled correctly in C14N.
         Fix crash when calling childNodes next() when iterator is
exhausted.
         Fix crash in ParentNode::append() when dealing with a
fragment containing text nodes.
     Filter:
         Fixed bug GHSA-w8qr-v226-r27w (Filter bypass in
filter_var FILTER_VALIDATE_URL). (CVE-2024-5458)
     FPM:
         Fix bug GH-14175 (Show decimal number instead of scientific
notation in systemd status).
     Hash:
         ext/hash: Swap the checking order of `__has_builtin`
and `__GNUC__` (Saki Takamachi)
     Intl:
         Fixed build regression on systems without C++17 compilers.
     MySQLnd:
         Fix bug GH-14255 (mysqli_fetch_assoc reports error from
nested query).
     Opcache:
         Fixed bug GH-14109 (Fix accidental persisting of internal
class constant in shm).
     OpenSSL:
         The openssl_private_decrypt function in PHP, when using
PKCS1 padding (OPENSSL_PKCS1_PADDING, which is the default), is
vulnerable to the Marvin Attack unless it is used with an OpenSSL
version that includes the changes from this pull request:
https://github.com/openssl/openssl/pull/13817
(rsa_pkcs1_implicit_rejection). These changes are part of OpenSSL
3.2 and have also been backported to stable versions of various
Linux distributions, as well as to the PHP builds provided for
Windows since the previous release. All distributors and builders
should ensure that this version is used to prevent PHP from being
vulnerable.


     Standard:
         Fixed bug GHSA-9fcc-425m-g385 (Bypass of CVE-2024-1874).
(CVE-2024-5585)
     XML:
         Fixed bug GH-14124 (Segmentation fault with XML extension
under certain memory limit).
     XMLReader:
         Fixed bug GH-14183 (XMLReader::open() can't be overridden).

_____________________________________________________________________

Version 8.2.20
06 Jun 2024

     CGI:
         Fixed buffer limit on Windows, replacing read call usage by
_read.
         Fixed bug GHSA-3qgc-jrrr-25jv (Bypass of CVE-2012-1823,
Argument Injection in PHP-CGI). (CVE-2024-4577)
     CLI:
         Fixed bug GH-14189 (PHP Interactive shell input state
incorrectly handles quoted heredoc literals.).
     Core:
         Fixed bug GH-13970 (Incorrect validation of #[Attribute] flags
type for non-compile-time expressions).
         Fixed bug GH-14140 (Floating point bug in range operation on
Apple Silicon hardware).
     DOM:
         Fix crashes when entity declaration is removed while still
having entity references.
         Fix references not handled correctly in C14N.
         Fix crash when calling childNodes next() when iterator is
exhausted.
         Fix crash in ParentNode::append() when dealing with a
fragment containing text nodes.
     FFI:
         Fixed bug GH-14215 (Cannot use FFI::load on CRLF header file
with apache2handler).
     Filter:
         Fixed bug GHSA-w8qr-v226-r27w (Filter bypass in filter_var
FILTER_VALIDATE_URL). (CVE-2024-5458)
     FPM:
         Fix bug GH-14175 (Show decimal number instead of scientific
notation in systemd status).
     Hash:
         ext/hash: Swap the checking order of `__has_builtin` and
`__GNUC__` (Saki Takamachi)
     Intl:
         Fixed build regression on systems without C++17 compilers.
     Ini:
         Fixed bug GH-14100 (Corrected spelling mistake in php.ini
files).
     MySQLnd:
         Fix bug GH-14255 (mysqli_fetch_assoc reports error from
nested query).
     Opcache:
         Fixed bug GH-14109 (Fix accidental persisting of internal
class constant in shm).
     OpenSSL:
         The openssl_private_decrypt function in PHP, when using
PKCS1 padding (OPENSSL_PKCS1_PADDING, which is the default), is
vulnerable to the Marvin Attack unless it is used with an OpenSSL
version that includes the changes from this pull request:
https://github.com/openssl/openssl/pull/13817 
(rsa_pkcs1_implicit_rejection). These changes are part of OpenSSL
3.2 and have also been backported to stable versions of various
Linux distributions, as well as to the PHP builds provided for
Windows since the previous release. All distributors and builders
should ensure that this version is used to prevent PHP from being
vulnerable.
     Standard:
         Fixed bug GHSA-9fcc-425m-g385 (Bypass of CVE-2024-1874).
(CVE-2024-5585)
     XML:
         Fixed bug GH-14124 (Segmentation fault with XML extension
under certain memory limit).
     XMLReader:
         Fixed bug GH-14183 (XMLReader::open() can't be overridden).

_____________________________________________________________________

Version 8.1.29
06 Jun 2024

     CGI:
         Fixed bug GHSA-3qgc-jrrr-25jv (Bypass of CVE-2012-1823,
Argument Injection in PHP-CGI). (CVE-2024-4577)
     Filter:
         Fixed bug GHSA-w8qr-v226-r27w (Filter bypass in filter_var
FILTER_VALIDATE_URL). (CVE-2024-5458)
     OpenSSL:
         The openssl_private_decrypt function in PHP, when using PKCS1
padding (OPENSSL_PKCS1_PADDING, which is the default), is vulnerable
to the Marvin Attack unless it is used with an OpenSSL version that
includes the changes from this pull request:
https://github.com/openssl/openssl/pull/13817
(rsa_pkcs1_implicit_rejection). These changes are part of OpenSSL
3.2 and have also been backported to stable versions of various Linux
distributions, as well as to the PHP builds provided for Windows since
the previous release. All distributors and builders should ensure that
this version is used to prevent PHP from being vulnerable.
     Standard:
         Fixed bug GHSA-9fcc-425m-g385 (Bypass of CVE-2024-1874).
(CVE-2024-5585)


=========================================================
+ CERT-RENATER        |    tel : 01-53-94-20-44         +
+ 23/25 Rue Daviel    |    fax : 01-53-94-20-41         +
+ 75013 Paris         |   email:cert@support.renater.fr +
=========================================================
