All reports
Low

php: Out-of-bounds read in ext/exif/exif.c:exif_read_data() when reading crafted JPEG data

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2018-10549

Probability of exploitation in the next 30 days: 6.89%

FIRST EPSS · 2026-11-22

Description

An issue was discovered in PHP before 5.6.36, 7.0.x before 7.0.30, 7.1.x before 7.1.17, and 7.2.x before 7.2.5. exif_read_data in ext/exif/exif.c has an out-of-bounds read for crafted JPEG data because exif_iif_add_value mishandles the case of a MakerNote that lacks a final '\0' character.

An out-of-bounds read has been found in PHP when function exif_iif_add_value handles the case of a MakerNote that lacks a final terminator character. A remote attacker could use this vulnerability to cause a crash.