Check your version

PHP version October update Update to at least
8.5 8.5.12 8.5.13
8.4 8.4.27 8.4.28
8.3 8.3.36 8.3.37
8.2 8.2.35 8.2.36

These are the version numbers used by the PHP project. Ubuntu, Debian, Red Hat and other vendors may add a fix without changing to the same number. Check your vendor's advisory for each CVE. Do not rely only on the version that PHP shows.

PHP 8.1 and older no longer get normal updates. The PHP project released source code fixes for 7.4, 8.0 and 8.1, but not ready-to-install files. Move to a supported version, or use a vendor that still provides security fixes.

What changed

There are four main CVEs to track:

CVE Affected What to know
CVE-2026-109618 Versions before the October fixes First PHP2Shell flaw. Linked to running out of memory
CVE-2026-109619 Versions before the October fixes Second PHP2Shell flaw. Its first fix was incomplete
CVE-2026-129481 8.3, 8.4 and 8.5 Follow-up for CVE-2026-109619
CVE-2026-129182 8.5 only Follow-up for CVE-2026-109619

All four have a CVSS v4.0 score of 9.2. The first two can let an attacker run code as the web server user without logging in. Attack attempts were seen from at least 17 October, before the flaws were made public. As of 19 November, Sophos had seen no reports of attacks using the two follow-up flaws.

PHP 8.2 is not affected by the two follow-up flaws. The November release still fixes other security problems, so update to 8.2.36.

Sophos says servers that use Apache mod_php are at the highest risk. PHP-FPM, php-cgi, FrankenPHP and LiteSpeed are affected too.

Check the PHP your website uses

php -v shows the version used on the command line. Your website may use a different one. Start by finding the PHP processes that are running:

Examplebash
ps -eo pid,user,args | grep -E '[p]hp-fpm|[p]hp-cgi|[a]pache2|[h]ttpd|[f]rankenphp|[l]shttpd'

Then check the version of the program you found. Its name and location may be different on your server:

Examplebash
/usr/sbin/php-fpm8.4 -v

Apache mod_php runs inside Apache, so you will not see a separate PHP process. Check the module package and your vendor's advisory. For containers, check the image that is running now, not only the latest version of your Dockerfile. Restart PHP or the web server after each update. For a container, replace it with one built from the updated image.

If you cannot update today

Sophos lists several temporary measures. None of them replaces the update.

  • Take the site offline, or require people to sign in before they can reach it. This check must happen before requests reach PHP.
  • If the site does not need file uploads, set file_uploads = Off. Also block multipart/form-data requests before they reach PHP.
  • For CVE-2026-109618, Sophos lists memory_limit=-1. This removes PHP's own memory limit. Set limits for the container or service first, or one request could use all the server's memory.
  • On PHP 8.5, use fatal_error_backtraces=0 for CVE-2026-129182.
  • With PHP-FPM, pm.max_requests=1 blocks the demonstrated attack for CVE-2026-129481, but it makes the server slower.
  • You can also use session.upload_progress.enabled=0, but it does not fix CVE-2026-129481.

Restart PHP and check the settings used by your website. The command line may use a different settings file. If you make a phpinfo() page for this, limit who can open it and delete it when you finish.

Look for past attacks

Updating PHP does not remove an attacker who is already inside. Sophos recommends checking logs from 1 August 2026 onwards for:

  • File upload requests to pages that should not accept uploads.
  • Requests that contain PHP_SESSION_UPLOAD_PROGRESS.
  • Memory errors or PHP process crashes.
  • Command shells or download tools started by PHP or the web server.
  • New or changed PHP files in website folders.
  • Unexpected outgoing connections and admin logins.

None of these signs proves an attack by itself. Look at them together. If you find one, save your logs before you rebuild the server.

What scanners can and cannot find

Container scanning can report old PHP packages if its data includes these CVEs and any fixes added by your vendor. SCA checks Composer packages, so it does not usually check PHP itself. SAST checks your own code, and these flaws are inside PHP. Your scan reports can show no problems even if your server is at risk.

Run your scans again after the vulnerability data is updated. If you marked PHP2Shell as fixed in October, open it again and check for the November CVEs.

Check the images that run your PHP apps

AquilaX checks container images for known package vulnerabilities. Included in Premium and Ultimate.

See container scanning →