PHP released emergency fixes on October 21 for two runtime flaws that can let an unauthenticated attacker execute code with a web worker’s permissions. The pair is known as PHP2Shell.
November 21 update: newer security releases also repair the separate session issue tracked here. Use 8.2.36, 8.3.37, 8.4.28 or 8.5.13, or confirmed vendor backports. The full advisory broadens the earlier exposure description to applications sharing session storage with different formats. See the latest update below.
What is exposed
- CVE-2026-109618 concerns corrupted request memory after an out-of-memory error. Maintainers validated remote code execution against Apache mod_php, including a path before application code starts.
- CVE-2026-109619 concerns stale state surviving between requests. Maintainers validated session-lifecycle attacks against mod_php and PHP-FPM; the FPM path depends on a suitable application operation.
- Both advisories rate the flaws 9.2 under CVSS 4.0, a vulnerability-severity scoring system. Actual exploitability depends on the server integration, configuration, extensions, and application.
The affected layer is PHP itself. Updating a WordPress plugin alone does not patch the runtime underneath it. Hosted customers need their provider’s confirmation that the running PHP packages contain the fixes.
What the attack evidence shows
Exploitation status: CISA now lists both CVEs as known exploited; published incident evidence still has specific limits. The October 26 update below records the catalog change separately from earlier demonstrations and telemetry.
Amazon Threat Intelligence reports an attempted exploit against its MadPot honeypots on October 17, before public disclosure. It observed further attempts before the October 21 release and says exploitation broadened afterward.
Amazon also says it is unclear whether the earlier attempts would have succeeded against real-world systems. Honeypot traffic establishes observed attempts; it does not provide a verified count of compromised websites. AWS sells cloud and security services, and this account describes its own telemetry.
Brian Krebs reports precautionary outages alongside the emergency patch rollout. Taking a site offline to protect it is different from evidence that it was breached.
What operators should do
- Deploy PHP 8.2.36, 8.3.37, 8.4.28, or 8.5.13, or confirmed vendor backports covering the applicable November security fixes. The October releases listed in the historical updates fixed the original pair only.
- Confirm the web-serving workers actually run patched code. A different command-line PHP installation is insufficient evidence.
- If immediate patching is impossible, consult both maintainer advisories for temporary controls and their limits. There is no configuration-only workaround that completely fixes both flaws.
- Follow Amazon’s advice to investigate suspicious activity from at least October 17, including unexpected process execution and file changes. Patching closes the vulnerability; it does not undo a prior compromise.
Blocking uploads or changing memory settings can disrupt applications and cover only particular attack paths. Apply temporary measures with the advisory’s prerequisites, rather than copying a universal configuration snippet.
Caveat: PHP’s widespread use is not a measurement of exploitable hosts or successful compromises; the maintainer advisories distinguish demonstrated paths from suspected ones.
Update: October 21, public exploit claims need scrutiny
Elias Taylor challenges the reliability of circulating public exploits, with a divided HN discussion. The PHP Foundation says it found no functional circulating examples at the moment of public release, despite privately validated exploit paths.
These observations concern different evidence and times. They do not negate the maintainer advisories or independently establish the success of attacks reported by telemetry providers. Keep the patch guidance while checking claims of a universal, easy exploit.
Update: October 23, 12:42 EDT — retain upload-progress mitigation for a separate issue
PHP’s current guidance identifies CVE-2026-115560, a separate remote-code-execution risk under an unusual configuration. Sergiu Gatlan’s October 23 report describes the new guidance. The October 21 fixed releases listed above address the original pair; they do not resolve this additional issue.
The October notice described these combined prerequisites. The November 19 full advisory supersedes this narrower account: shared storage across differently configured applications also creates exposure.
- Configuration sets
session.serialize_handlertophp_binaryorphp_serialize. - Application code switches that handler to
phpat runtime before starting a session. - Session upload progress remains enabled.
PHP recommends keeping session.upload_progress.enabled=0 until the next regular bugfix release. Its existing advisory specifies applying this before request parsing and restarting every worker. Application-level settings alone are insufficient.
The October notice said applications that never change the serialization handler at runtime could keep upload progress enabled. That reassurance is incomplete: another application can write incompatible data to shared session storage. Follow the November update below.
Historical fix status: no patched version was supplied in the October notice. The November 19 releases and full advisory now supersede that status. The October sources reported no confirmed exploitation of this additional issue.
Update: October 24, 21:47 EDT — packet records now link requests to shell execution
A new October 24 honeypot report from GitHub account 0x4D31 reports successful code execution, beyond the attempt-only evidence described above. Its packet captures and process records correlate 35 execution-stage requests with 35 shell starts across three targets. Apache web workers directly launched those shells as UID 33, the worker account.
The targets deliberately used PHP 8.4.26, single-worker Apache mod_php and a 128 MiB PHP memory limit. The report associates the traffic with CVE-2026-109618. It does not establish a separate CVE-2026-109619 attack path or exploitation of CVE-2026-115560.
Evidence status: source-reported successful execution on instrumented honeypots. The author links complete network requests to unexpected child processes using timing, connection and worker identifiers. Crashes and HTTP status codes alone were not counted as success. Two source-address clusters appear in the records; they do not identify two distinct attackers.
This strengthens the evidence that working exploit traffic is reaching exposed PHP services. The intentionally favorable targets do not measure reliability across ordinary deployments or establish a count of compromised production websites. The report observed no downloaded second-stage file, despite command execution and attempted outbound connections.
Keep the existing patch and upload-progress guidance. During investigation, correlate unusual multipart requests, oversized session cookies and worker crashes with unexpected shells or other child processes. A missing completed access-log entry cannot exclude execution: the report describes workers crashing after starting a shell.
Source limit: these execution findings come from one operator’s published records, not an independently replicated incident investigation.
Update: October 25, 21:43 EDT — Unit 42 retracts a production-exploitation claim
Unit 42’s October 25 correction retracts its October 23 claim linking a European government agency’s compromise to PHP2Shell. Researchers observed post-compromise activity in a vulnerable PHP application, but could not confirm that either PHP2Shell CVE supplied initial access.
That incident is not confirmed production exploitation of CVE-2026-109618 or CVE-2026-109619. The correction leaves the separate maintainer demonstrations, Amazon’s reported attempts and the October 24 honeypot execution records as distinct evidence.
The runtime patch advice remains unchanged. Investigators should establish the entry point from incident evidence rather than infer it from a vulnerable PHP installation. Unit 42 is Palo Alto Networks’ research team; its brief also markets the company’s security products.
Update: October 26, 21:45 EDT — CISA lists both flaws as known exploited
CISA’s revised alert confirms that CVE-2026-109618 and CVE-2026-109619 entered its Known Exploited Vulnerabilities catalog on October 26. This changes the agency’s exploitation assessment. The catalog date is neither the publication date of the flaws nor the date attacks first began.
The machine-readable catalog marks forensic triage Yes for both entries and ransomware use Unknown. It provides no victim count or new public incident narrative. The October 25 Unit 42 retraction therefore still stands; catalog membership does not validate that withdrawn initial-access claim.
CISA urges immediate patching, prioritizing internet-facing installations. It recommends taking PHP-based systems offline when they cannot be patched, including unsupported PHP 8.1 and earlier. Its fixed targets match the maintainer advisories: 8.2.35, 8.3.36, 8.4.27 and 8.5.12. Confirm the actual web workers were updated and investigate suspicious child processes; a firewall is an interim layer, not the runtime fix.
The catalog supplies October 29 as the entries’ due date, with risk-based directive and forensic-triage guidance. That federal catalog field is not a universal deadline for every private operator. Keep the separate CVE-2026-115560 mitigation above: this catalog update establishes no fix for that additional issue.
Update: October 27, 12:52 EDT — Wiz reports failed chains in its own telemetry
Wiz’s October 27 investigation adds a narrower view of observed attempts. Researchers Yaara Shriki, Shahar Dorfman, Alma Blachsan and Yaron Samuel report no successful end-to-end PHP2Shell exploitation in their own telemetry. They explicitly acknowledge Karimi’s separate packet-to-process execution evidence described above.
The newer attempts Wiz captured reached memory exhaustion but failed at the later memory-disclosure stage. That is an observed failed chain on those targets, not proof that the flaw cannot be exploited. The authors identify build differences, memory limits, network timing and requests reaching different workers as reliability barriers.
Wiz also found tools branded as PHP2Shell that actually depended on a separate local file inclusion flaw, which lets an application load an attacker-influenced file. A scanner label or a memory-exhaustion error alone does not establish exploitation of either PHP2Shell CVE.
In Wiz’s observed population, distinct internet-exposed vulnerable machines fell by approximately 67% after disclosure. Organizations with at least one exposed vulnerable instance fell by approximately 47.9%. These describe its dataset, with changing scan coverage and population acknowledged. They neither measure global patch completion nor identify how much came from patching, retirement or access restrictions. Wiz sells cloud-security services and is reporting its own research and telemetry.
The current maintainer advisory validates code execution against normal multi-worker Apache configurations. Multiple workers can complicate attacks without removing the vulnerability. The stale-state advisory separately validates an application-dependent PHP-FPM path. Wiz’s unsuccessful samples do not reverse either finding or CISA’s catalog assessment.
Keep the runtime patch and investigation guidance above. During triage, separate suspicious requests, worker failures, memory disclosure and unexpected process execution. Each supports a different conclusion about how far an attempt progressed.
What the thread adds
The ranked Hacker News discussion shows how a limited telemetry finding can become a much broader headline:
- xx_ns emphasizes that the no-success finding concerns Wiz’s own honeypots. In reply, ericol challenges the separate claim that a researcher’s exploit is universal: “He claims they have A exploit.” Neither comment independently verifies exploit portability.
- CircuitsFit44 argues for inventorying exposed hosts and containers before assuming patch coverage: “Patching also does not remove anything already planted”. That separates closing the entry point from investigating previous access.
From a 47-comment thread, in HN’s own order.
Update: November 21, 04:43 EST — session fix available; shared storage broadens exposure
PHP’s full November 19 advisory for CVE-2026-115560 supplies a repair and corrects the earlier narrow exposure description. Changing the serializer at runtime is not required. Separate applications, pools, virtual hosts or command-line jobs can write and read the same session using different formats.
The exposed combination is an upload-progress writer using php_binary or php_serialize, a reader using php, and access to the same stored session. Code execution additionally requires a gadget chain, application classes whose deserialization callbacks can be combined to perform unintended actions. Separate PHP-FPM pools do not automatically separate their session files.
The advisory lists 8.2.36, 8.3.37, 8.4.28 and 8.5.13 as patched. The official changelog dates those releases November 19. The October emergency releases alone leave this separate issue unresolved.
The repair disables session upload progress by default and rejects runtime session-setting changes while that feature is enabled. An explicit configuration enabling the feature overrides the new default. Even after updating, every reader and writer of its accessible session data must use the same serializer.
Keep session.upload_progress.enabled=0 set administratively before request parsing where the feature is unnecessary, and restart affected workers. Where it is required, audit effective settings across applications and jobs. Isolate stores that need different formats, and migrate or expire old records when changing formats.
Evidence status: maintainer-reported controlled code execution under the documented conditions. This advisory supplies no confirmed in-the-wild campaign for CVE-2026-115560. Its demonstration must remain separate from the older PHP2Shell exploitation evidence above.