CVE-2016-4543
Description
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 allows remote attackers to cause a denial of service (out-of-bounds read) or possibly have unspecified other impact via crafted header data.
In plain language
AI Worth attentionIf you run PHP and your website/server handles uploaded or processed JPEG images (with EXIF/metadata), an attacker may be able to crash PHP using a specially crafted photo; a typical small business should update PHP to the fixed versions.
In PHP (CVE-2016-4543), the exif_process_IFD_in_JPEG code path does not properly validate EXIF Image File Directory (IFD) sizes, so a remote attacker sending crafted JPEG metadata can trigger a denial of service (out-of-bounds read) when PHP processes EXIF data.
What to do now
- Check your PHP version (from your server’s “phpinfo” page, command line output, or your hosting control panel) and confirm whether you use PHP’s EXIF/JPEG handling features.
- Identify whether your business accepts or processes JPEG uploads or remote images (for example, profile photos, document scans, or image previews that extract EXIF metadata).
- Plan an upgrade of PHP to one of the fixed versions: 5.5.35 or newer, 5.6.21 or newer, or 7.0.6 or newer.
- Deploy the PHP upgrade to production and verify normal image upload/processing behavior.
- If you cannot upgrade right away, restrict who can upload/trigger image processing and add upload size/type limits to reduce the chance of crafted JPEGs being processed.
CVSS Vector Breakdown
AV:NAttack VectorAC:LAttack ComplexityPR:NPrivileges RequiredUI:NUser InteractionS:UScopeC:HConfidentialityI:HIntegrityA:HAvailabilityWeaknesses
Affected Products
Exploitability
Attack Graph
Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/⌘ + scroll to zoom, or go fullscreen.
MITRE ATT&CK
2 techniquesReferences
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2016-4543 and every CVE in our database. Create a free account — no credit card required.
Create Free Account