SECURITY

PHP Security

📅 October 2026 ⏱ 8 min citire ✍️ Echipa INTERSECTIC 🏷 PHP Security

On October 21, 2026, the PHP team released emergency patches for a critical vulnerability discovered and reported by researchers at Wiz Research, catalogued as CVE-2026-109618 and CVE-2026-109619. That same day, the technical details were made public — but the first active exploitation attempts had already been detected four days earlier, on October 17, by Amazon MadPot’s monitoring systems. Not a DDoS attack, but PHP servers compromised at code execution level.

If your website runs on PHP — and it almost certainly does — you need to read what follows.

What is PHP2Shell and why it’s critical

PHP2Shell is the name given to a set of two vulnerabilities discovered in the PHP engine that allow an unauthenticated attacker to execute arbitrary commands on the server — no account needed, no passwords, no SSH access.

The CVSS v4.0 score for both CVEs is 9.2 out of 10, classified as Critical. This rating reflects three characteristics that make the vulnerability particularly dangerous:

  • No authentication required — any visitor to the site can trigger the attack with a simple HTTP request
  • Full code execution — the attacker can read files, modify the database, install malware, or send spam
  • Wide impact — affects all servers running PHP in standard mode (PHP-FPM, mod_php, LiteSpeed, FrankenPHP)
⚠ Warning: PHP is used by approximately 77% of all websites with known server-side scripting (W3Techs data, October 2026). WordPress, PrestaShop, Magento, Laravel, Symfony — all run on PHP.

How the attack works

The vulnerabilities exploit two separate mechanisms that can be combined for maximum effect:

CVE-2026-109618 — Memory corruption via OOM

PHP internally manages the memory of each web request. When a request requires a large amount of memory (close to the configured limit), the PHP engine can enter an Out-Of-Memory (OOM) state. Under certain concurrency conditions (race condition), this state corrupts internal data structures of the interpreter.

An attacker sending specially crafted requests can deliberately trigger this corruption, forcing PHP to execute code from memory regions controlled by the attacker.

CVE-2026-109619 — Stale global state in PHP-FPM

PHP-FPM (FastCGI Process Manager) reuses PHP processes between requests for efficiency. CVE-2026-109619 exploits the fact that certain global engine variables are not fully reset between consecutive requests served by the same process.

By sending a precise sequence of requests, an attacker can “poison” the state of a PHP-FPM process, so that the subsequent request — from any other visitor — is processed with altered privileges or data.

💡 Simple analogy: Imagine a bank teller (PHP-FPM) serving customers one after another. The first vulnerability causes them to get confused with the cash. The second leaves a “note” in the vault from the previous customer, which the teller follows without knowing. The result: access to the wrong funds.

Who is affected

All applications running PHP through any of these runtimes are potentially vulnerable:

PHP-FPM Vulnerable Standard configuration for Nginx + PHP
Apache mod_php Vulnerable Classic Apache configuration
LiteSpeed Vulnerable Popular on cPanel hosting
FrankenPHP Vulnerable Modern runtime based on Caddy
PHP CLI Low risk Exposed only if running scripts from external input
PHP in isolated Docker Low risk Vulnerability exists, but blast radius is limited

In terms of applications, the following are directly affected:

  • WordPress — and all its themes and plugins
  • WooCommerce — online stores with order data and saved cards
  • PrestaShop, Magento, OpenCart — e-commerce platforms
  • Laravel, Symfony, CodeIgniter — custom frameworks
  • Joomla, Drupal — other popular CMS platforms
  • Any custom PHP application built in-house

Global impact: what has already happened

The vulnerabilities were discovered and responsibly reported by Wiz Research. On October 21, 2026, the PHP team released patches and technical details were made public simultaneously. Active exploitation began before disclosure — on October 17, Amazon MadPot had already detected attack attempts. Since publication, the situation has escalated rapidly:

Government response

The UK National Cyber Security Centre (NCSC) issued a high-level alert on October 21, 2026, recommending all critical infrastructure operators apply the emergency patches or implement temporary mitigations. Several UK ministries temporarily took down their public websites for emergency updates.

