PHP2Shell is a pair of critical flaws in PHP itself, disclosed on October 21, 2026, that can let an unauthenticated attacker run code on a web server. The flaws affect essentially every PHP version in use, back to PHP 5.4. The fix is a PHP update: the four fixed releases are the supported branches that received an official fix. We help you find every place it applies, patch it, and prove it worked.
You may not need us. Most teams can answer this themselves in a few minutes. Here is how.
Find your PHP version
Run php -v on the server, check your host's control panel, or ask your host. For web traffic, the version that matters is the one serving requests (PHP-FPM or mod_php), which can differ from the command line one. Our per-platform cheat sheet shows where to look on common hosts and servers.
Compare it to the fixed releases
The fixed releases are 8.5.12, 8.4.27, 8.3.36 and 8.2.35. If you run one of those, or newer in the same branch, you are patched for PHP2Shell. One narrow case stays open until the next regular release: if your application switches session.serialize_handler at runtime before session_start(), also set session.upload_progress.enabled=0. php.net calls that setup unlikely in practice. Source: PHP security advisory, PHP downloads, php.net, October 23, 2026
On a managed host? Ask them
Most major managed WordPress hosts have now patched, as of October 22, 2026, so ask yours to confirm it has applied the October 21 PHP security release. Linux distributions often backport the fix without changing the version number you see, so an older-looking number is not proof you are exposed. Ask your host or vendor.
On PHP 8.1 or older?
The PHP project no longer ships releases for those branches, though it has published minimal source-only backports for 7.4, 8.0 and 8.1 for people who build PHP from source. For everyone else, you need an upgrade to a supported version, or a backported fix from your Linux vendor or an LTS provider. That is an upgrade project, not a patch. Source: PHP supported versions
Can't update today?
PHP's advisory lists temporary configuration mitigations. They reduce exposure, but in PHP's words, only an update is a complete solution. Source: PHP security advisory
Check for signs of compromise
The UK National Cyber Security Centre also recommends checking systems for signs of compromise before or while you patch. Source: UK NCSC
CISA advises watching for PHP worker processes that launch shells or download tools, and its alert now includes a SIGMA detection rule for your log sources. Source: CISA
CISA added both CVEs to its Known Exploited Vulnerabilities catalog on October 26, 2026. As of October 27, Wiz reports a limited number of exploitation attempts and no successful end-to-end exploit in its own telemetry, while partners have shared private exploits that work. Assume you are being probed. Source: CISA, Wiz
Patched already, or your host has it covered? Good. You are done with PHP2Shell. If you would rather hand it off, or you are not sure, that is what we are for.
During a security incident, do not download and run tools from people you do not know. That includes us. Nothing on this site asks you to install or run anything. The checker below runs in your browser and needs no download or install.
If someone emails you a "scanner" for PHP2Shell, treat it with suspicion. The steps above use only what your server, your host, and php.net already give you.
Within a day of disclosure, fake proof-of-concept exploits carrying malware were being published on GitHub under the PHP2Shell name, and Tenable warns that unverified exploit code is sometimes laced with malware. Source: SecurityWeek, reporting JFrog, Tenable
Contact your host through its control panel or a number you already have, not through a link in an email about this bug. Real providers almost never email you a patch to run.
Version checker
Paste your version, get an answer
Paste the output of php -v, or just a version such as 8.3.12. This runs in your browser; there is nothing to download or install.
The checker needs JavaScript. Without it, compare your version with the fixed releases in step 2 above.
This looks like a Linux distribution package. Distributions often backport security fixes without changing the upstream version number, so this package may be patched even though the number looks old. Check your distribution's security advisory for the PHP package.
Linux distributions such as Debian, Ubuntu, and Red Hat Enterprise Linux and its derivatives often backport security fixes without changing the upstream version number, so a distribution package can be patched while showing an older version. For those, check the distribution's security advisory for the package.
The command line php -v can differ from the PHP that serves web requests (PHP-FPM or mod_php). Check the one serving the site.
PHP2Shell is a flaw in PHP, not in your application, and it affects PHP wherever it serves web requests: PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed. Wiz Research demonstrated it against the latest WordPress, Drupal and Joomla container images; the flaw is in PHP itself, not the application. The PHP project's advisory confirmed unauthenticated code execution against Apache mod_php, rates PHP-FPM susceptible from source analysis, and describes FrankenPHP and LiteSpeed as likely affected. Treat all of them as exposed until patched. Source: Wiz Research, PHP security advisory GHSA-w8hw-w9fx-j79w
01
Find
We inventory every place PHP serves web traffic, including the ones nobody remembers.
02
Patch
We update to the fixed release or a supported version, then restart every worker so the new build is the one running.
03
Verify
We confirm the fixed build is what actually serves traffic, smoke-test the app, and take a quick look for signs of compromise.
04
Report
You get a prioritized list of other findings we came across: outdated runtimes, dependencies, risky configuration.
If we find evidence of compromise, we stop, tell you right away, and scope incident response separately.
Pricing
Fixed fees, agreed up front
Pick the scope that fits. You know the price before we start.
Single App Patch
$2,500 fixed fee
One PHP application or server already on PHP 8.2 or newer.
Confirm exposure
Patch, restart, verify
Smoke test
Quick compromise check
One-page summary
Starts within 1 business day. Typically done in 1 to 2 business days.
The fixed fee is agreed before we start. Incident response, if needed, is scoped separately. PHP 8.2 leaves security support on December 31, 2026, so 8.2 sites get a note to plan an upgrade.
How it works
Four steps, typically within days, not weeks
A 15-minute call
We confirm scope and pick a tier together.
Access
You grant the access we need, ideally to staging first.
Patch and verify
We do the work and confirm the fix is live where it matters.
Report and handoff
You get a summary of what we changed and checked, and the findings report on the Estate tier.
FAQ
Common questions
Does my WordPress hosting cover me?
Often yes: most major managed WordPress hosts have now patched, as of October 22, 2026, so ask yours to confirm it has applied the October 21, 2026 PHP security release. If it has, you likely do not need us for this. Hosts and Linux distributions often backport the fix without changing the version number you see, so an older-looking number is not proof you are exposed. There is a maintained list of host statuses, a third-party list we do not verify. Plugins and themes are a separate question.
What if we're on PHP 7?
PHP 7, 8.0 and 8.1 get no official release from the PHP project, although it has published minimal source-only backports for 7.4, 8.0 and 8.1 for people who build PHP from source. For a packaged install, your options are a backport from your Linux vendor or an LTS provider, or an upgrade to a supported PHP version. That is an upgrade project, not a patch. We scope upgrades on a free call and quote a fixed fee.
Do you need production access?
Not always. We prefer to start in staging, and we can work alongside your team or hand you exact steps to run. To verify the fix where it matters, we need some way to see what production is running.
What do we get at the end?
Patched and verified systems, a short summary of what we changed and checked, and on the Estate tier, a prioritized report of other findings in plain language.
What if you find we were already compromised?
We stop, tell you immediately, and help you decide next steps. Incident response is scoped separately.
About Facet
Senior engineers who keep web apps running
Facet Digital is a software consultancy that builds and maintains web applications for businesses. The people who answer your call are the senior engineers who do the work. Learn more at facetdigital.com.
Not sure where you stand?
A 15-minute call is enough to tell whether you need us. If you do not, we will say so.
Wiz has seen a limited number of exploitation attempts and no successful end-to-end exploit in its own telemetry; a week after disclosure, fewer than 53% of initially affected organizations were still vulnerable.
CISA now lists CVE-2026-109618 and CVE-2026-109619 as exploited in the wild and has updated its PHP alert; U.S. federal agencies must patch by October 29.
Windows builds 8.5.12-1, 8.4.27-1, 8.3.36-1 and 8.2.35-1 bundle a fixed Brotli for CVE-2026-111497, reachable through cURL only when automatic response decompression is turned on; the PHP version number does not change.
A narrow follow-on case, CVE-2026-115560, remains even on the fixed releases when an application switches session.serialize_handler at runtime with upload progress enabled; php.net calls it unlikely in practice and suggests session.upload_progress.enabled=0 until the next regular release.
Public exploits do not work against a default PHP install and most need an existing file-inclusion bug, so mass exploitation now looks less likely than feared; update everything anyway.
CISA urges immediate updates to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 and advises taking PHP systems on 8.1 or older, or that cannot be patched, offline.