Your application can pass its tests and still be running on a vulnerable server. The PHP security emergency this week is a sharp reminder of that gap, especially for developers who use AI to build and deploy quickly.

On October 21, PHP shipped fixes for CVE-2026-109618 and CVE-2026-109619, collectively known as PHP2Shell. Both carry a CVSS v4.0 score of 9.2. On October 22, AWS updated its WAF guidance. Today, October 23, PHP added a warning about a narrower session-related issue. Updating the runtime remains the first job; checking that latest advisory is the next. AWS’s response and October 22 update.

Reporting checked on October 23, 2026. Dates below use the sources’ dates; the announced October 21 release window was 21:00 WIB.

What broke, and which PHP versions need updating?

The first flaw, CVE-2026-109618, concerns memory corruption when PHP runs out of memory. Cleanup can encounter data that was never fully initialized. With Apache mod_php, an attack can reach this path before application code runs. A login check in your application cannot protect code that has not started executing.

The second, CVE-2026-109619, involves internal state surviving after the memory it refers to has been released. A later request in the same worker can use that stale state. Exploitability depends on reachable code paths and configuration; the security advisories document remote code execution, not merely theoretical crashes.

The patched upstream releases are:

PHP branch First fixed release for these two CVEs
8.2 8.2.35
8.3 8.3.36
8.4 8.4.27
8.5 8.5.12

CERT-EU includes PHP-FPM, mod_php, CGI, FrankenPHP, and LiteSpeed in the affected web-serving landscape. PHP 8.1 and older are outside upstream support. Some distribution or LTS packages carry backported fixes, so check the vendor’s advisory and full package revision before judging an installation by its upstream version number alone.

From early warning signs to the October emergency

The PHP Foundation’s account traces the OOM issue through these milestones:

  • 2024: work following a Quarkslab audit exposed early signs. No concrete exploit path was identified then; difficult compatibility trade-offs and limited resources delayed a fix.
  • July 30 and August 11, 2026: Calif began an audit, then reported an unconditional RCE path on August 11.
  • August 24 and September 18: Wiz and OpenAI supplied further attack paths. The problem’s practical severity was becoming clearer.

October 17: Amazon later identified an exploitation attempt in its MadPot honeypot telemetry, four days before public disclosure. AWS says it is unclear how the actor obtained the information. This establishes observed activity before disclosure; it does not establish how many production websites were compromised. Amazon Threat Intelligence.

October 20: PHP publicly announced two critical fixes for the following day at 14:00 UTC, or 21:00 WIB. That was a preparation notice, not the first discovery of the bugs. PHP announcement.

October 21: the patched releases arrived. WordPress told site owners to update PHP through their hosting environment, explaining that a WordPress update would not fix these runtime flaws. WordPress security notice.

October 22: AWS added guidance for version 2.3 of its PHP application managed rule group. WAF coverage can reduce exposure while patches roll out, but does not replace upgrading PHP. AWS WAF guidance.

October 23 update: check session upload progress

PHP now recommends session.upload_progress.enabled=0 pending the next regular bugfix release for CVE-2026-115560. The unusual combination requires upload progress enabled, a php_binary or php_serialize handler changed at runtime to php, then session_start(). Applications that never change the handler at runtime can keep the feature enabled. A full advisory is planned with that release. PHP’s October 23 notice.

Apply the setting before request parsing through the appropriate server configuration and restart all workers. An application-level ini_set() or FPM .user.ini is insufficient for this protection. PHP’s session-path mitigation guidance.

Does this put 90% of websites at risk?

That figure overstates the evidence. On October 23, W3Techs reports 69.3% of websites whose server-side language it can identify use PHP. It is not 69.3% of every website, and it is not a count of vulnerable or compromised installations. The survey also cannot tell you whether a specific host has applied a vendor backport.

The potential impact is still substantial. An attacker who gains execution in a web process may reach application secrets, customer records, or other services accessible to that process. The NSA warns about data theft, service disruption, and movement deeper into a network. Those are possible consequences, not a measured global loss total. NSA advisory.

For a small shop, emergency maintenance can interrupt checkout. For a hosting provider, the task can involve many sites and PHP pools. For a business with old appliances or internal tools, simply locating the embedded runtime can take time. These are operational implications of the exposure, not claims that those businesses have been breached.

A practical response for vibe coders

AI can generate the application, Dockerfile, and deployment instructions in one sitting. It cannot make yesterday’s base image safe by describing it confidently. Use this incident to add an operational checkpoint to your workflow.

  1. Find the runtime actually serving requests. Record the host, PHP branch, package revision or container digest, and owner. php -v checks the CLI binary; it may differ from PHP-FPM or Apache. For WordPress, check Tools > Site Health > Info > Server, then confirm patch status with the host. Avoid publishing a phpinfo() page. WordPress’s version-check instructions.
  2. Update the runtime, then replace running workers. Use a supported, patched package or rebuild the image from a verified fixed base. Redeploy every replica. composer update changes application dependencies; it does not upgrade the PHP engine. Keep a backup and a recovery path that does not reopen a vulnerable service to the internet.
  3. Verify the deployed result. Check the running web runtime, vendor revision, and container digest after deployment. Test login, uploads, sessions, background jobs, and checkout where applicable. Save the result with a timestamp. A green build from an old image is not patch evidence.
  4. If patching is blocked, contain exposure. Ask the provider for a confirmed fix and deadline. Consider taking the affected service offline until fixed, as CERT-EU recommends. Treat WAF rules as temporary help. Do not copy an unlimited-memory setting from social media without assessing resource exhaustion and your provider’s guidance.
  5. Check for earlier compromise. Review retained logs, unexpected files, process activity, and unusual outbound connections. AWS recommends investigating from at least October 17. Preserve evidence and involve incident responders if you find suspicious activity; patching does not remove an existing foothold. AWS investigation guidance.

For future projects, give one person ownership of runtime updates. Track supported versions, rebuild base images regularly, limit the application’s database and filesystem permissions, and keep secrets out of prompts and repositories. Ask your coding assistant to show the deployed version evidence and the recovery procedure alongside its code changes.

Where Linmas fits in that workflow

The useful moment for a security review is when a generated change becomes a running service. A patch PR needs someone to inspect the base image, deployment configuration, permissions, and verification evidence together.

Linmas’s review workflow provides a structure for scoping that review, routing it to the relevant security specialty, addressing findings, and verifying the change. A Review Capsule can retain the reviewed input identity, findings, and decision so the next person can see what was checked.

For this incident, bring a redacted deployment diff, the runtime inventory, and the post-update checks. Linmas can support that review; it does not patch PHP, replace incident response, or certify a server as safe. Start with the guide to reviewing AI-generated code if your current process ends when the application starts successfully.

The response checklist and operational examples are Linmas editorial recommendations. The cover is an original cyberpunk illustration. This report distinguishes vendor findings, observed attack attempts, and potential consequences; it does not estimate a worldwide breach count.