Fixed releases available for PHP 8.2–8.5 Independent community resource · facts verified 22 Oct 2026

PHP2Shell checker / php2shell vulnerability

PHP2Shell vulnerability: what it is, who is affected and how serious it is

The PHP2Shell vulnerability is two memory-safety flaws in the PHP runtime, CVE-2026-109618 and CVE-2026-109619, both rated critical (CVSS 4.0: 9.2). They can allow remote code execution on servers whose PHP serves web requests. Fixed releases are out for PHP 8.2 to 8.5, with source patches for 7.4, 8.0 and 8.1. Real-world exploitability depends on version, setup and application.

PHP2Shell.help editorsVerified Official sources ↓

What are the two PHP2Shell vulnerabilities?

Both are memory-safety bugs in PHP itself, fixed in the same releases.

Official titleCVEAdvisoryIn plain words
RCE via OOM corruptionCVE-2026-109618GHSA-w8hw-w9fx-j79wIf PHP runs out of memory while a request is still being set up, cleanup code can use half-initialised data and corrupt memory.
RCE via stale global stateCVE-2026-109619GHSA-6wmf-4rv5-p3rpAfter a request ends and its memory is freed, a worker can keep a stale reference and use it during a later request.

Each has its own page: CVE-2026-109618 and CVE-2026-109619.

Who is affected by the PHP2Shell vulnerability?

Any PHP installation that serves web requests on an unfixed version. PHP’s advisory lists PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed, and rates the risk highest for mod_php, where a demonstrated exploit runs before any application code. The original research reports that at least one of the flaws reaches back to PHP 5.4.

How PHP runsAffectedNotes
Apache mod_phpYesHighest risk according to PHP
PHP-FPM (Nginx and most modern hosting)YesNginx or FPM is not an exemption
php-cgi / FastCGIYes
FrankenPHPYes
LiteSpeedYes
Command line onlyNot statedPHP’s warning concerns web requests; a CLI-only setup isn’t proof the binary lacks the flaws, so update anyway

PHP 8.1 and older get no new releases; PHP published minimal source patches for 7.4, 8.0 and 8.1 only. The fixed releases are:

BranchFirst fixed release
PHP 8.28.2.35
PHP 8.38.3.36
PHP 8.48.4.27
PHP 8.58.5.12
8.1 and olderNo new release; official source patches for 7.4, 8.0 and 8.1

How serious is PHP2Shell?

Critical. Remote code execution means an attacker could run commands with your web server’s permissions: change or plant files, read configuration such as database passwords, and install a backdoor that survives the update. The research also describes a way to leak process memory. Whether a given server can be attacked still depends on its PHP version, configuration, memory layout and application.

Which governments have issued PHP2Shell warnings?

National cybersecurity agencies in Asia, Europe and North America have warned about the PHP2Shell vulnerability. Most tell organisations to update immediately; several advise taking services offline or isolating them if they can’t be patched, and some point out that PHP is also embedded in products and devices.

CountryAgencyAdvisory
United StatesNSA CybersecurityOrganizations using PHP should update immediately; if they can't, consider taking affected services offline.
United StatesFBI Cyber DivisionTake systems offline if you can't update now; inventory PHP, watch for PHP processes spawning shells, and report compromises to IC3.
United KingdomNCSCEight priority actions: find where PHP runs, update, harden, and take services offline and check for backdoors if you can't mitigate.
European UnionCERT-EUPatch immediately; if you can't, isolate internet-facing applications. Mitigations reduce exposure but only the update is a complete fix.
CanadaCanadian Centre for Cyber Security (not yet verified at the source)Advises upgrading to the fixed releases.
SingaporeCSA / SingCERTCan be exploited for unauthenticated remote code execution; patch immediately.
Japan国家サイバー統括室(NCO)Apply the PHP fix promptly; if you can't, temporarily taking the site offline is also an effective option.
Japan内閣総理大臣Urgent request: check whether you use PHP, apply the fix, consider pausing sites you can't fix, and follow NCO updates.
Japan警視庁サイバーセキュリティ対策本部Prepare to apply the PHP fix.
JapanIPA(情報処理推進機構)Inventory where PHP is used, including in products and devices, stop using unsupported versions, and apply the fix as soon as it is released.
GermanyBSIPre-release warning: unauthenticated remote code execution is likely; no confirmed exploitation at the time.
FranceCERT-FR (ANSSI)Alert bulletin: isolate affected systems and move to a supported version; temporary workarounds are not validated by CERT-FR.
SpainINCIBE-CERTCritical: lists the fixed releases and the 7.4/8.0/8.1 source backports; temporary measures are not a complete solution.
SwitzerlandBACS / NCSC.chUpdate immediately and check internal systems, admin interfaces and devices with embedded PHP.
NetherlandsNCSC-NLAdvisory plus a maintained list of products that embed PHP, referenced by CERT-EU and NCSC UK.
PolandCERT PolskaCritical PHP vulnerabilities allowing remote code execution; update immediately.
Hong Kong SAR ChinaGovCERT.HKHigh-risk security alert for multiple PHP vulnerabilities covering both CVEs.

All published on 21 Oct 2026.

Is the PHP2Shell vulnerability being exploited?

Attack attempts have been seen, but successful compromise has not been confirmed. Cloudflare reported attack traffic against its customers and attackers changing payloads to bypass its rules before the fix was released. None of the sources we checked as of 22 Oct 2026 confirms a successful takeover through PHP2Shell, which doesn’t mean no one is exploiting it. Sansec expects mass exploitation now that the patch and write-ups are public.

Repositories claiming to be working exploits have also appeared. We haven’t verified them and don’t link to them. Don’t download or run code from them.

Does PHP2Shell affect every PHP website in the same way?

No. “At least one flaw since PHP 5.4” describes where the vulnerable code exists, not proof that one attack works against every site. The CVSS scores for both flaws rate attack complexity as high and note that certain conditions must be present, and PHP rates mod_php highest risk. On the other hand, Sansec reports that researchers confirmed code execution against popular applications and that default configurations are vulnerable. The safe assumption is that an unpatched web-facing PHP is exposed.

Is PHP2Shell the same as wp2shell?

No. wp2shell is the name of a separate critical vulnerability in WordPress core, fixed by updating WordPress. PHP2Shell is in PHP itself and is fixed by updating PHP. Search engines sometimes mix up the two names, so check the CVE numbers when reading advice.

Why is it called PHP2Shell?

PHP2Shell is the name used in the original Wiz Research write-up. It describes the worst case: a request to a PHP website could end with an attacker running commands (a shell) on the server. The official advisory titles are “RCE via OOM corruption” and “RCE via stale global state”.

What should I do now?

  1. Check your PHP with the PHP2Shell checker.
  2. Update by following the PHP2Shell patch guide.
  3. If you updated late, review the check if your website is hacked guide.

Which sources support this page?

Check your PHP for PHP2Shell

Enter the version your website reports. We compare it with the first fixed release for its branch and tell you what to do next.

PHP2Shell checker →

Sources

The core facts on this page (fixed versions, CVE details, vendor packages and agency warnings) come from official sources. Research, news and community posts are labelled as such.