Path traversal in magento-lts - #VU158638
Published: November 2, 2026
Vulnerability details
The vulnerability allows a remote privileged user to read image files outside the media directory.
The vulnerability exists due to path traversal in mediaDirective() when joining the supplied url parameter to the media directory without a containment check. A remote privileged user can submit a directive such as {{media url="../…"}} to the cms_wysiwyg/directive endpoint with CMS access to read image files outside media/ that the web server user can open.
Text resources such as configuration files and metadata JSON cannot be read back because GD rejects them.