Path traversal in magento-lts - #VU158660
Published: November 2, 2026
Vulnerability details
The vulnerability allows a remote user to read arbitrary files accessible to the web server user, potentially disclosing database credentials and the encryption key.
The vulnerability exists due to path traversal in the custom-option file download functionality when resolving stored quote_path and order_path values without confining them to media/custom_options/. A remote user can submit crafted option paths in a recurring product's stored buy request and invoke the recurring-profile download action to read files outside the intended directory, including app/etc/local.xml.
Exploitation requires a payment method that supports recurring profiles.