PolyShell was being exploited for months before most stores could get a patch, so if you run Magento, assume you’ve been probed.

At a glance

  • CVE: CVE-2026-48356 — named “PolyShell” by Sansec, who found it. Adobe’s fix is in bulletin APSB26-73.
  • Severity: 9.3 (Critical) at NVD. Adobe’s own bulletin scores it a touch higher, at 9.6.
  • Affected: Adobe Commerce 2.4.9, 2.4.8-p5, 2.4.7-p10, 2.4.6-p15, 2.4.5-p17, 2.4.4-p18 and earlier; Magento Open Source 2.4.9, 2.4.8-p5, 2.4.7-p10, 2.4.6-p15 and earlier; Adobe Commerce B2B 1.5.3, 1.5.2-p5, 1.4.2-p10, 1.3.4-p17, 1.3.3-p18 and earlier.
  • Known exploited: Yes — Sansec saw the first attacks on 2026-03-19, and CISA added it to its KEV list on 2026-10-27.

What’s going on

Magento’s REST API lets shoppers attach a file to a cart item (think “upload your logo” product options). Sansec found that the code handling those uploads never checks that the product actually has a file option, never checks the option ID, and doesn’t block .php-style extensions. The only check is “does this look like an image?”, which a polyglot file — a real GIF or PNG with PHP tucked inside — sails straight past. The guest-cart endpoints make it work with no account at all. Files land in pub/media/custom_options/quote/.

What happens next depends on your web server config. If PHP can run from that folder, it’s remote code execution; with some other server setups, Sansec says it turns into stored XSS and account takeover instead. Attackers have been dropping webshells, scattering an accesson.php backdoor across the codebase, and injecting skimmer loaders into CMS blocks — 471 stores in a single hour during one wave in March, and the same group was still rotating loader domains in October. Even if your server never executes the file, it stays on disk until someone deletes it.

Timeline

  • Public warning (Sansec): 2026-03-17
  • Exploited in the wild: from 2026-03-19
  • Fix in Magento 2.4.9: 2026-05-12, per Sansec — older lines weren’t covered yet
  • Patch for supported lines: 2026-07-14 (APSB26-73, published to NVD the same day)
  • Added to CISA KEV: 2026-10-27

Heads-up: Adobe’s bulletin still says it isn’t aware of exploits, but Sansec’s attack data and CISA’s KEV listing say otherwise.

== UPDATE ==

There’s a fix, but it’s not a normal Composer bump, so read this bit carefully.

  • Patch available: Yep.
  • Fixed in: Adobe’s July 2026 security update, which the bulletin lists as 2.4.9-2026-jul, 2.4.8-2026-jul, 2.4.7-2026-jul, 2.4.6-2026-jul, 2.4.5-2026-jul and 2.4.4-2026-jul (Magento Open Source gets the 2.4.6–2.4.9 ones). B2B gets matching 1.3.3–1.5.3 “2026-jul” patches. Sansec says 2.4.9 already shipped the fix in May, but Adobe still lists 2.4.9 as affected and ships a July patch for it, so apply it there too.
  • How to apply: These are isolated patch files, not Composer packages. First get onto the latest patch release for your line (2.4.9, 2.4.8-p5, 2.4.7-p10, 2.4.6-p15, 2.4.5-p17 or 2.4.4-p18), download the matching zip from KA-37421, and apply the CE file, then EE and B2B if you have them. Open Source users can only download patches for 2.4.6 and up. The patches build on each other, so apply later months’ patches in order afterwards, and run php vendor/bin/patch-status (Adobe’s Commerce Version Tool, which ships with the July patch) to confirm nothing’s missing. On Commerce Cloud, the latest cloud-patches update already includes it.
  • If you can’t patch yet: follow Sansec’s advice: block web access to pub/media/custom_options/ (on nginx, a deny all location for that path placed before your .php handler; on Apache, make sure the folder’s .htaccess turns off PHP and denies access). That stops uploaded files from running, but only a WAF rule that blocks the API call stops the uploads themselves. Then hunt for what’s already there: find pub/media/custom_options/ -type f ! -name '.htaccess' and find . -name 'accesson.php' -type f, and check your cms_block and cms_page content for scripts you didn’t add.

References