Skip to main content

Openmage CVE-2026-40488

| EUVDEUVD-2026-23904 HIGH
Unrestricted Upload of File with Dangerous Type (CWE-434)
2026-04-20 GitHub_M GHSA-3j5q-7q7h-2hhv
8.7
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Register customer account
  2. Delivery
    Navigate to product with file upload option
  3. Exploit
    Upload webshell as .phtml file
  4. Install
    Bypass extension blocklist
  5. C2
    File stored in media/custom_options/quote/
  6. Execute
    Request uploaded file URL
  7. Impact
    Server executes PHP code
  8. Step 8
    Remote code execution achieved

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK

2 techniques across 2 tactics: Command and Control, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires authenticated customer account (PR:L - low privileges) on the target OpenMage LTS installation, achievable through free registration on most e-commerce stores. Exploitation depends on specific web server configuration: vulnerable when Apache/nginx is configured to execute PHP code from alternative extensions (.phtml, .phar, .php3-.php7, .pht) in the media/custom_options/quote/ directory. Default Apache installations with AddHandler application/x-httpd-php .phtml or similar directives are vulnerable. Protected configurations include servers with explicit script execution deny rules for media directories, PHP execution disabled via .htaccess in media paths, or nginx configurations without PHP-FPM handlers for media locations. Product must have custom options with file upload enabled, a standard e-commerce feature but not universally deployed across all products. Attack succeeds against network-accessible stores (AV:N) with low complexity (AC:L) requiring no user interaction beyond attacker's own authenticated session (UI:N).

Impact

Real-world risk is ELEVATED for production OpenMage LTS installations. CVSS 8.7 (High) accurately reflects network-exploitable RCE with low attack complexity and no user interaction required, though PR:L (low privileges required) provides meaningful mitigation since attackers need authenticated customer accounts. The attack vector depends on server configuration: environments with default Apache configurations treating .phtml as executable are immediately vulnerable, while restrictive configurations blocking script execution in media directories are protected. The GitHub Security Advisory disclosure means exploit details are publicly documented, significantly lowering the barrier to exploitation compared to undisclosed vulnerabilities. Absence from CISA KEV suggests no widespread automated exploitation yet, but the trivial bypass technique (simply changing file extension) makes this highly automatable once attackers target OpenMage installations. CRITICAL RISK FACTOR: Many Magento 1.x/OpenMage deployments run legacy configurations without modern security hardening, as operators chose LTS specifically for backward compatibility over security modernization. MISSING DATA: EPSS score unavailable for quantitative exploitation probability assessment. Server configuration prevalence (percentage of OpenMage sites vulnerable to media directory execution) unknown.

Exploit ScenarioDerived

An attacker creates a customer account on the vulnerable OpenMage store (low privilege requirement). They navigate to a product with customizable file upload options, craft a PHP webshell with a .phtml extension instead of .php, and upload it through the product option interface. The file bypasses the incomplete blocklist and is stored at https://victim-store.com/media/custom_options/quote/malicious.phtml. The attacker directly requests this URL, triggering server-side PHP execution on misconfigured servers, gaining remote code execution with web server privileges to exfiltrate customer data, inject payment skimmers, or pivot to backend systems.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 20, 2026

Remote code execution in OpenMage Magento LTS versions before 20.17.0 allows authenticated attackers to upload executable PHP files through product custom options by bypassing an incomplete file extension blocklist. The vulnerability exists because the upload filter only blocks .php and .exe extensions, permitting alternative PHP-executable extensions like .phtml, .phar, .php3-.php7, and .pht. Uploaded files land in the publicly accessible media/custom_options/quote/ directory, enabling code execution on servers without explicit script execution restrictions. No active exploitation confirmed (not in CISA KEV), but public disclosure via GitHub Security Advisory increases exploitation likelihood. EPSS data not provided.

RemediationAI

Upgrade to OpenMage Magento LTS version 20.17.0 or later, which replaces the incomplete extension blocklist with comprehensive file upload validation per the vendor advisory at https://github.com/OpenMage/magento-lts/security/advisories/GHSA-3j5q-7q7h-2hhv. If immediate patching is impossible, implement compensating controls: (1) Configure web server to deny script execution in media/custom_options/quote/ directory by adding .htaccess rules for Apache (php_flag engine off) or nginx location block (location ~* ^/media/custom_options/quote/ { deny all; }), which prevents execution but breaks legitimate file downloads for customers; (2) Restrict product custom option file upload functionality to trusted admin users only, disabling customer-facing file uploads entirely, which eliminates the feature's business value; (3) Implement Web Application Firewall rules blocking requests to media/custom_options/quote/*.(phtml|phar|php3|php4|php5|php7|pht), though sophisticated attackers may bypass with double extensions or null-byte injection. All workarounds have significant operational trade-offs compared to patching.

