OpenMage Magento 1 Media API Flaw Exploited to Plant a Web Shell: Upgrade Now
Dr. Abeer Alshammari · Published 12/5/2026
What happened
On 3 December 2026 the OpenMage maintainers published a security advisory (GHSA-qjwx-wccq-qmj5) for the product media API. Press coverage on 4 December reported that attackers had used the flaw to place a web shell on a store running OpenMage LTS 20.19.1. It is not known whether other merchants were targeted.
Why it matters
Many small and mid-size online shops still run Magento 1 through OpenMage because migration is costly. These stores handle customer data and card-adjacent workflows, so a web shell gives an attacker a persistent foothold. The moderate score understates the risk once exploitation is confirmed.
Who is affected
OpenMage LTS 20.18.5 and earlier, 20.19.0 through 20.19.3, and 21.0.0-beta1 through beta6. Magento 2 is not affected. Fixed versions are 20.18.6, 20.19.4 and 21.0.0-beta7.
Technical impact
The update method of the legacy media API builds a file path from a stored gallery file name without confirming it stays inside the media directory, and it checks only the declared file type, not the real content. A user holding the media-update API role could therefore write arbitrary content outside the media folder, which can become remote code execution if the web server runs it. The attack also needs a gallery record with a traversing path, which normal save routes reject, so it must be planted by a separate database write. The maintainers linked this to SQL injection in the reported incident.
Governance impact
This is a lifecycle and supplier risk: forked, community-maintained platforms need a named owner, a patch process and an exit plan. An unassigned CVE also means scanners and asset tools may not flag it, so teams cannot rely on automated vulnerability feeds alone.
What security teams should do
- Upgrade to 20.18.6, 20.19.4 or 21.0.0-beta7.
- Remove media-update permission from API roles that do not need it.
- Make sure PHP cannot execute inside media and upload directories.
- Audit gallery records for unexpected paths and search for unfamiliar PHP files. Patching does not remove an existing backdoor.
- Review the store for SQL injection exposure, since the incident chained a database write with this flaw.
What executives should know
If the business runs a Magento 1 style store, ask who maintains it and when it will be migrated. Ask for confirmation that it has been upgraded and checked for compromise this week, and for a funded plan to retire legacy platforms.
Sources checked: the OpenMage GitHub security advisory, opened directly, and GBHackers reporting. No CVE or CISA KEV listing existed at the time of checking. Details are summarised in our own words.