P.K. SHARMA

Cyber security intelligence, AI governance, practitioner analysis

PHP issues emergency fixes for two critical RCE flaws: CISA and UK NCSC issue urgent alerts

The PHP project released 8.5.12, 8.4.27, 8.3.36 and 8.2.35 on 21 October 2026 to fix two critical remote code execution flaws, CVE-2026-109618 and CVE-2026-109619. The UK NCSC and US CISA both issued alerts urging immediate updates. Corrected on 26 October, after the first text named the wrong fixed versions.

By · LinkedIn · · 12 min read

Correction, 09:54 GMT on 26 October: the fixed versions, the workaround statement and three sources were wrong

The text published on 21 October named the wrong fixed versions, said no configuration change reduces exposure, credited the UK NCSC with advice that its alert does not contain, and listed three source pages at addresses that do not exist. On 26 October I re-read the primary pages (PHP's security advisory and release notes, both GitHub advisories, CVE.org, NVD, the NCSC alert, the CISA alert and the Unit 42 brief) and corrected the article below. A statement that I could not tie to a page I had read has been removed, not softened.

If you used the earlier text to pick a version, check it now. The fixed releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, released on 21 October 2026. PHP 8.3.13 and PHP 8.2.25, which the earlier text named, are releases of 24 October 2024 and do not contain these fixes. PHP's own changelog page prints 22 October against the new releases, the date the PHP Foundation says the release was first planned before it was brought forward to 21 October.

What the 21 October text said, what the primary pages say, and where. Pages read on 26 October 2026

The 21 October textWhat the pages sayPage
Fixed in PHP 8.3.13 and PHP 8.2.25Fixed in 8.5.12, 8.4.27, 8.3.36 and 8.2.35. The two older numbers are 2024 releases.PHP security advisory; GHSA-w8hw-w9fx-j79w and GHSA-6wmf-4rv5-p3rp; CVE.org; NVD
No change to PHP settings reduces exposure, and memory_limit does not helpPHP prints stopgaps for each CVE and says only an update is a complete solution and the measures do not make an installation safe. For memory_limit, PHP says setting it to minus one removes one trigger but an allocation failure can still reach the vulnerable path.PHP security advisory, section on what to do if you cannot update immediately
The NCSC said to patch within 24 to 48 hours, that firewalls cannot guarantee protection, and that package updates need a restartThe NCSC alert of 21 October gives no time limit, does not mention firewalls and does not mention restarts. It says any version of PHP is affected, to update, to apply the PHP Foundation's temporary mitigations if you cannot, and to consider taking the system offline if neither is possible. CISA's alert says a web application firewall may provide some protection until systems are patched.NCSC alert, 21 October; CISA alert, last revised 23 October
Both CVEs score 9.2 with low attack complexity9.2 is the PHP CNA's CVSS 4.0 score for both. Its vector sets attack complexity to high and attack requirements to present. NVD adds CVSS 3.1 scores of 9.8 for CVE-2026-109618 and 8.1 for CVE-2026-109619.CVE.org records; NVD records
22.6 million internet exposed hosts respond with PHP headersUnit 42 says its Cortex Xpanse telemetry found over 22.6 million exposed instances potentially vulnerable to the two CVEs. It is a vendor count of potentially vulnerable instances, and the brief does not say how it was made.Unit 42 threat brief, published 23 October, updated 25 October
The flaw was introduced in PHP 5.4.0 on 1 March 2012, 5,347 days earlierNo page I read says when the flaw was introduced. NVD's affected ranges start at 7.3.0 for CVE-2026-109618 and 5.4.0 for CVE-2026-109619, and CVE.org lists branches 8.2 to 8.5. The introduction claim and the day count were this site's own and have been removed.NVD records; CVE.org records
Source addresses for the NCSC, CISA and Unit 42 pages, a SANS diary and The RecordThe NCSC, CISA and Unit 42 addresses printed returned not found, the SANS diary number pointed to a different diary and the Record address did not exist. The sources below are the pages I read.Sources list

PHP issues emergency fixes for two critical RCE flaws: what the advisories establish

The PHP project released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 on 21 October 2026 to fix two critical remote code execution flaws, CVE-2026-109618 and CVE-2026-109619, which CISA says are known as php2shell. PHP's advisory says both allow unauthenticated remote code execution and that the risk is highest for Apache with mod_php, where an unauthenticated request can trigger the attack before any application code runs. The PHP CNA scores both 9.2 on CVSS 4.0, with attack complexity high and attack requirements present in the vector.

Update, 27 October 2026: after this briefing was written, CISA added both PHP flaws, CVE-2026-109618 and CVE-2026-109619, to its Known Exploited Vulnerabilities catalogue on 26 October 2026 (catalogue version 2026.10.26), with a federal due date of 29 October. The statement below that CISA had not added them describes the position at the initial advisory release. See the newer briefing on this site, cisa-adds-both-php2shell-flaws-to-kev-three-day-federal-clock-no-evidence-named, for what the entries say and leave out.

The UK National Cyber Security Centre published an alert on 21 October and the US Cybersecurity and Infrastructure Security Agency published one the same day, revised on 23 October. The NCSC says organisations using any version of PHP are affected. CISA says the flaws affect all PHP installations serving web requests, including Apache with mod_php, PHP FPM, php-cgi, FrankenPHP and LiteSpeed, and that it had not observed successful exploitation in the wild as of its publication. Both alerts tell organisations to find every PHP installation, update, and take systems offline if they can be neither updated nor mitigated.

Later developments, including a honeypot operator's report of exploitation on 24 October, are in a separate briefing: Researcher reports 35 Apache shell starts on three PHP2Shell honeypots running PHP 8.4.26, three days after the fix. This article's own exploitation statements are those of CISA's alert as last revised on 23 October.

Technical breakdown: memory management and fatal error recovery

Both flaws sit in memory management and error handling, parts of PHP that nearly every request touches, as the PHP Foundation put it on 21 October. PHP's advisory for CVE-2026-109618, titled RCE via OOM corruption, says PHP uses longjmp() for out of memory errors to leave the current context. In some contexts request memory is reachable before it is fully initialised, so a failed allocation there leaves the request memory in an invalid state that request shutdown may then read or branch on. The advisory lists ways a request can reach an out of memory condition within its apparent limits: a multipart request without a usable declared length can pass the post_max_size check, a multipart part can carry an unrestricted number of headers, and empty file controls with nested field names multiply the array work without counting towards max_file_uploads.

For CVE-2026-109619, titled RCE via stale global state, the PHP advisory and the NCSC alert describe request owned internal state that survives after its backing memory has been freed, so a later request handled by the same worker may use that stale state before normal initialisation resets it. The PHP Foundation describes the trigger as a fatal error at the wrong point, says a use after free and worker crash were confirmed, and says the reporter demonstrated code execution against a real world application on Apache with mod_php.

Technical control flow diagram of PHP request initialization and fatal error handling failures in CVE-2026-109618 and CVE-2026-109619.

Susceptibility differs by server API. GHSA-w8hw-w9fx-j79w says Apache mod_php runs the request shutdown procedure even when request startup failed, so automatic body parsing can exhaust the memory limit and leave invalid state before any application code runs. It says PHP FPM exits the child when startup fails, which stops the invalid state being consumed, and that no complete FPM exploit had been demonstrated for that startup path. The PHP Foundation's post says code execution was also confirmed on PHP FPM through application level code paths. The advisory's source analysis says FrankenPHP is likely susceptible like mod_php and that LSAPI follows FPM.

Global attack surface and the 14 year code baseline

Unit 42's threat brief, published on 23 October and updated on 25 October, says its Cortex Xpanse telemetry identified over 22.6 million exposed instances potentially vulnerable to the two CVEs at the time of publication. That is one vendor's count of potentially vulnerable instances, and the brief does not explain how instances were counted. The 25 October update also retracts an earlier Unit 42 statement: it says it cannot confirm that initial access in an attack on a European government agency was associated with these CVEs.

Which versions are affected depends on which record you read, as of 26 October. PHP's two GitHub advisories and CVE.org list the four supported branches below 8.5.12, 8.4.27, 8.3.36 and 8.2.35. NVD's configuration ranges are wider, starting at 7.3.0 for CVE-2026-109618 and 5.4.0 for CVE-2026-109619. The NCSC says organisations using any version of PHP are affected. PHP says versions 8.1 and older no longer receive updates from the project, that it published minimal source backports for 7.4, 8.0 and 8.1, and that some distributions and long term support vendors provide backported fixes.

What the pages read on 26 October state, and what they leave open. Sources: PHP security advisory, NCSC alert, CISA alert, Unit 42 brief

TopicWhat is stated in official recordsWhat is not established
Exploitation in the wildCISA's alert, last revised 23 October, says it had not observed successful exploitation in the wild as of publication. CISA's catalogue version 2026.10.23 lists neither CVE.Whether anyone exploited the flaws before the fix, and what later reports show. A separate briefing covers the reports after 21 October.
Affected versionsPHP's advisory: the supported branches below 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Fixes for 8.1 and older come from distributions and long term support vendors; PHP published minimal source backports for 7.4, 8.0 and 8.1.Which unsupported builds are exploitable in practice, and whether every vendor backport carries both fixes.
Firewall rulesCISA says a web application firewall may provide some protection until systems are updated or patched.How complete any vendor's rule is. Neither alert says a firewall rule replaces the update.
How many servers are exposedUnit 42 says its telemetry found over 22.6 million exposed instances potentially vulnerable.How instances were counted and how many are actually vulnerable.

UK NCSC and CISA defensive recommendations

The NCSC alert of 21 October asks UK organisations to identify systems running PHP, prioritising those facing the internet and not limiting the search to old versions, to update to the latest version, to apply the PHP Foundation's temporary mitigations if they cannot update, and to consider taking the system offline if they can do neither. If they can neither update nor disable a system immediately, it says to assess it for evidence of compromise and look for backdoors. It points to a list of PHP dependent software published by the Dutch NCSC and says the NCSC will keep monitoring for any impact on UK organisations. CISA's alert asks for the same inventory, tells organisations to patch internet facing systems first, to take PHP based systems offline if they cannot be updated or run PHP 8.1 or earlier, and to monitor for PHP worker processes launching shells or downloading tools. On 23 October CISA added a Sigma detection rule.

Operational checklist for systems engineering and security teams

Take this with you

Six steps for engineering teams

  • Find every PHP installation, including PHP inside other products, and note the server API (mod_php, PHP FPM, php-cgi, FrankenPHP or LiteSpeed). Start with systems facing the internet.
  • Update to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or to a vendor package that says it contains the fixes for CVE-2026-109618 and CVE-2026-109619. Do not accept 8.3.13 or 8.2.25: those are 2024 releases.
  • Restart every PHP worker and the web server after updating, then check the version the web server runs. The command line build can differ from the one Apache or FPM loads.
  • If you cannot update yet, apply PHP's stopgaps as a narrow reduction only: session.upload_progress.enabled=0, a low post_max_size, request limits at the web server or proxy, and memory_limit=-1 set so applications cannot override it. PHP says these do not make an installation safe.
  • Take PHP 8.1 and older, and anything you cannot update, offline or behind an allowlist. CISA says to take PHP based systems that run 8.1 or earlier offline until they are patched or updated.
  • Hunt for compromise: PHP worker or web server child processes starting shells or downloading tools (CISA), new files in web roots, and unexpected outbound connections. Start from CISA's Sigma rule.

Key facts at a glance

Sources

  1. PrimaryCritical security issue affecting PHP (Alert, published 21 October 2026)UK National Cyber Security Centreaccessed 2026-10-26
  2. PrimaryCritical Vulnerabilities in PHP Require Immediate Patching (last revised 23 October 2026)Cybersecurity and Infrastructure Security Agencyaccessed 2026-10-26
  3. PrimarySecurity advisory: Critical remote code execution vulnerabilities, update now (21 October 2026), with the stopgap measuresThe PHP Groupaccessed 2026-10-26
  4. PrimaryPHP 8 changelog: entries for 8.5.12, 8.4.27, 8.3.36 and 8.2.35, each listing both GHSA fixesThe PHP Groupaccessed 2026-10-26
  5. PrimaryGHSA-w8hw-w9fx-j79w, RCE via OOM corruption (CVE-2026-109618), affected and patched versions, susceptibility by server APIphp/php-src on GitHubaccessed 2026-10-26
  6. PrimaryGHSA-6wmf-4rv5-p3rp, RCE via stale global state (CVE-2026-109619)php/php-src on GitHubaccessed 2026-10-26
  7. PrimaryToday's PHP Security Release, and How We're Strengthening PHP Security (21 October 2026)The PHP Foundationaccessed 2026-10-26
  8. PrimaryCVE-2026-109618 record, PHP CNA: affected branches, CVSS 4.0 9.2 vectorCVE Programaccessed 2026-10-26
  9. PrimaryCVE-2026-109619 record: CVSS 4.0 and 3.1 scores, affected ranges starting at 5.4.0NIST National Vulnerability Databaseaccessed 2026-10-26
  10. Reported byThreat Brief: Critical Vulnerabilities in PHP (published 23 October, updated 25 October 2026): 22.6 million exposed instances and the retracted updatePalo Alto Networks Unit 42accessed 2026-10-26
  11. Reported byCritical PHP Vulnerability (CVE-2026-109618, CVE-2026-109619)SANS Internet Storm Centeraccessed 2026-10-26

Share this briefing

Know someone who owns this problem? Send it to them.

Related briefings

The briefing, in your inbox

Practitioner analysis of cyber and AI security news. No vendor noise.

How often

Every new briefing in one email, at 7am, or at 7am, 12:30pm and 6pm. Nothing is sent when nothing is new. Unsubscribe any time.