Affected VersionsENISA

magento-lts < 20.17.0

Affected Packages

composer openmage/magento-lts fix: 20.17.0
euvd magento_lts fix: 20.17.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenMage Magento LTS is a community-maintained fork of Magento 1.x Community Edition, continuing support after Adobe's end-of-life. The vulnerability stems from CWE-434 (Unrestricted Upload of File with Dangerous Type) in the product custom options module. This module allows merchants to configure customizable product options, including file uploads from customers. The implementation uses a hardcoded blocklist approach (forbidden_extensions = php,exe) rather than a secure allowlist. PHP web servers commonly recognize multiple file extensions as executable beyond .php, including legacy extensions (.php3, .php4, .php5, .php7), template extensions (.phtml), archive extensions (.phar), and alternative extensions (.pht). When Apache or nginx is configured with handlers for these extensions, uploaded files execute server-side. The affected CPE (cpe:2.3:a:openmage:magento-lts) confirms this targets the OpenMage fork specifically, not Adobe's current Magento 2.x platform despite the 'Adobe' tag.

Know when Openmage gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.7 HIGH
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

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Patch released
Apr 23, 2026 - 17:45 nvd
Patch available
Patch available
Apr 20, 2026 - 17:16 EUVD
CVE Published
Apr 20, 2026 - 16:23 nvd
HIGH 8.7

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

OpenMage Magento LTS versions prior to 20.17.0 contain a remote code execution vulnerability that allows authenticated users to upload malicious PHP files by exploiting an incomplete file extension blocklist, directly enabling unauthorized command execution on affected servers. This poses immediate risk to e-commerce operations, customer data, and payment systems for any organization running vulnerable versions with authenticated user access.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not possible, implement: (1) disable product custom options feature if not business-critical; (2) restrict execute permissions on media/custom_options/quote/ directory at OS/web server level to prevent PHP execution; (3) limit authenticated user accounts with product upload capability to essential personnel only; (4) deploy WAF rules blocking requests to .phtml, .phar, .php3-.php7, .pht files in upload directories.

Threat Intelligence Overview

EPSS Score
0.1%
Top 69% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2023-41879 HIGH POC
7.5 Sep 11

Magento LTS is the official OpenMage LTS codebase. Rated high severity (CVSS 7.5), this vulnerability is remotely exploi

CVE-2021-21426 CRITICAL
9.8 Apr 21

Magento-lts is a long-term support alternative to Magento Community Edition (CE). Rated critical severity (CVSS 9.8), th

CVE-2026-128049 CRITICAL
9.4 Nov 13

Cross-site request forgery in OpenMage LTS's OAuth authorization flow allows anyone holding valid OAuth consumer credent

CVE-2026-128046 CRITICAL
9.2 Nov 13

Unauthenticated file upload in OpenMage LTS (magento-lts) before 20.18.2 and in the 21.0.0 beta line before 21.0.0-beta3

CVE-2026-128047 CRITICAL
9.2 Nov 13

Account takeover affects OpenMage LTS releases before 20.18.2 and 21.0.0-beta pre-releases before 21.0.0-beta3 because c

CVE-2026-128041 HIGH
8.8 Nov 13

Stored cross-site scripting in OpenMage LTS (the Magento 1 community fork) lets an unauthenticated guest plant script in

CVE-2026-128044 HIGH
8.7 Nov 13

OAuth 1.0a callback allowlist bypass in OpenMage LTS (magento-lts) allows someone holding a leaked consumer key and secr

CVE-2026-128040 HIGH
8.4 Nov 13

Stored cross-site scripting in OpenMage LTS (composer package openmage/magento-lts) before 20.18.2 and in the 21.0.0 bet

CVE-2026-25524 HIGH
8.1 Apr 20

Remote code execution in OpenMage Magento LTS versions prior to 20.17.0 allows unauthenticated attackers to execute arbi

CVE-2020-15151 HIGH
8.0 Aug 20

OpenMage LTS before versions 19.4.6 and 20.0.2 allows attackers to circumvent the `fromkey protection` in the Admin Inte

CVE-2023-23617 HIGH
7.5 Jan 28

OpenMage LTS is an e-commerce platform. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-128030 HIGH
7.4 Nov 13

OpenMage LTS fails to end already-open API sessions when an administrator revokes access, so SOAP v1/v2, WS-I, XML-RPC,

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy