3 heap corruptions in PHP
Three separate memory-safety bugs in PHP's IMAP, multibyte-string and PCRE code could corrupt the heap. An attacker able to supply crafted input to these functions could crash the process or potentially execute code.
- Fixed in 6 months
- Paid in 6 months
- Disclosed after 2.9 years
#73208 integer overflow in imap_8bit caused heap corruption https://bugs.php.net/bug.php?id=73208
#73082 string length overflow in mb_encode_* function https://bugs.php.net/bug.php?id=73082
#73174 heap overflow in php_pcre_replace_impl https://bugs.php.net/bug.php?id=73174
If you want to verify email secresearch@*, please email to that email a secret number, I can ping back.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely integer or length overflows in three PHP C functions led to undersized buffers and out-of-bounds writes.
Impact
Heap corruption could crash PHP or potentially allow code execution, though the text gives no exploit details.
What the attacker needed
Crafted input to affected PHP functions
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
These are memory-safety bugs in the C code behind PHP, a popular language used by websites. They involve integer or length overflows that corrupt the heap, which can crash the server.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.