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.


