// Security Advisory Triage
PHP session handler RCE affects Google Cloud managed runtimes
Google Cloud security bulletins · published 2026-11-21 19:18 UTC
WHAT CHANGEDGoogle published GCP-2026-090 on 2026-11-20, disclosing CVE-2026-126714, a critical unauthenticated remote code execution vulnerability in PHP's file-based session handler. Affected versions are PHP 8.5 < 8.5.13, 8.4 < 8.4.28, 8.3 < 8.3.37, 8.2 < 8.2.36, and end-of-life 8.1 and 7.2. Impacted Google Cloud products are App Engine Standard (second-generation PHP 7.2–8.5 runtimes), App Engine Flexible, Cloud Run, and Cloud Run functions.
WHY IT MATTERSAn attacker can execute arbitrary code without authentication by triggering a partial session file write (via memory limit or timeout during upload progress tracking) and then deserializing the malformed file on a subsequent request. This affects all PHP applications using the default file-based session handler on Google-managed runtimes.
WHAT TO DOSet session.upload_progress.enabled = 0 in php.ini immediately for all PHP applications. For self-managed containers on Cloud Run or App Engine Flexible custom runtimes, upgrade to PHP 8.2.36, 8.3.37, 8.4.28, or 8.5.13, rebuild, and redeploy. For managed runtimes with automatic base image updates, apply the php.ini mitigation and wait for Google's patched runtime rollout. For pinned versions or runtimes without automatic updates, apply the mitigation and rebuild once Google publishes updated images. For PHP 8.1 or earlier, upgrade to PHP 8.2+ or apply the php.ini mitigation, as no upstream patches will be released.
Model-reported confidence 95% (not measured accuracy)
Primary source ↗
written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+## GCP-2026-090 +https://docs.cloud.google.com/support/bulletins/index#gcp-2026-090 +2026-11-21T00:05:07.650246+00:00 + +Published: 2026-11-20Description + +Description +Severity +Notes + +A critical vulnerability was discovered in PHP's default file-based +session handler. This impacts the following PHP versions: + +PHP 8.5 < 8.5.13 +PHP 8.4 < 8.4.28 +PHP 8.3 < 8.3.37 +PHP 8.2 < 8.2.36 +PHP 8.1, PHP 7.2 (end of life, no fix available) + +The following Google Cloud products are impacted: + +App Engine Standard (second-generation PHP 7.2–8.5 runtimes) +App Engine Flexible +Cloud Run +Cloud Run functions + +What should I do? + +Immediate mitigation, all PHP applications + +Disable Session Upload Progress: If your +application does not require tracking upload progress, disabling +this feature in php.ini mitigates the primary +attack path for phpAfterShell (CVE-2026-126714) in particular: +session.upload_progress.enabled = 0 +Where feasible, switch PHP session storage away from local +filesystem handlers (session.save_handler = files) +to an external store such as Redis, Memcache, or a +database. + +Self-managed containers + +Cloud Run containers and App Engine flexible custom runtimes +can upgrade immediately to upstream PHP 8.2.36, 8.3.37, 8.4.28, +or 8.5.13, rebuild, and redeploy without waiting on +Google-managed runtime rollouts. + +Managed runtimes with automatic base image +updates + +Apply the Disable Session Upload Progress mitigations +above +App Engine standard (second-generation PHP 8.2–8.5) and Cloud +Run services / Cloud Run functions with automatic base image +updates enabled will receive patched PHP runtimes automatically +once published. + +Managed runtimes without automatic updates or pinned +versions: + +Apply the Disable Session Upload Progress mitigations +above +App Engine flexible (managed PHP runtime), Cloud Run jobs and +worker pools, Cloud Functions (1st gen), and deployments pinned +to a specific patch string will need to rebuild and redeploy +once Google publishes the updated runtime images. + +End-of-life PHP versions (7.2–8.1): + +No upstream patches will be released for PHP 8.1 or earlier. +Customers should upgrade to a supported PHP runtime (8.2 or +later) or apply the php.ini / non-file session +mitigations above. + +What vulnerabilities are being addressed? +Google is preparing updates for affected managed PHP runtimes and +base images, and will update this bulletin as patched images become +available. +CVE-2026-126714 is a vulnerability in PHP's default file-based +session handler (session.save_handler = files). When PHP +writes session data (for example, during unauthenticated file upload +progress tracking), the write is not atomic. If a PHP worker stops +abruptly mid-write—such as from a memory limit or request timeout—a +partially overwritten, malformed session file can remain on disk. When +a later request calls session_start(), PHP deserializes +that file; with crafted input, an unauthenticated remote attacker can +manipulate the deserialized data to execute arbitrary code. Because +this issue stems from how session files are written to disk rather +than earlier PHP request-cleanup vulnerabilities, upgrading to a +patched PHP version or applying the session mitigations above is +required. + +Critical + +CVE-2026-126714
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.98, needed 0.55 |
|---|---|
| triage reasoning | Critical RCE in PHP session handler affecting Google Cloud managed runtimes requires immediate patching or mitigation. |
| signals | known exploitation: CVE-2026-126714 in PHP session handler · affects cloud managed runtimes: App Engine Standard, App Engine Flexible, Cloud Run, Cloud Run functions · affects customer-facing control plane: Google-managed PHP runtimes · critical severity rating · unauthenticated remote code execution · actionable mitigation and upgrade paths provided · affects runtime versions in active use (PHP 8.2–8.5) |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |