PolyShell flaw in Magento enables unauthenticated file uploads and RCE
Vulnerability Disclosure · 7 sources · Updated 5mo ago · First seen Mar 20, 2026

A critical Magento vulnerability dubbed PolyShell allows unauthenticated attackers to upload arbitrary files through the platform's REST API by disguising malicious payloads as image uploads in cart item custom options. The issue affects all stable versions of Magento Open Source and Adobe Commerce, and stems from Magento writing base64-encoded file data to a server-accessible upload directory, creating a path to compromise without prior authentication.
Depending on web server configuration, successful exploitation can lead to remote code execution or account takeover through stored cross-site scripting. Adobe addressed the flaw in the 2.4.9 pre-release branch under APSB25-94, but no standalone production patch is available, leaving current deployments exposed. Researchers at Sansec said exploit methods are already circulating and warned that automated attacks are likely, urging administrators to restrict access to the affected upload directory, verify web server protections, and scan stores for web shells or other malware.
Why it matters
Impact assessment
PolyShell is a critical exposure for Magento Open Source and Adobe Commerce stores, especially internet-facing e-commerce environments that allow guest cart activity. The impact includes unauthenticated file upload, potential remote code execution, stored XSS leading to account takeover, and follow-on payment card theft through skimmer deployment.
Exploitation scope is broad rather than narrowly targeted. Multiple references report mass exploitation beginning on 2026-03-19, with Sansec observing attacks against 56.7% of vulnerable stores in one report and scanning from more than 50 IP addresses; exploitation in the wild is established.
Affected populations
- Magento Open Source version 2 deployments
- Adobe Commerce version 2 deployments
- Reports also describe all versions up to 2.4.9-alpha2 as affected
- All stable Magento Open Source and Adobe Commerce releases were described as exposed at the time because no production patch was available
- E-commerce operators, payment-processing storefronts, and their customers are directly at risk
Severity and business impact
- Unauthenticated compromise path through the REST API
- Potential remote code execution depending on web server configuration
- Stored XSS can enable account takeover in versions before 2.3.5
- Payment skimmer deployment can lead to card data theft, fraud exposure, PCI impact, incident response costs, and reputational damage
- Malicious files may remain dormant on disk even if immediate execution is blocked
Scope and observed activity
- Mass automated scanning reportedly started on 2026-03-19
- More than 50 IP addresses were reported participating in scanning and attacks
- Sansec reported attacks on 56.7% of vulnerable stores in one dataset; another report cited targeting of 23% of protected stores
- A WebRTC-based skimmer was observed on a car maker's e-commerce site
- Exploit methods were reported as circulating publicly, increasing likelihood of opportunistic attacks


