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

Uninitialized read in exif_process_IFD_in_TIFF

An uninitialized read exists in the exif_process_IFD_in_TIFF function in PHP's EXIF extension, reproducible only on 32-bit builds. Uninitialized variables may leak data from memory.

chamal Follow

Originally disclosed on HackerOne

Critical 9.8 View original
  • Triaged in 2 months
  • Fixed in 19 months
  • Paid in 19 months
  • Disclosed after 19 months

This bug can be reproduced only in 32 bit PHP builds. This bug is present in exif_process_IFD_in_TIFF method of ext/exif/exif.c file.

Detailed description and steps to reproduce for this bug is present in bug report submitted to php.net. Bug Report : https://bugs.php.net/bug.php?id=77509 PHP version : 7.1.26 CVE-ID : 2019-9641

Impact

Uninitialized variables may leak data from memory.

The original report as published on HackerOne, by chamal. 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 a variable in the TIFF IFD parsing routine is used without being initialised on 32-bit builds.

Impact

Uninitialized variables may leak data from memory, though the text notes the bug can only be reproduced on 32-bit PHP builds.

What the attacker needed

32-bit PHP build

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.

A variable was used before being set, so it could contain leftover memory data, which may leak.

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 chamal

View all

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