Path traversal in magento-lts - #VU173492
Published: December 4, 2026
Vulnerability details
The vulnerability allows a remote privileged user to overwrite product images with arbitrary content and, if a stored gallery path escapes the media directory and points to a writable location that executes PHP, execute arbitrary code.
The vulnerability exists due to path traversal and missing image content validation in the legacy product media API when updating an existing gallery file. A remote privileged user can submit non-image content through the media update API to write arbitrary bytes to the stored gallery destination.