What PHP is. The PHP manual describes PHP as “a widely-used open source general-purpose scripting language that is especially suited for web development.” It runs on the server that builds your pages. Wiz notes that WordPress, Drupal and Joomla run on PHP, so this may apply to you.
What happened. On October 21, 2026 the PHP project published a security advisory and released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 to fix two security flaws. It encourages all PHP users to update, calling an update the only complete fix. Our news story explains how AI helped find the flaws.
Before you begin: you only need to read a version number, not edit any settings.
If a hosting company runs your site
- Look in your hosting dashboard for a PHP version setting or a server information page.
- Or ask support. PHP’s advisory says the groups that package the Linux operating system for servers, and companies that maintain older versions, got the fixes in advance. Your host may use one of their ready-made copies of PHP, so the version number alone may not show whether it includes the fix.
What to ask your host
- “Does my site run a PHP version that includes the fixes from the PHP project’s October 21, 2026 security advisory?”
- “If my site uses PHP 8.1 or older, do you provide backported fixes, or should I move to a supported version?” The PHP project no longer updates 8.1 and older; a backported fix is one copied into an older version.
If you manage your own server
- In a terminal,
php -vprints the PHP version. That is the terminal copy, which may differ from what your web server uses. - A one-line file on your site containing
<?php phpinfo();shows the PHP version and configuration your web server is using. It also reveals server details, so delete it afterwards. - Update through your Linux distribution’s packages, or PHP’s downloads page if you build PHP yourself.
Our tip: If unsure, don’t edit server settings on your own. PHP’s advisory lists temporary settings for people who can’t update yet, and says they reduce exposure but “do not make an installation safe.” Ask your host.
Sources
- PHP.net, 21 Oct 2026 security advisory: fixed versions, suppliers.
- PHP manual: what PHP is, phpinfo and command-line options: definitions, version checks.
- Wiz Research, PHP2Shell: software built on PHP.
All accessed 2026-10-27.
— Cases4AI, powered by AIRVX