Researcher Finds a Third Critical PHP Vulnerability, With a Three-Line Proof of Concept
Potential third critical PHP CVE
Security researcher Elise discovered a double-free bug in PHP that triggers under AddressSanitizer with ZendMM disabled, and it still reproduces on versions 8.4.25, 8.5.10, and 8.5.12. She believes it is a separate flaw from the other PHP issues reported the same day, and has reported it to security@php.net with a three-line proof of concept and a brief explanation. The backtrace is AES-encrypted, with keys to be published once a patch lands.
I keep getting asked about mitigations, here's the mitigation: don't worry about it kitten
- hannob
From the little info one can see here, it looks like this is a PHP script causing a memory corruption. So you probably need to be able to run PHP code to exploit it.
That's... not a particularly unusual issue. PHP has a large codebase, releases with plenty of fixed crashes come out regularly. It becomes critical if there's a remote path to exploitation.
I see no indication that this is a "critical" PHP flaw. And the Reply from the person who found it seems to confirm that. ("I keep getting asked about mitigations, here's the mitigation: don't worry about it kitten")
- selckin
- nr378
That post appears to show the same stack trace as this reported issue https://github.com/php/php-src/issues/24488, which is a confirmed GC regression in 8.5.12 but it is not exploitable (the allocator's shadow protection kills it), and it does not result in RCE and is not a critical CVE.
It's a very different shape to the other two CVEs, and a use-after-free doesn't necessarily immediately imply a critical CVE.