Deserialization of Untrusted Data in magento-lts - CVE-2026-25524
Published: April 20, 2026
magento-lts
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to deserialization of untrusted data in image validation and media handling functions when processing phar:// stream wrapper paths. A remote attacker can upload a malicious phar file disguised as an image and trigger phar:// access to execute arbitrary code.
A crafted polyglot file can be both a valid image and a valid phar archive, causing PHP functions such as getimagesize(), file_exists(), or is_readable() to deserialize phar metadata automatically.