GCP-2026-090 — A critical vulnerability was discovered in PHP's default file-based session handler.
🔗 CVE IDs covered (1)
📋 Description
Published: 2026-11-20 Description 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