# PHP fixes critical remote code execution vulnerabilities

Cite as: Gloqo AI, "PHP fixes critical remote code execution vulnerabilities", reviewed 27 Oct 2026, https://www.gloqo.ai/security-updates/advisories/php-2026-10-21/.

Gloqo reviewed the vendor and CNA records on 27 Oct 2026. Those sources are the authority for the vulnerability.

Product: PHP
Published: 2026-10-21
Reviewed: 2026-10-27T22:05:00Z

## Summary

PHP reports two vulnerabilities that can permit unauthenticated remote code execution. They involve out-of-memory corruption and stale request state. The confirmed impact in the out-of-memory advisory is code execution as the web worker account.

## Affected

Supported branches before their fixes: PHP 8.2 before 8.2.35; 8.3 before 8.3.36; 8.4 before 8.4.27; 8.5 before 8.5.12. PHP advises all installations serving web requests to update. Attack paths vary by deployment; PHP documents a demonstrated exploit against mod_php, while other paths have additional conditions. For older branches, follow PHP's guidance on supported upgrades, distribution or LTS fixes, and the limited source backports linked in its advisory.

## Fix

Install PHP 8.2.35, 8.3.36, 8.4.27 or 8.5.12, or the distribution/vendor package containing both fixes. Follow the PHP advisory's worker-restart and configuration guidance. PHP states that configuration mitigations are incomplete. For affected Apigee Drupal developer portals, update PHP first; updating Apigee Drupal modules alone does not fix the PHP vulnerabilities. Existing Marketplace VMs are not updated automatically: patch running VMs, restart PHP-FPM and check instance templates/images for future replacement VMs. For Kickstart Docker, pull and recreate prebuilt images or rebuild and redeploy custom images; back up persistent database and upload storage first.

## Evidence

In an October 21 post, Cloudflare reported attack traffic targeting its customers and changes to the payloads used. The post does not provide a count of successfully compromised systems. On October 27 Wiz reported limited attempts and no successful end-to-end exploitation in its own telemetry, while citing successful exploitation of a separate honeypot. Wiz also reported about 67% fewer distinct vulnerable internet-exposed machines and 47.9% fewer organizations with at least one such instance in its observed population since October 21; scan coverage and population changes can affect those figures. These scoped observations do not negate exploitation reported elsewhere or justify delaying updates.

## Severity

PHP rates both vulnerabilities CVSS v4.0 9.2.

## Context

Google's October 24 bulletin limits Apigee impact to customer-operated Drupal developer portals, including the optional portal for Edge for Private Cloud. Other Apigee products do not use PHP and are unaffected. There is no upstream fixed PHP release for 8.1 or earlier; distribution backports differ. The Apigee bulletin allows Sury PHP 7.4 updates for self-hosted Drupal 7 portals on Debian or Ubuntu. This is downstream scope and remediation guidance for the existing PHP2Shell CVEs, not a new vulnerability disclosure.

## CVEs

- [CVE-2026-109618](https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w)
- [CVE-2026-109619](https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp)

## Sources

1. [PHP security advisory and releases](https://www.php.net/archive/2026.php#2026-10-21-5)
2. [PHP advisory: out-of-memory corruption](https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w)
3. [PHP advisory: stale global state](https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp)
4. [Apigee GCP-2026-072: Drupal portal remediation](https://docs.cloud.google.com/apigee/docs/security-bulletins/security-bulletins#gcp-2026-072)
5. [Cloudflare: observed attack traffic and mitigations](https://blog.cloudflare.com/php-vulnerabilities-waf-protection/)
6. [Wiz: October 27 PHP2Shell exploitation attempts and exposure trends](https://www.wiz.io/blog/php2shell-exploitation-so-far)
7. [Google Cloud GCP-2026-072: October 24 PHP2Shell scope](https://docs.cloud.google.com/support/bulletins#gcp-2026-072)
