A critical vulnerability dubbed “PolyShell” is actively being exploited across Magento and Adobe Commerce platforms.
Discovered by the Sansec Forensics Team and published on March 17, 2026, this flaw allows unauthenticated attackers to upload executable files via the platform’s REST API.
Because no official patch currently exists for production versions, thousands of online stores are at high risk of remote code execution (RCE) and complete account takeovers.
The core issue resides in Magento’s REST API, specifically within the anonymous guest cart routes.
When a cart item includes a custom file option, the API processes an embedded file object containing base64-encoded data, a MIME type, and a filename.
The system fails to verify the option ID, does not check if the product actually requires a file upload, and critically lacks file extension restrictions.
This allows threat actors to easily bypass basic image header checks and upload malicious scripts directly to the server’s upload directory.
While the guest cart endpoints are vulnerable without any credentials, GraphQL mutations use a different code path and remain unaffected.
The vulnerability impacts various versions of the software differently:
index.php filename or Apache without specific PHP engine restrictions.Sansec researchers observed automated mass scanning and active exploitation beginning March 19, 2026.
Attackers are utilizing polyglot files to execute their attacks, which are malicious codes cleverly disguised as legitimate images like valid GIFs or PNGs.
The most common payloads involve a GIF89a polyglot dropped onto the server as an executable PHP file.
These web shells use hardcoded MD5 hashes to verify attacker authentication before executing arbitrary code or allowing further malicious file uploads.
Security teams should monitor their environments for the following indicators associated with the PolyShell attacks:
index.php, json-shell.php, bypass.phtml, c.php, rce.php, and ato_poc.html.bypass.php to evade basic detection.a17028468cb2a870d460676d6d6da3ad63706778e3 and 4009d3fa8132195a2dab4dfa3affc8d2.2.217.245.213, 3.12.250.83, 18.220.50.153, and 198.186.130.10.Until Adobe releases a comprehensive patch for current production environments, administrators must take immediate defensive actions.
The primary recommendation is to deploy a specialized Web Application Firewall (WAF) to block real-time exploitation attempts.
Furthermore, administrators must tightly restrict access to the pub/media/custom_options/ directory.
For Nginx servers, this involves ensuring strict location block rules with a deny directive, while Apache users must verify their .htaccess access control files are present and effective.
Finally, security teams should routinely scan their infrastructure to detect any dormant files, as uploaded malware remains on the disk even if initial execution fails.
Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.
Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…
Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…
Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…
A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…
GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…
Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…