PHP2Shell.fyi Check a site

MediaWiki and PHP2Shell

PHP2Shell is two serious flaws in PHP, the language MediaWiki runs on. A MediaWiki update leaves PHP as it is, so it does not fix them. Update PHP on the server, then restart PHP.

Last reviewed . Rules of .

What to do

  1. Find the PHP version that serves your site (see below).
  2. Update PHP to a fixed release that your MediaWiki version supports: 8.3.36, 8.4.27 or 8.5.12 for MediaWiki 1.46; 8.2.35 or 8.3.36 for 1.45 and 1.43. Later releases in the same branch also work.
  3. Restart PHP-FPM or your web server.
  4. If your host runs PHP for you, ask them to do this and to confirm the version.

What the checker can see

The checker reads one ordinary page of your wiki. For MediaWiki it looks for:

The MediaWiki version does not change the result. Only the PHP version does.

Where to see the PHP version

Open the page Special:Version on your wiki. The Installed software table has a row for PHP. It shows the PHP version and, in brackets, how PHP runs, for example fpm-fcgi.

That is the PHP that serves your wiki pages, and the one that matters. If the row shows only the branch (for example 8.3) and not the full version, check the version on the server or ask your host.

Supported PHP versions

MediaWiki data from the mediawiki.org version lifecycle and PHP compatibility pages. Fixed releases from php.net.
MediaWikiStatusPHP rangeSupport endsFixed PHP releases in range
1.46Current stable8.3 – 8.5July 20278.3.36, 8.4.27, 8.5.12
1.45Legacy stable8.2 – 8.3December 20268.2.35, 8.3.36
1.43Long-term support8.1 – 8.3December 20278.2.35, 8.3.36

How to update PHP

Notes

Sources

Check your site

The checker reads one ordinary page of your wiki and shows the public PHP signals it found. It sends no attack traffic.

Check my site