{"id":"CVE-2026-40488","published":"2026-04-20T16:23:07Z","modified":"2026-04-20T16:55:05Z","title":"OpenMage LTS has Customer File Upload Extension Blocklist Bypass that Leads to Remote Code Execution","vendor":"OpenMage","product":"magento-lts","tier":"tail","description":{"text":"Magento Long Term Support (LTS) is an unofficial, community-driven project provides an alternative to the Magento Community Edition e-commerce platform with a high level of backward compatibility. Prior to version 20.17.0, the product custom option file upload in OpenMage LTS uses an incomplete blocklist (`forbidden_extensions = php,exe`) to prevent dangerous file uploads. This blocklist can be trivially bypassed by using alternative PHP-executable extensions such as `.phtml`, `.phar`, `.php3`, `.php4`, `.php5`, `.php7`, and `.pht`. Files are stored in the publicly accessible `media/custom_options/quote/` directory, which lacks server-side execution restrictions for some configurations, enabling Remote Code Execution if this directory is not explicitly denied script execution. Version 20.17.0 patches the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00703,"percentile":0.54182,"provenance":"source"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"references":[{"url":"https://github.com/OpenMage/magento-lts/security/advisories/GHSA-3j5q-7q7h-2hhv","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":10.84},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"openmage","affectedVersions":[{"vendor":"OpenMage","product":"magento-lts","versions":["< 20.17.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-04-20T16:44:14.338321Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"openmage/magento-lts","vulnerableRanges":["<20.17.0"],"patched":["20.17.0"],"from":["GHSA-3j5q-7q7h-2hhv"],"provenance":"source"}],"summary":{"text":"A flaw in OpenMage LTS's (magento-lts) custom option file upload feature relies on an incomplete extension blocklist (php and exe only), so files with alternative PHP-executable extensions such as .phtml, .phar, or .pht are accepted and stored in the publicly accessible media/custom_options/quote/ directory. An attacker with network access and low privileges, without any user interaction, can upload such a file and achieve remote code execution where that directory lacks script execution restrictions, which is possible in some configurations.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:50:13Z"},"euvd":{"id":"EUVD-2026-23904","exploited":false,"provenance":"source"}}