PHP JPEG Processing Flaws Expose Heap Memory Corruption Risks
Vulnerability Disclosure · 6 sources · Updated 2mo ago · First seen May 15, 2026

Positive Technologies researcher Nikita Sveshnikov disclosed JPEG-related memory-safety flaws in PHP image-processing code, including a heap buffer overflow in the iptcembed() path in ext/standard/iptc.c. Crafted JPEG input can drive an out-of-bounds heap write in php_iptc_get1 while PHP parses IPTC markers, causing an AddressSanitizer-enabled PHP 8.6.0-dev build to abort.
The issue was reproduced on Ubuntu 24.04.2 LTS by supplying malformed JPEG data through a named pipe, with the affected call chain including php_iptc_next_marker and zif_iptcembed. Organizations that process attacker-supplied images through PHP functions such as iptcembed() or getimagesize() should track PHP fixes, update affected runtimes promptly, and isolate image-processing workloads until remediation is available.


