AWS / Cloud Infrastructure
October 21, 20268 min read
PHP fixes two critical remote code execution flaws: what to update and in what order
PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35 fix two remote code execution flaws rated CVSS 9.2, for which there's no complete mitigation. We explain which servers to deal with first and how to audit the Drupal, WordPress, or Laravel sites your company runs in production.

On October 21, 2026, the PHP team released a critical security update with versions PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35. They fix two remote code execution vulnerabilities (RCE, meaning an attacker can run arbitrary commands on your server) scored at 9.2 out of 10 on CVSS v4.0. The Drupal patch of October 14 had already demanded a fast reaction from many teams, but this case is more urgent.
This time the flaw is in the language itself, and not in a module or a third-party package. According to figures cited by OpenAI, PHP runs an estimated 70% of the world's websites, and PHP's own advisory says the only way to protect yourself is to update.
What the two vulnerabilities do
The two flaws, tracked as CVE-2026-109618 and CVE-2026-109619, have one thing in common: they let an unauthenticated attacker execute code on your server before your application processes the request. Because the problem is in the PHP interpreter, underneath the application, it doesn't help how well your business code is written, how solid your authentication layer is, or how many security reviews the application has passed.
- CVE-2026-109618: memory corruption during out-of-memory handling. The impact is worse on
mod_phpsetups (PHP running directly inside the Apache web server process), and a single unauthenticated request is enough to trigger it, before any application code runs. - CVE-2026-109619: leftover state from a previous request that survives between requests on the same worker (the process that handles requests), which lets one user's data "contaminate" the execution of the next.
The technical advisories are published as GHSA-w8hw-w9fx-j79w and GHSA-6wmf-4rv5-p3rp. The PHP team's notice was more direct than usual: "there are no complete mitigations, updating is the only safe choice."
Important
The NSA issued a public warning recommending that organizations unable to patch immediately take their PHP systems offline until they can. It's an unusual recommendation, and it reflects how a national intelligence agency assesses a risk that affects the internet on a global scale.
AI found the flaws and also makes them easier to exploit
These vulnerabilities weren't found through a manual code audit. They were discovered by agentic AI systems working as security researchers: OpenAI models under its "Patch the Planet" initiative and, independently, Wiz's security agent, Wiz Atlas. According to Wiz, the discovery was possible because AI lowered the technical barrier to exploiting flaws that used to be too complex to take advantage of by hand.
"LLMs can help adapt an exploit to different PHP versions, configurations and memory layouts"
It's the same logic we discussed when Microsoft warned about AI agents as an insider threat: AI multiplies the capability of defenders and attackers alike. OpenAI talks about a "Defender's Window." To its knowledge, frontier AI found these vulnerabilities before attackers did, which gave maintainers and security providers time to prepare protections ahead of disclosure. That window has closed, because the flaw and the patch are both public and attackers have access to the same models.
The consequences have already been felt outside PHP's technical circles: several outlets reported government websites in different countries going offline while their teams rushed to patch.
Servers running mod_php are more exposed than those on PHP-FPM
The PHP team is explicit: the impact of CVE-2026-109618 is worse on mod_php setups, where PHP runs embedded in the Apache server process. In that model, a compromised worker shares memory and context with the web server itself. Installations on PHP-FPM (FastCGI Process Manager, a model where PHP runs in separate processes that the web server invokes) have a different attack surface. They aren't immune, but the potential damage may be more contained.
For an infrastructure team, this sets the patching order within a single fleet. Servers running mod_php, common in legacy WordPress installs and older Apache setups, go first, ahead of instances already migrated to FPM with nginx.
Partial mitigations reduce the risk but don't remove it
The PHP team and the community have documented a few settings that reduce the risk while the patch is being rolled out, although none of them closes the flaw completely:
session.upload_progress.enabled=0inphp.inior in the FPM pool: reduces the exposed surface in file upload handling.fatal_error_backtraces=0on PHP 8.5 installs: limits the information exposed during fatal errors.memory_limit=-1combined with a lowpost_max_size: avoids certain memory-exhaustion scenarios that trigger the vulnerable condition.- Avoid
RLIMIT_ASorRLIMIT_DATAas a way to limit memory at the operating system level, because these limits can favor the corruption scenario the flaw exploits.
Info
PHP's advisory is clear on this point: these settings reduce the likelihood of exploitation, but they don't eliminate it. The only complete mitigation is updating to 8.5.12, 8.4.27, 8.3.36, or 8.2.35.
PHP 8.1 and unsupported versions don't get the patch
What turns this technical incident into a governance risk is that PHP 8.1 and earlier versions no longer receive official support. They'll only get backported fixes from commercial vendors, if they get any. TechCrunch confirms that installations not running relatively current versions of PHP have additional update work ahead of them.
There's also a second deadline: PHP 8.2 reaches its end of life (EOL) on December 31, 2026. A remediation plan that only moves a fleet from 8.1 to 8.2 would leave the company with the same problem ten weeks later.
| PHP version | Status after the October 21 patch | Next milestone |
|---|---|---|
| 8.5.x | Patched in 8.5.12 | Active branch, full support |
| 8.4.x | Patched in 8.4.27 | Active branch, full support |
| 8.3.x | Patched in 8.3.36 | Active branch, full support |
| 8.2.x | Patched in 8.2.35 | EOL December 31, 2026 |
| 8.1.x and earlier | No official patch; vendor backports only | Out of support |
The flaw is in PHP, not in Drupal, WordPress, or Laravel
If you manage a CMS or framework that runs on PHP, keep in mind that the flaw is in the interpreter that runs all of them equally. WordPress issued a statement clarifying that the problem isn't specific to its CMS and that sites using it need to patch at the server level and coordinate with their hosting provider. Drupal published its own alert (PSA-2026-10-20) with the same message: the only complete mitigation is updating to a PHP version that includes the patch.
This matters because many application teams reasonably assume that the security of their platform is up to the hosting provider or the infrastructure team. In a crisis like this one, when it isn't clear whose job the update is, a site can stay exposed for weeks.
How to audit an enterprise fleet in 48 hours
An organization with several web properties, environments, and hosting providers first needs to know exactly which version is running where. A reasonable audit plan includes:
- An inventory of the real PHP version in every production, staging, and development environment: the one
php -vreturns on each server, and not the one in the documentation. - Classification by execution mode,
mod_phpor PHP-FPM, given the greater documented impact onmod_phpinstalls. - Identifying any instance on PHP 8.1 or earlier, which needs a separate and more urgent migration plan in addition to the patch.
- Verifying that AWS Elastic Beanstalk, Docker containers, or custom AMIs use the updated base image, and not one frozen before October 21.
- Confirming the patch schedule with every hosting provider or CDN, particularly where hosting is managed by a third party.
Teams that already work with Infrastructure as Code on AWS have an advantage here: a declarative definition of the base image lets you confirm and roll out the patched version across the whole fleet in an auditable way, without depending on each server being updated by hand.
Why the decision belongs to senior management
When the NSA publicly recommends disconnecting systems over leaving them exposed, the matter stops being one more ticket in the DevOps queue. A risk committee, a CISO, or a board needs to be able to say precisely which PHP version each of the company's digital properties runs, who is responsible for updating it, and how much exposure time is acceptable while the patch is rolled out.
Keeping a critical application on an unsupported PHP version, which is common in legacy Drupal or WordPress systems built years ago, is now a quantifiable risk, with a CVSS of 9.2 and a national intelligence agency recommending disconnection. Solving it for good takes, on top of this week's patch, a team with the operational experience to keep the fleet updated, audited, and off EOL versions on an ongoing basis, so the company doesn't end up in this situation again.
Need help with this?
This is exactly what we do in Build (Development). Our team can implement it in your company.
Related Articles
Keep learning with these articles

AWS / Cloud Infrastructure
AWS cut off its European sovereign cloud on purpose: what that does and doesn't prove
On October 24, 2026, AWS disconnected its European Sovereign Cloud from the global backbone for several hours and the region kept running. The test demonstrates operational independence, but it leaves open the legal question your compliance team cares about.
8 min readRead this →

AWS / Cloud Infrastructure
AWS CDK: advantages, disadvantages and when another tool fits better
AWS CDK lets your teams write infrastructure in TypeScript or Python instead of YAML, which solves a real problem and creates a few others. We compare CDK with Terraform, Pulumi and CloudFormation based on published documentation and case studies.
9 min readRead this →
Want to implement this in your company?
We can help you take your business to the next level with cutting-edge technology.