Published Last updated
PHP released four emergency maintenance versions on October 21, 2026, to repair two vulnerabilities in the runtime itself. CVE-2026-109618 and CVE-2026-109619 can both produce unauthenticated remote code execution in web-serving PHP configurations. The PHP project says every web-serving SAPI is affected, including PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed.
The fixed upstream versions are PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. The risk is highest for Apache mod_php because researchers demonstrated exploitation before application code runs. PHP-FPM is also susceptible, although the advisory says a complete FPM exploit had not been demonstrated when it was published. This distinction affects exposure analysis, but it does not change the update decision: the project describes patching as the only complete mitigation.
Fixed versions and affected branches
The affected-version boundary is straightforward for the four supported upstream branches. Any earlier release in those branches is vulnerable; the listed maintenance release is the first patched version.
| PHP branch | First patched release | Operational note |
|---|---|---|
| 8.5 | 8.5.12 | Update and restart all persistent workers |
| 8.4 | 8.4.27 | Update and restart all persistent workers |
| 8.3 | 8.3.36 | Update and restart all persistent workers |
| 8.2 | 8.2.35 | Upstream support ends December 31, 2026 |
PHP 8.1 and older branches are no longer supported by the upstream project. PHP published minimal source backports for 7.4, 8.0 and 8.1 to assist downstream maintainers, but that is not the same as restoring upstream support or providing a normal release. Systems on an operating-system or commercial long-term-support channel need confirmation from that distributor that its package contains the relevant backports. A package version that looks older than the upstream fixed version may still be repaired by a vendor patch, so the vendor advisory and package changelog are decisive.
What CVE-2026-109618 changes in PHP memory handling
CVE-2026-109618 concerns PHP’s response to memory exhaustion. Historically, the runtime could use a non-local jump when it encountered an out-of-memory condition. The security advisory explains that this path could bypass ordinary stack unwinding while leaving some resources only partly cleaned up. A later request handled by the same persistent process could then encounter corrupted state.
The repair changes the runtime’s failure behavior. Instead of immediately jumping out of the failing path, the updated code delays the out-of-memory response long enough to perform safer cleanup and then terminates in a controlled way. The important operational point is that the flaw lives below most application frameworks. Input validation inside a CMS or application does not remove the vulnerable runtime behavior.
What CVE-2026-109619 does across worker requests
CVE-2026-109619 is a stale-global-state problem. Some PHP features can retain pointers or global state after a request ends. When a persistent worker processes another request, that state can become a use-after-free condition. The advisory identifies fatal-error backtraces and session upload progress as confirmed paths.
That request-to-request lifetime is why ordinary web workloads are relevant. PHP-FPM pools, Apache workers and other long-running server processes repeatedly handle unrelated requests. An attacker does not need to authenticate if a reachable request path can put a worker into the vulnerable state and a later request can use it. The precise exploitation path varies by SAPI and configuration, but replacing the runtime closes the underlying defect.
SAPI affects risk, not the need to patch
The PHP project explicitly names all web-serving SAPIs as affected. Mod_php deserves the fastest triage because exploitation was demonstrated before application code executes. That reduces the value of application-level defenses and means a seemingly simple or static-looking endpoint can still reach the runtime flaw.
FPM deployments should not interpret the absence of a published complete exploit as an exemption. The advisory says FPM is susceptible, and the vulnerable worker-lifecycle behavior is present. Likewise, managed platforms, containers and appliances that embed PHP remain in scope until their supplier documents a fixed build or rebuilds the runtime.
Installing a package is only half of the change
Persistent PHP workers keep the old executable and memory state until they exit. A package transaction can therefore finish successfully while existing FPM pools, Apache processes or application containers continue to run vulnerable code. Deployment procedures should combine package installation with a controlled restart or replacement of every PHP-serving process.
Containerized services need a new image built from a fixed base or fixed PHP package, followed by a rollout that actually replaces running replicas. Serverless and platform services need the provider’s remediation status and, where required, a redeployment. Version checks should run inside the final workload rather than only on the build host.
Interim controls reduce exposure but do not complete remediation
The project lists temporary controls for environments that cannot update immediately. They include disabling session upload progress, disabling fatal-error backtraces on PHP 8.5 and restarting workers frequently. Some memory-limit configurations can make exploitation harder. PHP is clear, however, that no configuration change is a complete mitigation for both vulnerabilities.
Web application firewalls may block known request patterns, but these defects occur in the language runtime and can be reached through different application paths. A WAF rule is therefore a compensating control during a short patch window, not evidence that the underlying exposure is gone.
CISA adds a detection rule
CISA updated its October 21 alert on October 23 to add a SIGMA detection rule for suspicious activity in relevant log sources. The rule is a hunting aid, not a substitute for installing fixed PHP builds. Security teams should validate it against their telemetry and tune it for local process names and logging coverage before treating a match as evidence of exploitation.
A practical verification sequence
- Inventory every internet-facing and internal service that executes PHP, including appliances, control panels, containers, CI images and vendor products.
- Record the actual runtime branch, SAPI and package source. Do not infer the running version from a repository manifest alone.
- Move supported branches to 8.2.35, 8.3.36, 8.4.27 or 8.5.12 or later. For downstream packages, obtain explicit confirmation that both CVEs are backported.
- Restart FPM pools, Apache workers and other persistent processes, or replace all workload replicas.
- Query the version inside the running service and confirm that no old workers remain.
- Review logs and process crashes from the period before remediation. This is a detection step, not proof of compromise or safety.
- For PHP 8.2, pair the emergency update with a branch migration plan because upstream support ends on December 31, 2026.
The PHP release archive consolidates the project’s version guidance and mitigation notes. CISA also issued an immediate-patching alert on October 21. Neither notice creates a universal regulatory deadline, but both establish an unusually direct vendor and government recommendation to update without delay.
Related release-management coverage: October GitLab and Nexus platform updates.
