Skip to content
Memory corruption Disclosed report Advanced

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.

minhrau Follow

Originally disclosed on HackerOne

Bounty$1,500 View original
  • 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.

The original report as published on HackerOne, by minhrau. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More by minhrau

View all

23 more disclosed reports, best first.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.