Security

PHP2Shell: critical PHP flaws are under attack — what an online store should do this week

Two PHP vulnerabilities allow code execution on the server, and attacks have been confirmed. Who is affected, which versions are safe and what to check right now.

·2 min read·Source: The PHP Foundation
PHP2Shell: critical PHP flaws are under attack — what an online store should do this week

Image: The PHP Foundation

On 21 October the PHP Foundation shipped an urgent security release, and by 26 October exploitation in real attacks was confirmed. The US agency CISA added the flaws to its catalogue of actively exploited vulnerabilities the same day.

What happened

  • CVE-2026-109618 — remote code execution via memory corruption when a request hits memory_limit. According to the PHP Foundation, on Apache with mod_php it can trigger before any of the site's own code runs — with default settings. On PHP-FPM, code execution was confirmed through application code paths.
  • CVE-2026-109619 — a use-after-free after a fatal error.
  • Severity — 9.2 out of 10 (CVSS).
  • Fixed versions: 8.5.12, 8.4.27, 8.3.36 and 8.2.35.
  • A related flaw has no patch yet; PHP's interim advice is to disable session.upload_progress.enabled.

BleepingComputer estimates there are more than 5 million internet-facing PHP servers.

What it means for business

WordPress and WooCommerce, Magento, OpenCart, PrestaShop, most CRMs and hosting panels run on PHP. That covers almost every small and mid-sized online store.

What to do this week:

  1. Ask your host or developer for the exact PHP version on your server.
  2. Update to one of the fixed versions (or newer).
  3. Disable session.upload_progress.enabled if you don't need it.
  4. Review web-server logs for the last two weeks for odd requests and new files in site folders.

Not sure where to start? Get in touch — we'll check your server and tell you what to update.

This is our own summary and commentary. Original news, details and images — The PHP Foundation.