Deserialization of Untrusted Data in magento-lts - CVE-2026-25524

 

Deserialization of Untrusted Data in magento-lts - CVE-2026-25524

Published: April 20, 2026


Vulnerability identifier: #VU126486
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2026-25524
CWE-ID: CWE-502
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: OPENMAGE
Affected software:
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.


How to mitigate CVE-2026-25524

Install security update from vendor's website.

Sources