Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40488: CWE-434: Unrestricted Upload of File with Dangerous Type in OpenMage magento-lts

0
High
VulnerabilityCVE-2026-40488cvecve-2026-40488cwe-434
Published: Mon Apr 20 2026 (04/20/2026, 16:23:07 UTC)
Source: CVE Database V5
Vendor/Project: OpenMage
Product: 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

AILast updated: 04/20/2026, 17:01:17 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses