OpenMage Magento Zero-Day Exploited to Drop Web Shells
OpenMage patched zero-day GHSA-qjwx-wccq-qmj5 in its Magento 1 fork after attackers actively deployed PHP web shells on unpatched e-commerce stores.

Table of Contents
Key Takeaways
- OpenMage patched an actively exploited zero-day vulnerability tracked as GHSA-qjwx-wccq-qmj5 in legacy media APIs.
- Threat actors chained SQL injection with path traversal to write PHP web shells directly into web roots.
- Adobe Commerce and Magento 2 platforms remain unaffected because the vulnerability is unique to Magento 1 code.
- Administrators must upgrade immediately to OpenMage LTS 20.19.4 or 20.18.6 and audit database records.
OpenMage maintainers released urgent security updates in December 2026 after discovering active exploitation of a zero-day remote code execution vulnerability across community-maintained Magento 1 e-commerce stores. Attackers abused legacy product media API endpoints to deploy persistent web shells directly into production environments.
According to security tracking published by SecurityOnline, the incident was first confirmed on an online merchant operating OpenMage LTS 20.19.1. The maintainers published advisory GHSA-qjwx-wccq-qmj5 after identifying in-the-wild exploitation chains that bypassed conventional file integrity controls to secure persistent administrative control over vulnerable store deployments.
Technical Breakdown
The flaw resides in the update() method of the legacy product media API within OpenMage LTS. Historically retained to ensure backward compatibility with older extensions and integrations, this endpoint failed to validate input parameters against path traversal sequences or enforce strict file extension filtering. Attackers weaponized this structural gap by combining Exploit Public-Facing Application (T1190) mechanisms with backend database manipulation.
Forensic analysis revealed that threat actors first leveraged a secondary SQL injection vector to inject directory traversal patterns containing .. directly into the catalog_product_entity_media_gallery database table. Once these manipulated records were established in the database, the attackers initiated JSON-RPC calls targeting the media API endpoint. Because the API trusted the database values without canonical path sanitization, the processing routines saved arbitrary payload files outside designated media directories.
This multi-stage sequence resulted in the installation of Web Shell (T1505.003) scripts directly inside the publicly accessible document root. Once dropped, the PHP web shell granted attackers arbitrary code execution privileges under the web server daemon user, enabling payment gateway skimming, credential exfiltration, and full database dumping. Defending against these web-layer breaches follows principles seen in broader enterprise containment operations, such as the Polish health institute cyber incident isolation response.
The maintainers clarified that modern Magento 2 instances and Adobe Commerce platforms remain completely unaffected. This vulnerability stems from vintage architectural constructs preserved exclusively within the Magento 1 open-source fork, distinguishing it from concurrent enterprise vulnerabilities like the StyleSmuggler flaws that impacted modern Adobe stacks earlier this year.
Impact Matrix
| Dimension | Technical Specification |
|---|---|
| Advisory Identifier | GHSA-qjwx-wccq-qmj5 |
| Vulnerability Classification | Path Traversal (CWE-22) & Arbitrary File Upload (CWE-434) |
| Affected Software | OpenMage LTS <= 20.18.5, 20.19.0 to 20.19.3, 21.0.0-beta1 to beta6 |
| Exploitation Status | Actively Exploited Zero-Day (Confirmed In the Wild) |
| Remediation Release | OpenMage LTS 20.19.4, 20.18.6, and 21.0.0-beta7 |
| Confirmed Post-Exploit TTPs | T1190 (Initial Exploit), T1505.003 (Web Shell Installation) |
Relying on deprecated API surfaces in legacy e-commerce forks creates persistent blind spots that modern perimeter defenses fail to catch. Attackers consistently pair subtle database tampering with unvalidated file writing to bypass standard upload filters.
— Texial Threat Research Desk
Immediate Actions
- Apply official security releases immediately by upgrading installations to OpenMage LTS versions
20.19.4,20.18.6, or21.0.0-beta7through Composer or source builds. - Query the production database table
catalog_product_entity_media_galleryfor malicious directory traversal markers usingSELECT * FROM catalog_product_entity_media_gallery WHERE value LIKE '%..%';to detect stored injection payloads. - Audit the web server document root and public directories for recently modified or anomalous PHP files created outside expected deployment windows, especially inside
/media/and root script directories. - Restrict access to legacy JSON-RPC and SOAP API endpoints at the reverse proxy or web server tier using Nginx or Apache rule sets, whitelisting only verified integration IP addresses.
- Rotate administrative credentials, database passwords, and API secret keys across all environments if traversal strings or unrecognized PHP scripts are uncovered during forensic verification.
Frequently Asked Questions
How can store owners verify if their OpenMage installation is compromised?
Store owners should query the catalog_product_entity_media_gallery database table for traversal characters like .. and inspect the web root for unauthorized PHP scripts modified around the incident timeframe.
What preconditions are required for attackers to trigger this exploit?
Attackers must have the ability to write traversal paths into media gallery database records, typically accomplished via an auxiliary SQL injection flaw, before issuing JSON-RPC API calls to trigger file creation.
Are Adobe Commerce and Magento 2 stores vulnerable to this zero-day?
No, Adobe Commerce and Magento 2 are not vulnerable. The flaw exists exclusively in the legacy product media API architecture maintained within the community-supported OpenMage Magento 1 distribution.
What interim protection exists if immediate patching cannot be completed?
Administrators should block incoming traffic to legacy API endpoints via Nginx or Apache rewrite directives and enforce file system read-only permissions across web-accessible directories until updates are applied.
Keep your security team ahead of this threat.
Priya Malhotra
Enterprise security editor covering application security, threat research, and critical infrastructure defense for Texial Newsroom.


