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

> Hacker News story 50560334 · language: en · submitted 2026-11-19
> Web version: https://zeli.app/story/50560334
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 63 · by [petecooper](<https://news.ycombinator.com/user?id=petecooper>) · 💬 28
[original](<https://www.php.net/ChangeLog-8.php>) · [HN discussion](<https://news.ycombinator.com/item?id=50560334>)

## Summary

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.

## Key quote

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

## HN discussion (28 comments)

### [showerst](<https://news.ycombinator.com/item?id=50560574>)

> 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.

### [tyilo](<https://news.ycombinator.com/item?id=50560731>)

> 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.

### [petecooper](<https://news.ycombinator.com/item?id=50560472>)

> 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…)

---

## Cite

- Page: https://zeli.app/story/50560334
- Date: 2026-11-19
- Source: php.net (https://www.php.net/ChangeLog-8.php)
- Hacker News: https://news.ycombinator.com/item?id=50560334

## Other languages

- zh: https://zeli.app/zh/story/50560334 · markdown: https://zeli.app/zh/story/50560334.md
- ja: https://zeli.app/ja/story/50560334 · markdown: https://zeli.app/ja/story/50560334.md
- ko: https://zeli.app/ko/story/50560334 · markdown: https://zeli.app/ko/story/50560334.md
- de: https://zeli.app/de/story/50560334 · markdown: https://zeli.app/de/story/50560334.md
- es: https://zeli.app/es/story/50560334 · markdown: https://zeli.app/es/story/50560334.md
- ru: https://zeli.app/ru/story/50560334 · markdown: https://zeli.app/ru/story/50560334.md
