PHP2ShellAttacks began 17 Oct. Fixed builds shipped 21–22 Oct. Check your exposure

PHP versions

Which PHP version is your site running?

The latest is PHP 8.5.12. Versions 8.5, 8.4, 8.3 and 8.2 are supported and have a fix for PHP2Shell. Everything from 8.1 down has no fixed release, and anything older than 8.2 gets no security fixes at all.

Not sure what your site runs? Find out free, in under a minute.

Where you stand, by version.

PHP 8.5, 8.4, 8.3 or 8.2

A fixed build exists.

You need 8.5.12, 8.4.27, 8.3.36 or 8.2.35 or newer, and PHP has to be restarted so the new build is the one serving your site.

PHP 8.2

Fixed, but not for long.

Security fixes for 8.2 end on 31 Dec 2026. After that, the next flaw has no official fix. Plan the move to 8.3 or newer.

PHP 8.1, 8.0 or 7.4

No release. A source patch only.

PHP published minimal source patches, but no fixed release. Your site is only fixed if your host or distribution applied one. Otherwise, upgrade.

PHP 7.3 or older

Exposed, with no fix at all.

These versions are inside the reported affected range (5.4 to 8.5) and neither a release nor a patch covers them. Move to a supported version.

Supported PHP versions

VersionLatest releaseFirst releasedBug fixes untilSecurity fixes untilStatusPHP2Shell
PHP 8.58.5.1220 Nov 202531 Dec 202731 Dec 2029Fully supportedFixed in 8.5.12
PHP 8.48.4.2721 Nov 202431 Dec 202631 Dec 2028Fully supportedFixed in 8.4.27
PHP 8.38.3.3623 Nov 202331 Dec 202531 Dec 2027Security fixes onlyFixed in 8.3.36
PHP 8.28.2.358 Dec 202231 Dec 202431 Dec 2026Security fixes only, ends 31 Dec 2026Fixed in 8.2.35

Each version gets two years of bug fixes, then two more years of security fixes only, ending on 31 December.

End-of-life PHP versions

No new security fixes, ever. Every flaw found in these versions stays open. PHP2Shell is reported to affect versions 5.4 to 8.5, so all of the below are inside the affected range.

VersionLast releaseEnd of lifePHP2Shell
PHP 8.18.1.3431 Dec 2025Source patch only
PHP 8.08.0.3026 Nov 2023Source patch only
PHP 7.47.4.3328 Nov 2022Source patch only
PHP 7.37.3.336 Dec 2021No fix
PHP 7.27.2.3430 Nov 2020No fix
PHP 7.17.1.331 Dec 2019No fix
PHP 7.07.0.3310 Jan 2019No fix
PHP 5.65.6.4031 Dec 2018No fix
PHP 5.55.5.3821 Jul 2016No fix
PHP 5.45.4.453 Sep 2015No fix

“Source patch only” means PHP published minimal source patches for 7.4 to 8.1 but no fixed release, so a build is only fixed if your host or distribution applied one. Some summaries list these as “no fix”. Versions 5.3 and older are also end-of-life, and fall outside the reported affected range.

A version number can mislead

Linux distributions such as Ubuntu, Debian and the Red Hat family can apply a fix without changing the number. An “old” 8.1 may be fixed, and a “new” number can still be running old code until PHP is restarted. The number is a clue, not proof.

Check guide

How to find your version

  • Free scan: type your address above. It shows the version your server reports.
  • Hosting control panel: look for a “PHP version” setting.
  • WordPress: Tools, then Site Health, then Info, then Server.
  • Developer or server admin: ask them to run php -v.

Questions