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.

See affected versions and whether adversaries are exploiting it.
2 events from the most recent confirmed update back to the earliest known activity.
A php-src pull request/commit titled “Fix GH-20584: Information Leak of Memory” was published, indicating that a source-level fix was submitted for the reported memory disclosure issue.
Researcher Nikita Sveshnikov of Positive Technologies reported a heap buffer overflow in PHP's IPTC handling path, where crafted JPEG input processed by iptcembed() caused an out-of-bounds write in php_iptc_get1. The issue was reproduced on an AddressSanitizer-enabled PHP 8.6.0-dev build and caused the PHP process to abort.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
6 references tracked. Mallory keeps watching after this page renders.
ptswarm.com
Open sourceptswarm.com
Open sourcegithub.com
Open sourcegithub.com
Open sourcephp.net
Open sourcephp.net
Open sourceMap indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.