Skip to content
Memory corruption Disclosed report Advanced CVE-2016-10161

Out of bounds memory read in unserialize()

An out-of-bounds memory read was found in PHP's unserialize() function, affecting all supported versions. An attacker could potentially trigger this flaw by supplying crafted serialised data, though the text does not detail the exact impact.

hanno Follow

Originally disclosed on HackerOne

Bounty$500 Medium View original
  • Fixed in 4 months
  • Paid in 4 months
  • Disclosed after 4 months

I have found and reported an out of bounds memory read in PHP: https://bugs.php.net/bug.php?id=73825

It affected all three supported versions and has been fixed with the latest updates: https://secure.php.net/ChangeLog-5.php#5.6.30 https://secure.php.net/ChangeLog-7.php#7.0.15 https://secure.php.net/ChangeLog-7.php#7.1.1

The original report as published on HackerOne, by hanno. 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

Impact

The text only states it is an out-of-bounds memory read and does not specify the impact.

What the attacker needed

Ability to pass serialised data to unserialize()

The fix

It was fixed in PHP 5.6.30, 7.0.15 and 7.1.1.

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.

PHP's unserialize() turns text back into data structures. A memory read bug means the program can look at memory it should not, which might crash it or leak information. The report is very short and does not explain how to trigger it.

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 hanno

View all

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