The CISA agency (USA) added both CVEs to its Known Exploited Vulnerabilities Catalog on October 21, requiring federal agencies to apply the patch within a maximum of 3 business days.

The governments of the Netherlands and Canada reported active security incidents related to these vulnerabilities at institutions with unpatched websites.

Industry response

Google Cloud automatically updated managed PHP versions on its platform within 48 hours of the patches being released. Cloudflare activated emergency WAF (Web Application Firewall) rules to block known attack patterns — a measure that offers partial, not complete, protection. Palo Alto Networks reported observing automated exploitation attempts (scanning) shortly after the technical details were published on October 21.

⚠ Key takeaway: Active exploitation of these vulnerabilities is ongoing. This is not a hypothetical threat. Botnets are automatically scanning the internet for vulnerable servers.

Vulnerable versions and available patches

The situation by PHP version is as follows:

PHP Branch Status Safe version Required action
PHP 8.5 Vulnerable 8.5.12+ Update immediately
PHP 8.4 Vulnerable 8.4.27+ Update immediately
PHP 8.3 Vulnerable 8.3.36+ Update immediately
PHP 8.2 Vulnerable 8.2.35+ Update immediately
PHP 8.1 EOL — no patch None available Migrate urgently to 8.2+
PHP 8.0 and earlier EOL — no patch None available Migrate urgently to 8.2+
PHP 5.4 – 7.x EOL — no patch None available Extreme risk — migrate immediately

Versions with EOL (End of Life) status no longer receive security updates from the PHP Group. There will be no retroactive patches. The only remedy is migrating to a supported version.

📊 Context: According to W3Techs data from October 2026, approximately 34% of PHP websites still run on version 7.x or earlier. These are fully exposed, with no possibility of patching.

How to protect yourself now

Step 1 — Update PHP (permanent fix)

The correct and permanent solution is updating PHP to a version that contains the patch:

Step 2 — Temporary mitigations (if immediate update is not possible)

If you cannot update PHP immediately due to dependencies (e.g. a WordPress plugin incompatible with PHP 8.x), there are two mitigations that significantly reduce risk, recommended by the PHP Security Team:

Mitigation 1: Disable memory_limit

Setting memory_limit = -1 in php.ini eliminates the OOM condition that triggers CVE-2026-109618. Note: this setting may increase server RAM usage if there are faulty PHP scripts.

Mitigation 2: Disable session.upload_progress

Setting session.upload_progress.enabled = Off blocks the primary attack vector for CVE-2026-109619 in PHP-FPM configurations.

Step 3 — Monitoring and WAF

How Intersectic can help

We understand that updating PHP isn’t always straightforward. A WordPress site with dozens of plugins can have incompatibilities that require testing and adjustments. An online store can’t be taken offline in the middle of a working day.

We offer three direct services for this situation:

1. PHP2Shell Security Audit

We check your current PHP version, server configuration, and theme/plugin compatibility with updated PHP versions. You receive a clear report: what is vulnerable, what can be updated now, and what requires preparation.

2. Supervised PHP Update

We perform the PHP update in a staging environment first, test all critical functionality (forms, WooCommerce checkout, integrations), then apply to production during your lowest-traffic window. Zero unexpected downtime.

3. Emergency Mitigation

If you have a site running PHP 8.1 or older and cannot migrate immediately, we implement the recommended temporary mitigations and configure WAF rules to reduce risk until a full migration becomes possible.

🔒 Monthly maintenance contract: Clients with an active maintenance contract have already received notification about PHP2Shell and have their update schedule set. Critical security updates are included in the contract at no extra cost.

If you don’t have a maintenance contract and want to know whether your website is vulnerable, get in touch. We offer a free initial check.

CONCLUSION

PHP2Shell is the most severe PHP vulnerability in the last 10 years. If your website runs PHP (and it probably does), check your version now and apply the patch. This isn’t a “when I get around to it” situation — active exploitation is underway.

I
Intersectic Team
Web Design & Development Agency · Arad, Romania
Specialists in WordPress security and PHP production infrastructure

Is your website vulnerable?

We offer a free check of your PHP version and server configuration. Get in touch and we’ll respond the same day.

Contact us →