CVE-2016-4543

The exif_process_IFD_in_JPEG function in ext/exif/exif.c in PHP before 5.5.35, 5.6.x before 5.6.21, and 7.x before 7.0.6 does not validate IFD sizes, which…

published May 22, 2016

CVSS
—
EPSS
12%
Percentile
96.1
In the wild
Unconfirmed
What it is

⚠️ PHP's IFD size validation is like letting guests decide how much cake they want at a party—too much can cause chaos! 🍰 In this case, the exif_process_IFD_in_JPEG function fails to keep track of the sizes of IFDs, similar to a waiter who brings out too many servings without checking how many guests are actually at the table. It opens the door for remote attackers to create crafted headers that could lead to a denial of service, throwing your server into disarray. An attacker could exploit this flaw to trigger an out-of-bounds read, potentially causing a denial of service. While it may not have specified catastrophic effects, the disruption could lead to service outages, leaving users frustrated and vulnerable.

Put simply

In this case, the exif_process_IFD_in_JPEG function fails to keep track of the sizes of IFDs, similar to a waiter who brings out too many servings without checking how many guests are actually at the table. It opens the door for remote attackers to create crafted headers that could lead to a denial of service, throwing your server into disarray. This vulnerability in PHP affects versions before 5.5.35, 5.6.x before 5.6.21, and 7.x before 7.0.6. It stems from the exif_process_IFD_in_JPEG function not validating the sizes of Image File Directory (IFD) entries, paving the way for attackers to manipulate the input.

What to do

An attacker could exploit this flaw to trigger an out-of-bounds read, potentially causing a denial of service. While it may not have specified catastrophic effects, the disruption could lead to service outages, leaving users frustrated and vulnerable. To protect against this, upgrade to PHP version 5.5.35, 5.6.21, or 7.0.6 or later immediately. Regularly review and patch your PHP installations to ensure they're up to date, and consider implementing input validation strategies to further secure your applications. You've got this! Keep your PHP secure, and you'll turn potential chaos into a well-organized party. 🎉

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.11860 · 96.1th percentile
Published
2016-05-22T01:00Z
EPSS history
Timeline
  • 22 MAY 01:00Z
    The exif_process_IFD_in_JPEG function in ext/exif/exif.c in PHP before 5.5.35, 5.6.x before 5.6.21, and 7.x before 7.0.6 does not validate IFD sizes, which…
    cvelistv5