PHP security update
Last updated: (UTC)

PHP2Shell: understand the PHP vulnerability

PHP2Shell (CVE-2026-109618 / CVE-2026-109619) is a critical PHP vulnerability. Check your PHP runtime, confirm the vendor package, and apply the PHP security update to address PHP RCE.

PHP2Shell · CVE-2026-109618 / CVE-2026-109619 · PHP RCE · PHP security update

Update the runtime serving your website

The PHP vulnerability fix is available upstream in 8.5.12, 8.4.27, 8.3.36, 8.2.35. Distribution package numbers may differ. Use the platform guide and compare the complete revision.

Check your pasted version →

Two advisories, one update task

CVE-2026-109618: RCE via OOM corruption

The PHP project rates this issue Critical. Apply a runtime update that covers both published advisories. This guide focuses on choosing and verifying that update.

CVE-2026-109619: RCE via stale global state

The PHP project rates this issue Critical. Apply a runtime update that covers both published advisories. This guide focuses on choosing and verifying that update.

Who needs to update?

The PHP announcement covers installations serving web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. PHP identifies mod_php as the highest-risk configuration. Do not infer safety from the application framework or hosting panel alone.

Fixed releases & supported branches

PHP branchPHP2Shell fixLatest stableActive support untilSecurity support untilUpstream status
PHP 8.6Not confirmed8.6.02028-12-312030-12-31Active support
PHP 8.58.5.12 ↗8.5.132027-12-312029-12-31Active support
PHP 8.48.4.27 ↗8.4.282026-12-312028-12-31Active support
PHP 8.38.3.36 ↗8.3.372025-12-312027-12-31Security fixes only
PHP 8.28.2.35 ↗8.2.362024-12-312026-12-31Security fixes only
PHP 8.1No upstream release8.1.34Ended2025-12-31End of life
PHP 8.0No upstream release8.0.30Ended2023-11-26End of life
PHP 7.4No upstream release7.4.33Ended2022-11-28End of life

Branch status checked at 2026-12-05 01:02:16 UTC. PHP support policy ↗

For branches older than those listed above, consult the PHP end-of-life table and your vendor's support policy.

Older branches need a vendor decision

The PHP project no longer publishes releases for its end-of-life branches. It has provided minimal source backports for vendors. Confirm a vendor package for this PHP vulnerability and schedule migration to a supported branch.

If you cannot update immediately

Temporary mitigation is not a complete fix. A PHP vulnerability affecting web requests needs a verified runtime update. Have your administrator assess the availability and operational impact of these measures.

Disable session upload progress before request parsing

session.upload_progress.enabled = Off

Set this in the configuration used by the website runtime, before request parsing, then restart every serving PHP worker. Do not rely on application-level configuration changes or FPM per-directory overrides. Disabling it removes PHP's built-in session upload-progress feature.

Blocks the confirmed session upload-progress paths of CVE-2026-109619 only. It does not fix CVE-2026-109618 or every stale-state path. Test the application after changing configuration. A successful configuration check does not demonstrate that exploitation is impossible.

What about the other session settings?

The cleanup, strict-mode, cookie-only and HttpOnly settings sometimes shared alongside this measure concern session housekeeping or general session hardening. PHP's advisory does not identify them as fixes for these two vulnerabilities. Do not mark a server patched after applying that five-line snippet.

  • For the out-of-memory PHP vulnerability, the advisory describes administratively removing the memory limit and restricting request sizes. Removing the memory limit can exhaust host resources and is still incomplete.
  • For the branch covered by the advisory, PHP also lists disabling fatal-error backtraces. Correct recurring startup configuration warnings and restart all workers.
  • Read the exact settings and limitations in the PHP security advisory before making further configuration changes.

Checked at 2026-10-21 23:25:00 UTC. PHP stale-state advisory: mitigation limits ↗ PHP session configuration reference ↗

Verify the PHP security update

Confirm the package source, complete revision and web runtime. Restart all serving workers. A pasted version is useful evidence for this PHP vulnerability, but it cannot prove the state of every running worker. The optional online tool reads only a public header after human verification and server-side rate limits.

Runtime verification guide →

Release timeline

The PHP project published the security announcement on 2026-10-21. Package and image publication can follow at different times; each platform row carries its own checked-at timestamp.

About this guide and the PHP2Shell name

PHP2Shell is the shorthand used here for the two linked CVE advisories. This independent PHP vulnerability guide links to PHP and vendor documentation, records check times, and keeps uncertain package states explicit.

Sources & verification