Security Small
Upgrade PHP for PHP2Shell
PHP2Shell (CVE-2026-109618 and CVE-2026-109619) is a remote code execution flaw in PHP itself, leaked on 20 October 2026, fixed the next day in 8.5.12, 8.4.27, 8.3.36 and 8.2.35, and exploited in the wild since. A site on an older patch release, or on PHP 8.1 or earlier, can be taken over without logging in.
Find out whether your site has this problem, and every other check, in one free scan.
Check your site freeWhy it matters
PHP2Shell lets an attacker run their own code on the server through PHP itself, and it has been exploited since October 2026, so an unpatched site can be taken over without any login.
How to fix
- 1 Upgrade PHP to the fixed release of your line (8.5.12, 8.4.27, 8.3.36 or 8.2.35); PHP 8.1 and older get no fix, so move to 8.2 or newer.
- 2 If the server ran an affected version after 20 October 2026, look for unknown files, new admin users and changed code, and rotate passwords and keys.
- 3 Set expose_php = Off so the version is no longer in the X-Powered-By header.
Common mistakes
- Upgrading the website code or the CMS but not PHP itself, which is where the flaw is.
- Staying on PHP 8.1 or older, which gets no fix at all.
- Upgrading without checking for a break-in: a server that ran an affected version after 20 October may already have been entered.
How to verify
- 1 Run php -v on the server (or check the hosting panel) and confirm the version is at or above the fixed release of its line.
- 2 Re-run the scan and confirm the PHP2Shell finding is gone.
- 3 Look for unknown files, new admin users and changed code from after 20 October 2026, and rotate passwords if anything is found.
Related checks
Ready to see where you stand?
Scan your site and get your Engineering Score with a prioritized roadmap in under a minute, no signup required.
