Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilityinternet-facing-service-vulnerability

PHP JPEG Processing Flaws Expose Heap Memory Corruption Risks

Vulnerability Disclosure · 6 sources · Updated 2mo ago · First seen May 15, 2026

PHP JPEG Processing Flaws Expose Heap Memory Corruption Risks

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.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events
  1. Reported Nov 25, 20251y ago

    PHP source fix submitted for GH-20584 memory information leak

    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.

    Fix GH-20584: Information Leak of Memory by ndossche · Pull Request #20592 · php/php-src · GitHub
  2. Reported Nov 25, 20251y ago

    Heap buffer overflow found in PHP iptcembed() JPEG processing

    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.

    Heap Buffer Overflow in iptcembed · Issue #20582 · php/php-src
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Php
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.