CVE-2026-40488: CWE-434: Unrestricted Upload of File with Dangerous Type in OpenMage magento-lts
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.
AI Analysis
Technical Summary
The vulnerability in OpenMage magento-lts (CVE-2026-40488) arises from an insufficient blocklist for file uploads in the custom option feature. The blocklist only forbids .php and .exe extensions but does not cover alternative PHP-executable extensions such as .phtml, .phar, .php3, .php4, .php5, .php7, and .pht. Uploaded files are stored in the media/custom_options/quote/ directory, which may be publicly accessible and lack execution restrictions, enabling attackers to upload and execute malicious code remotely. The issue is fixed in version 20.17.0.
Potential Impact
Successful exploitation allows an attacker with low privileges to upload malicious files with executable extensions to a publicly accessible directory, potentially resulting in remote code execution. This can lead to full compromise of the affected system. The CVSS 4.0 score is 8.7 (high severity), reflecting network attack vector, low attack complexity, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade to OpenMage magento-lts version 20.17.0 or later, which patches this vulnerability by improving the file upload filtering. Until upgrading, ensure that the media/custom_options/quote/ directory is configured on the server to explicitly deny script execution to prevent remote code execution. Patch status is not explicitly confirmed in the vendor advisory, so verify with official OpenMage sources for the latest remediation guidance.
CVE-2026-40488: CWE-434: Unrestricted Upload of File with Dangerous Type in OpenMage magento-lts
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in OpenMage magento-lts (CVE-2026-40488) arises from an insufficient blocklist for file uploads in the custom option feature. The blocklist only forbids .php and .exe extensions but does not cover alternative PHP-executable extensions such as .phtml, .phar, .php3, .php4, .php5, .php7, and .pht. Uploaded files are stored in the media/custom_options/quote/ directory, which may be publicly accessible and lack execution restrictions, enabling attackers to upload and execute malicious code remotely. The issue is fixed in version 20.17.0.
Potential Impact
Successful exploitation allows an attacker with low privileges to upload malicious files with executable extensions to a publicly accessible directory, potentially resulting in remote code execution. This can lead to full compromise of the affected system. The CVSS 4.0 score is 8.7 (high severity), reflecting network attack vector, low attack complexity, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade to OpenMage magento-lts version 20.17.0 or later, which patches this vulnerability by improving the file upload filtering. Until upgrading, ensure that the media/custom_options/quote/ directory is configured on the server to explicitly deny script execution to prevent remote code execution. Patch status is not explicitly confirmed in the vendor advisory, so verify with official OpenMage sources for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-13T19:50:42.114Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e6585619fe3cd2cd13fdec
Added to database: 4/20/2026, 4:46:14 PM
Last enriched: 4/20/2026, 5:01:17 PM
Last updated: 4/20/2026, 7:10:15 PM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.