Are you exposed to php2shell?
Two critical, unauthenticated remote-code-execution flaws in PHP core, reachable by a plain HTTP request before your application code runs. Enter the PHP version you run to see whether it falls in the affected range.
Fixed versions by branch
| PHP branch | Status | First safe version |
|---|---|---|
| 8.5.x | Affected below fix | 8.5.12 |
| 8.4.x | Affected below fix | 8.4.27 |
| 8.3.x | Affected below fix | 8.3.36 |
| 8.2.x | Affected below fix | 8.2.35 |
| 7.4 – 8.1 | Affected | source backport only |
| 5.4 – 7.3 | Affected · end-of-life | no fix |
If you install PHP from a Linux distribution or an LTS vendor, the version number may not change — distros backport the fix. Check your vendor’s advisory for CVE-2026-109618 / CVE-2026-109619 and the package changelog.
If you can’t patch immediately
Patching is the only complete fix. These reduce exposure until you can update — they do not make an install safe. Restart all PHP workers after any change.
CVE-2026-109618
Memory corruption during out-of-memory handling. Set memory_limit=-1 where applications can’t override it.
CVE-2026-109619
Use-after-free from state left between requests. Set session.upload_progress.enabled=0; on PHP 8.5 also fatal_error_backtraces=0.
Isolate internet-facing apps if they can’t be updated and verified. CISA advises taking PHP systems offline if they run 8.1 or earlier and can’t be patched.
How to find your PHP version
- 1On the serverRun
php -v, or for the web SAPIphp-fpm -v. These report the exact build that serves requests. - 2From a phpinfo pageA temporary
<?php phpinfo();page shows the version and thesession.upload_progresssetting. Remove it afterwards — it leaks configuration. - 3Response headersIf
expose_phpis on, theX-Powered-By: PHP/8.x.yheader reveals it. A missing header does not mean you’re safe — it’s often hidden.
Advisory sources. Fixed versions and affected ranges per the PHP security team and vendor analyses. Verify against the official PHP advisory on php.net before relying on this. For the wider picture, see the exploited-vulnerabilities desk.