E-commerce

PHP2Shell & E-commerce: Protecting Magento, WooCommerce & Shopware

Published 21 October 2026 · 6 min read · by PHP2Shell Scanner

Online stores are among the highest-value targets for PHP2Shell. Researchers confirmed unauthenticated remote code execution against Magento 2.4.9, and because the flaw is in the PHP engine, WooCommerce and Shopware stores are exposed too.

Why e-commerce is especially at risk

Action plan for stores

  1. Update PHP now to a patched release (8.2.35, 8.3.36, 8.4.27 and 8.5.12). This is the only complete fix.
  2. Rotate secrets after patching if you were exposed during the attack window — API keys, admin sessions, and any keys that could have been in memory.
  3. Watch for Magecart. Review checkout templates and third-party scripts for unexpected changes.
  4. Don't rely on app-level WAFs alone. Researchers note that some protections (including Sansec Shield) run after the vulnerable PHP code, so they don't block this.
Temporarily blocking multipart/form-data stops the attack but also breaks uploads and most checkout flows. For a live store, prioritize patching over blocking. See temporary mitigations for the trade-offs.

Check your store's exposure

Scan my store