PHP 8.5.13 Patches a Remote Code Execution Flaw and a Wave of JIT Crashes

PHP 8.5.13 is a security-heavy release that closes multiple use-after-free vulnerabilities rated for remote code execution, including flaws in magic method backtraces, the timezone cache, and session handling, plus a PHAR OpenSSL signature bypass and PHP-FPM request smuggling. It also lands dozens of OPcache JIT fixes, from segfaults in tracing traces to wrong self:: and parent:: method resolution, alongside a long list of memory leaks and crashes across extensions.

Fixed GHSA-8mjj-2r7p-4hg2 (Use-after-free in magic method backtraces can lead to remote code execution).
  1. showerst

    For the criticals:

    https://github.com/php/php-src/security/advisories/GHSA-8mjj...

    Requires the following php.ini settings -- fatal_error_backtraces=1 and zend.exception_ignore_args=0

    zend.exception_ignore_args is 1 by default.

    https://github.com/php/php-src/security/advisories/GHSA-gr4f...

    Doesn't have a setting mitigation but doesn't seem trivial to set up.

    https://github.com/php/php-src/security/advisories/GHSA-gr4f...

    Doesn't have a setting mitigation but doesn't seem trivial to set up.

    https://github.com/php/php-src/security/advisories/GHSA-658j...

    Requires session.upload_progress.enabled=1 which many people disabled as a mitigation to the earlier CVEs. If you haven't, you should disable it if possible.

    https://github.com/php/php-src/security/advisories/GHSA-qc49...

    "Relevant configurations include nginx with fastcgi_keep_conn on, Apache mod_proxy_fcgi with enablereuse=on, HAProxy FastCGI applications that retain backend connections, and LSAPI. Standard nginx and Apache configurations that close the FastCGI connection after each request are not affected by the demonstrated PHP-FPM attack."

    https://github.com/php/php-src/security/advisories/GHSA-w8hw...

    This one _seems_ to only affect FrankenPHP so far, but could maybe be extended.

    This batch requires an immediate patch in case someone gets reliable exploit for those RCEs, but it doesn't appear to be 'take down the websites' level of bad.

  2. tyilo

    Seems like simply.com accidentally broke the embargo yesterday: https://i.postimg.cc/906qZgNM/image-(9).png

    Screenshot taken at around 2026-11-18 14:00 UTC.

    They seem to have accidentally posted that instead of the fix to nginx.

  3. petecooper

    Source code links (tagged but not currently released):

    https://github.com/php/php-src/releases/tag/php-8.2.36

    https://github.com/php/php-src/releases/tag/php-8.3.37

    https://github.com/php/php-src/releases/tag/php-8.4.28

    https://github.com/php/php-src/releases/tag/php-8.5.13

    https://github.com/php/php-src/releases/tag/php-8.6.0

    (I'm using the GitHub releases Atom feed, I'm not breaking any embargoes this time…)

More from this day

2026-11-19