Technical terms with a dotted underline are explained on hover, tap or focus.

On 21 October 2026 the PHP team released fixes for two critical vulnerabilities. The pair is called “PHP2Shell”. Both flaws allow remote code execution without logging in. Because the bug sits in the PHP runtime itself, websites are affected even when their own code is clean. PHP runs behind WordPress, Joomla!, Typo3, Drupal and Moodle, among others.

At a glance

  • What: CVE-2026-109618 and CVE-2026-109619, both CVSS v4.0 9.2 (critical)
  • Who is affected: every PHP installation that serves web requests: PHP-FPM, Apache mod_php, php-cgi, FrankenPHP, LiteSpeed. mod_php is considered the riskiest.
  • What to do: update to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (or a distribution package with both fixes), then restart all PHP processes
  • Website at a hosting provider? Ask the provider whether its PHP version has been patched.

What happened

  • CVE-2026-109618: When memory runs out, request data can remain partly initialized and be treated as valid during cleanup. Crafted multipart requests can trigger this, even within configured size limits.
  • CVE-2026-109619: A use-after-free: stale state from an earlier request points to memory that has been freed, which a later request on the same worker can use. Reading memory contents is also possible.

Ratings: PHP assigns CVSS v4.0 9.2, the NVD CVSS v3.1 9.8. The NVD rates attack complexity as low, PHP as high.

Timeline (according to The Hacker News, Patchstack and Censys):

  • 17 October: Amazon records an attack attempt on CVE-2026-109618 in its honeypot, four days before disclosure.
  • 20 October: Details become known ahead of coordinated disclosure. The PHP team announces the fixes in advance that evening.
  • 21 October: PHP releases the fixed versions (around 14:00 UTC). Cloudflare had already activated protection rules.
  • 22 October: The BSI updates its cyber security warning to version 1.2.

The flaws were found by Wiz Research, Calif and the OpenAI Codex Security team, together with the PHP security team. A PHP developer had noticed signs of the memory bug during the external audit in 2024, but no route to code execution was found at the time.

Affected and fixed versions

  • Fixed in: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35
  • Vulnerable: 8.2.0–8.2.34, 8.3.0–8.3.35, 8.4.0–8.4.26 and 8.5.0–8.5.11
  • PHP 7.4, 8.0 and 8.1: no official release. The PHP team published minimal source backports that you have to build yourself.
  • PHP 5.4 to 7.3: end of life, no fix. According to the researchers, the affected code goes back to PHP 5.4.0. Only migration helps here.
  • Note: PHP 8.2 reaches the end of security support on 31 December 2026, PHP 8.3 on 31 December 2027.
  • Distribution packages often carry the fix under an old-looking version number. Check the changelog for the CVE numbers.

Is it being exploited?

Attack attempts are documented; broad attacker success so far is not. The sources in detail:

  • Amazon: attempt on 17 October, then activity from several sources. Amazon speaks of broad exploitation and advises searching for traces from 17 October. It is unclear whether the attempts would have succeeded against real systems.
  • VulnCheck: one failed attempt to drop a webshell through a session file. VulnCheck holds a non-public working exploit for CVE-2026-109618 (PHP 8.4.26, x86-64, ASLR enabled). No exploit specific to CVE-2026-109619 is known.
  • watchTowr, Cloudflare, Patchstack: attack attempts and early attacks, respectively. Patchstack reports hosting partners with several incidents, but one entry also mentions only scanning with no proof of breaches.
  • BSI, Canadian Cyber Centre, Rapid7: no successful exploitation at scale, or no active exploitation observed.
  • Public proof-of-concepts: many are circulating; according to VulnCheck none bypasses ASLR on x86-64, and Rapid7 found each works only under narrow conditions. Be careful: unverified code can itself contain malware.

The situation can change quickly. Do not wait for clarity; patch.

How large is the attack surface?

Censys counts (as of 22 October) about 3.08 million hosts and 56.7 million web properties running PHP. These are all PHP installations, not confirmed vulnerable ones, but they show the order of magnitude. According to media reports, some authorities and institutions took services offline as a precaution, for example parts of Dutch government services (DigiD, MijnOverheid) and, according to ZDFheute, the city of Mainz.

For operators of WordPress, Joomla!, Typo3, Drupal and Moodle

The flaws are in PHP, not in the CMS. A CMS update alone therefore does not fix them. Wiz Research demonstrated unauthenticated code execution against the current WordPress container images.

  1. Find out your PHP version: in the hosting control panel, in the CMS backend (in WordPress under “Tools → Site Health → Info”) or by asking your administrator.
  2. Inventory all PHP installations: including test systems, staging sites, containers and devices that bundle PHP.
  3. Move to a supported, fixed version. On PHP 8.1 and older, check whether your provider ships a backport; otherwise migrate.
  4. Do not install “fix plugins” or copied code snippets. They are unverified and can break sites.
  5. Cannot patch right away? For high-risk sites, take the site offline or put it into maintenance mode.
  6. If you suspect compromise: treat the server as possibly compromised and change the credentials stored on it, because the flaw can expose memory contents.

For customers of web hosts

With shared hosting, the provider is usually responsible for the server software. You cannot fix this yourself, but you can ask. Useful questions:

  • Does my plan run PHP, and in which version?
  • Have the fixes for CVE-2026-109618 and -109619 been applied, and were the PHP processes restarted afterwards?
  • If I choose my PHP version myself: which supported, fixed version can I switch to?

Good to know: cPanel providers get fixed ea-php packages through CloudLinux (ea-php52 to ea-php85), Debian and Ubuntu have packages by Ondřej Surý down to PHP 5.6, and the official php Docker image gets no fix for 8.1 and older. According to PHP, the Remi repository (rpms.remirepo.net) is not updated on the release day. If you use it, better switch to distribution packages or build from source.

What administrators should do now

  1. Update: move to a fixed version. PHP names no complete workaround; updating is the only safe way.
  2. Restart services: Apache, PHP-FPM and all long-running PHP processes. Updating only the application does not fix the runtime.
  3. Check packages: use only packages that contain both fixes and verify the CVE numbers in the changelog.
  4. If patching is not immediately possible (stopgap only, not a substitute): set memory_limit=-1 server-side (so applications cannot override it), set a low post_max_size and size limits at the web server or proxy; session.upload_progress.enabled=0 against CVE-2026-109619; on PHP 8.5 also fatal_error_backtraces=0. Then restart all workers. The upload-progress setting does not help against CVE-2026-109618 and cannot be set via ini_set() or .user.ini. Do not use RLIMIT_AS and RLIMIT_DATA; they can trigger the vulnerable path themselves.
  5. Network protection: Cloudflare has enabled protection rules for known attack patterns (all plans). They only help if your server accepts traffic exclusively through Cloudflare, and are considered a stopgap. CERT-EU advises isolating internet-facing PHP applications until the fix is verified.

Check for compromise

This applies to every server that was reachable from the internet and unpatched, even if it has been patched since. Search window: from 17 October.

  • In web server logs, look for large multipart POST requests with a PHP_SESSION_UPLOAD_PROGRESS field and a PHPSESSID cookie (hint from Censys).
  • Check the PHP session file directory for unexpected files.
  • Watch for crashed PHP workers and for PHP processes that start shells or download tools.
With PHP, “application updated” is not enough. The runtime must be updated and restarted.

Sources

Note: As of 30 October 2026, based on the sources above (latest information from 28 October 2026). The situation changes quickly. The PHP security advisories (GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp) and the BSI warnings are authoritative. This article is not a substitute for individual advice.