The PHP hole only an update closes
If your site, API or admin panel runs on PHP and nobody has updated PHP on the server since 21 October 2026, it can be hacked with a single request, no login or password needed. The hole is in PHP itself, not in WordPress, Laravel or the code the agent wrote. The attack fires while PHP is parsing the incoming request, before your code even starts, so no checks inside your app protect against it.
On 21 October 2026 the PHP team released out-of-band versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35 to fix two vulnerabilities, CVE-2026-109618 and CVE-2026-109619, known together as PHP2Shell. Attacks started before the fixes came out: Amazon reported that it saw the first attempt on its honeypots on 17 October. According to Reuters on 23 October, some government and hospital sites in Europe and online services of several Japanese ministries and banks were taken offline for a while. On 26 October the US agency CISA added both vulnerabilities to its catalog of actively exploited ones.
According to the PHP team, everything that serves web requests is affected: Apache with mod_php, PHP-FPM, php-cgi, FrankenPHP, LiteSpeed. Branches 8.2 to 8.5 are vulnerable below the versions above. PHP 8.1 and older are vulnerable too, and there will be no official fixes for them.
First check: which PHP actually serves your site. Running php -v in the console can show one version while requests are handled by another, through PHP-FPM or mod_php. A more reliable way is to temporarily put a file that prints PHP_VERSION in the site root, open it in the browser and delete it right away. On hosting with a control panel, the version is in the site's PHP settings. Go through every place you have PHP this way: production, staging, old subdomains, admin panels.
Second check: where this PHP came from. If it is from php.net or built from source, you need at least the versions above. If it comes from Ubuntu or Debian packages, the version number can stay old, because distributions backport the fix into their own build. Then look at the security notices: USN-8948-1 for Ubuntu, DSA-6574-1 for Debian 13, DLA-4848-1 for Debian 12. Usually apt update and apt upgrade are enough. On shared hosting, PHP is patched by the host, and the easiest way is to ask support directly whether CVE-2026-109618 and CVE-2026-109619 are fixed on their side.
Third check: Docker. Updating the server does nothing here, PHP lives inside the image. The official php images have already been rebuilt, but if your Dockerfile pins an exact tag like php:8.4.26-fpm, it will stay vulnerable. Change the tag, rebuild the image with the --pull and --no-cache flags and recreate the containers. For PHP 8.1 and older there are no fixed official images.
Fourth check: logs. Amazon recommends looking at them from at least 17 October. Out-of-memory errors marked in Unknown on line 0 are suspicious, especially several in a row, and so are Segmentation fault messages in the Apache log. Direct signs of a break-in: a shell, curl or wget started by the web server user, new PHP files in the uploads folder, a changed .htaccess. A successful attack does not necessarily break the site: in Datadog's tests the exploit returned a normal 200 response.
The order of work is this. First the update. On PHP 8.1 and older, that means either a backported fix from your distribution or moving to a supported branch, and it is better to go straight to 8.4 or 8.5, because 8.2 only gets security fixes until 31 December 2026. Then restart everything that runs PHP and check the version again: the new package does not work while the old processes are still alive. If you cannot update today, turn off session.upload_progress.enabled in php.ini or in the FPM pool; setting it with ini_set will not work. The PHP team says plainly that such measures lower the risk but do not make the server safe.
If you found traces in the logs, the update alone is not enough. It is safer to redeploy the server from a clean source and replace every secret PHP had access to: the database password, API keys, tokens.
The update itself is short. What usually takes longer is finding every place PHP really runs, dealing with old pinned images and carefully reading the logs for the last two weeks.