Skip to content
Memory corruption Disclosed report Advanced CVE-2019-11041

Out of Bounds Memory Read in exif_scan_thumbnail

The PHP EXIF extension could read past the end of an allocated buffer while parsing EXIF data from an image through functions such as exif_read_data(). An attacker supplying crafted image data could trigger an out-of-bounds read, potentially disclosing information or crashing the process.

sediruoksitsero Follow

Originally disclosed on HackerOne

Bounty$1,500 High 8.8 View original
  • Triaged in 2 days
  • Fixed in 14 months
  • Paid in 14 months
  • Disclosed after 15 months

I have found and reported an out of bounds memory read in PHP [exif_scan_thumbnail] When PHP EXIF extension is parsing EXIF information from an image, e.g. via exif_read_data() function, in PHP versions 7.1.x below 7.1.31, 7.2.x below 7.2.21 and 7.3.x below 7.3.8 it is possible to supply it with data what will cause it to read past the allocated buffer. This has been fixed and assigned CVE-2019-11041 The bug report is here: https://bugs.php.net/bug.php?id=78222 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-11041 https://nvd.nist.gov/vuln/detail/CVE-2019-11041

Impact

This may lead to information disclosure or crash.

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

This may lead to information disclosure or crash.

What the attacker needed

Crafted image with EXIF data; PHP EXIF extension in use

The fix

It was fixed in PHP 7.1.31, 7.2.21 and 7.3.8.

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.

When a program reads a file, it sets aside a fixed area of memory for the data. This bug made the image-parsing code read slightly beyond that area, picking up whatever happened to be next in memory. That can leak unintended data or make the program crash.

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 sediruoksitsero

View all

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