[SECURITY RELEASE] PHP 8.4.27
- Published:
- Fetched:
- Affects:
- php php
https://php.net/releases/8_4_27.php ↗
Fixes: GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp > Version 8.4.27 22 Oct 2026 Core: Fixed GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp (Avoid state corruption via bailout). Fix GH-21999: GC inconsistency with lazy object, var_dump(), and object comparison. Fixed OSS-Fuzz #536440507 (Immutable class incorrect assertion). Fixed AVX being reported as supported when the OS has not enabled AVX state. Fixed GH-23980 (ZEND_ASSERT violation @ ZEND_INCLUDE_OR_EVAL). Fixed bug GH-23896 (Assertion failure in zend_call_function() after a throwing deprecation). Fixed use-after-free when a dl()-loaded extension declares a frameless function and a later request calls it. Fixed System V shared memory emulation for Windows attaching segments past the end of their mapping. Fixed bug GH-24050 (GC frees an object still held by a resurrected closure when (object) and use share an array). Fixed exception thrown by destructor during GC in a Fiber not being rethrown into the frame that triggered the GC. BCMath: Fixed BcMath\Number results that truncate to zero keeping a negative sign and comparing less than zero. BZ2: Fixed double close of the descriptor and use-after-free of the inner stream when bzopen() is given a stream resource. CLI: Fix GH-22567 (Windows ZTS CLI SAPI should refresh its TSRMLS cache during request activation). Fixed bug GH-23764 (Built-in server leaks a file descriptor on every HEAD request for a static file). Fixed crash in the built-in server when a client is reset before being accepted. Fixed the built-in server truncating an error page and leaking its unsent part after a partial socket write. DOM: Fixed use-after-free when re-constructing a DOMXPath whose php:function registrations are freed while still reachable from the cycle collector. Fixed bug GH-23365 (DOMNode::insertBefore($n, $n) drops the node and leaves a self-referencing sibling list). Fixed Dom\HTMLDocument::getElementById() not finding ids of SVG and MathML elements. Fixed Dom\HTMLDocument giving attributes the namespace of their element when a fragment is parsed with an xlink, xml or xmlns context element. Fixed bug GH-23729 (DOMXPath::__construct() use-after-free during an evaluation). Fixed bug GH-23897 (php:function() assertion failure after a failed registerPHPFunctions()). Fixed DOMXPath and Dom\XPath losing the context node and in-scope namespaces of an evaluation after a php:function() callback evaluated another expression on the same object. FFI: Fixed crashes with FFI callbacks created from __call() trampolines and array callables whose object is released. FTP: Fixed bug GH-23619 (cryptic error on servers that don't support TLS session resumption on data connection). GD: Fixed undefined behavior with GD2 images with `INT_MAX`-sized chunks. Fixed undefined behavior with GIFs with problematic LZW compression data. Intl: Fixed IntlDateFormatter::parse(), localtime() and parseToCalendar() treating the offset as UTF-16 code units instead of bytes. Fixed cloning IntlDateFormatter and MessageFormatter losing PHP-side state such as dateType, timeType, calendar and the message pattern. Fixed Collator attribute and strength methods not rejecting an unconstructed Collator. Fixed grapheme_strstr() and grapheme_stristr() returning incorrect substrings when supplementary characters precede the match. Fixed grapheme_strstr() and grapheme_strpos() missing canonically equivalent matches, and grapheme searches reporting ICU errors for empty haystacks. Fixed grapheme_strrpos() and grapheme_strripos() skipping overlapping matches when using a negative offset. Lexbor: Merge patches lexbor/lexbor@8a14bc0 and lexbor/lexbor@f67ce4b, fixing a heap buffer overflow in :lexbor-contains() parsing and buffer overflows in malformed decode replay. MBString: Fixed bug GH-23106 (mb_strpos() reads past the end of a haystack ending in a truncated UTF-8 sequence). Fixed mbstring functions emitting surrogates in UTF-8 output and flagging it as valid UTF-8. MySQLi: Fix GH-22854: Fixed failed