Technology1 min read

PHP 8.5.13

By · Published by Everything Blog

In short

The update addresses multiple severe remote code execution vulnerabilities, including use-after-free bugs in the timezone cache and magic method backtraces. Production environments running PHP-FPM gain crucial protections against epoll privilege escalation, request smuggling, and worker crashes. Engineers also corrected core runtime flaws, such as a skipped catch block during fiber switching and OPcache file cache issues after Apache restarts.

Key points

  • System administrators should deploy this release to neutralize high-severity remote code…: System administrators should deploy this release to neutralize high-severity remote code execution and privilege escalation vectors.
  • PHP-FPM deployments receive vital defenses against HTTP request smuggling and status endp…: PHP-FPM deployments receive vital defenses against HTTP request smuggling and status endpoint cross-site scripting flaws.
  • The update restores critical engine reliability by fixing OPcache restarts, memory leaks,…: The update restores critical engine reliability by fixing OPcache restarts, memory leaks, and multiple bundled extension crashes.

Sources checked by our analysis pipeline: 1

Fixed bug GH-24184 (System ID not being reinitialized after an Apache graceful restart, potentially causing incompatible OPcache file cache entries to be reused).

Fixed memory leak when an exception already contains the pending exception in its previous chain.

Fixed bug GH-23979 (Nullsafe operator must not flush delayed oplines of an enclosing function).

Fixed memory manager keeping a block reallocated to exactly the size of the next smaller bin in its larger bin, which efree_size() then freed into the wrong one.

Fixed bug GH-24081 (User opcode handlers resume execution against a stale frame under ZEND_VM_KIND_TAILCALL).

Fixed bug GH-24218 (Invalid opcode for count() of a literal array without SCCP).

Fix throwing behaviour with recursive arrays in VM.

Fixed skipped catch block when switching fibers during exception unwinding (Nicolas Grekas)

Fix escape analysis for objects implementing ArrayAccess.

Fix UAF for resolved callable zval.

Fix memory leak for nested HTTP calls.

Fix function and constant imports in compile_to_ast and add support for grouping.

Fixed bug GH-24668 (zend_set_local_var() leaks the previous value of an existing CV).

Fixed unmapping of an unrelated range when the aligned…

Technology