CVE-2019-11035

9.1 CRITICAL

📋 TL;DR

This vulnerability in PHP's EXIF extension allows attackers to cause buffer over-reads when processing certain image files. This can lead to information disclosure or application crashes. Affects PHP versions 7.1.x below 7.1.28, 7.2.x below 7.2.17, and 7.3.x below 7.3.4.

💻 Affected Systems

Products:
  • PHP
Versions: 7.1.x < 7.1.28, 7.2.x < 7.2.17, 7.3.x < 7.3.4
Operating Systems: All operating systems running affected PHP versions
Default Config Vulnerable: ⚠️ Yes
Notes: Requires EXIF extension enabled (commonly enabled by default).

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote code execution leading to complete system compromise, though this is unlikely given the CWE-125 classification.

🟠

Likely Case

Information disclosure (memory contents) or denial of service through application crashes.

🟢

If Mitigated

Limited impact if proper input validation and memory protections are in place.

🌐 Internet-Facing: HIGH - PHP applications processing user-uploaded images are directly exposed.
🏢 Internal Only: MEDIUM - Internal applications processing images could still be vulnerable.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires uploading or processing malicious image files.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: PHP 7.1.28, 7.2.17, 7.3.4

Vendor Advisory: https://access.redhat.com/errata/RHSA-2019:2519

Restart Required: Yes

Instructions:

1. Update PHP to patched version using package manager. 2. Restart web server (Apache/Nginx). 3. Restart PHP-FPM if applicable.

🔧 Temporary Workarounds

Disable EXIF extension

all

Disable the vulnerable EXIF extension if not required.

php -i | grep exif
Edit php.ini: extension=exif.so to ;extension=exif.so

Restrict image uploads

all

Implement strict file type validation and size limits for image uploads.

🧯 If You Can't Patch

  • Implement WAF rules to block malicious image upload patterns.
  • Isolate PHP applications in containers with limited privileges.

🔍 How to Verify

Check if Vulnerable:

Check PHP version and EXIF extension status: php -v && php -m | grep exif

Check Version:

php -v

Verify Fix Applied:

Confirm PHP version is at or above patched versions and EXIF extension is either disabled or updated.

📡 Detection & Monitoring

Log Indicators:

  • PHP segmentation fault logs
  • Web server error logs showing EXIF processing failures

Network Indicators:

  • Unusual image upload patterns to PHP endpoints

SIEM Query:

source="php_error.log" AND ("segmentation fault" OR "exif")

🔗 References

📤 Share & Export