Critical PHP update (21 Oct 2026) First fixed upstream releases: 8.6.0, 8.5.13, 8.4.28, 8.3.37, 8.2.36. What to do now New (23 Oct): CVE-2026-115560

Response

Possible compromise and incident response

Page last updated: Data verified:

Contents

Upgrading closes the vulnerability, but it does not undo anything that may already have happened. This page helps you examine the exposure window carefully, without jumping to conclusions in either direction.

Documented attempts or confirmed exploitation#

  • Attempt: suspicious requests in the logs (e.g. unusual multipart requests). This shows that someone tried, not that they succeeded.
  • Indicator of success: something only a successful attacker could cause: a new PHP file in a document root, an unknown process whose parent is the PHP worker, an outbound connection from the web server to an unknown host, a new administrator in an application.
  • Confirmed compromise: a combination of indicators that has been analysed and is attributed with certainty to unauthorised access.

In the sources we checked (2 November 2026) there are attempts and successful code execution against honeypots, and on 26 October CISA added both CVEs to its KEV catalog of known exploited vulnerabilities, without disclosing details. The Unit 42 report (23 October) of a compromise at a government entity in Europe was retracted on 25 October. On 26 October Dream described a PHP2Shell and Fragnesia chain that gave root on 25 servers (mostly firewalls), including systems of a US government-affiliated organisation, and on 28 October Palo Alto Networks reported active exploitation targeting exposed PAN-OS management interfaces. On 28 October CISA also added the Linux kernel flaw Fragnesia (CVE-2026-46300) to KEV, noting that it is chained with PHP2Shell, and on 29 October Unit 42 said it had independently verified the attacker’s tooling and the results Dream described, tying the campaign to exposed PAN-OS management interfaces. Because successful exploitation gives code execution as the PHP worker user, rotating the secrets that user could reach remains important on systems that were exposed. Sources: Amazon Web Services · watchTowr · Unit 42 (Palo Alto Networks) · CISA · Dream · Palo Alto Networks

What to examine#

Web server access logs#

  • POST requests with Content-Type: multipart/form-data to pages that do not normally accept uploads, especially when followed by HTTP 500.
  • Many consecutive requests from the same source in a short period, with failures.
  • Requests containing the PHP_SESSION_UPLOAD_PROGRESS field. AWS recommends searching for it in form POSTs. Access logs usually do not record request bodies, so this requires a WAF or application logs.
  • Unusually large or malformed PHPSESSID cookies in responses, if these are logged (Wiz mentions this as an indicator of the memory disclosure path).

Read-only: changes nothing

# Example (Apache combined log): POSTs answered with 500, from 17/10 onwards
grep -h '"POST ' /var/log/apache2/*access*.log* 2>/dev/null | awk '$9 == 500' | tail -100

# cPanel: per-domain logs are usually in /usr/local/apache/domlogs/ or /etc/apache2/logs/domlogs/
ls -la /etc/apache2/logs/domlogs/ 2>/dev/null | head

PHP and PHP-FPM logs#

  • Allowed memory size of … exhausted messages in places or at times not explained by normal usage.
  • FPM messages about workers terminated by a signal (e.g. SIGSEGV, exited on signal 11) or about frequent restarts.
  • Early warnings about INI settings, or fatal errors in unusual places.
# PHP-FPM: workers terminated by a signal
grep -hE 'exited on signal|SIGSEGV|SIGBUS' /var/log/php*-fpm.log* /var/log/php-fpm/*.log* 2>/dev/null | tail -50

# Memory exhaustion in the error log
grep -rhE 'Allowed memory size of [0-9]+ bytes exhausted' /var/log/ 2>/dev/null | tail -50

System and files#

  • New or modified .php files in document roots, especially in uploads, cache or tmp folders.
  • New cron jobs, especially for the web server user or the site users.
  • Unknown processes whose parent is a PHP worker or the web server (shells, curl/wget, miners).
  • Outbound connections from the web server user.
  • New accounts or SSH keys, particularly an .ssh folder or authorized_keys file in the home of the user PHP runs as. GreyNoise recorded such steps in a session on 29 October against one of its own sensors. A key like this gives access that survives the upgrade.
  • Access to the cloud metadata service (instance metadata, usually 169.254.169.254), on servers running in a cloud. The same session included such queries. This usually leaves no trace on the server, so check your provider’s audit logs for unusual use of the machine’s credentials (instance role, service account).
# PHP files changed after 17/10/2026 in document roots (adjust the path)
find /home/*/public_html /var/www -type f -name '*.php' -newermt '2026-10-17' 2>/dev/null | head -200

# Processes whose parent is PHP-FPM, lsphp or Apache and which are NOT themselves PHP/Apache
ps -eo pid,ppid,user,comm --forest | grep -A4 -E 'php-fpm|lsphp|httpd|apache2' \
  | grep -E '\\_ (sh|bash|dash|curl|wget|nc|ncat|socat|python[0-9.]*|perl)$'

# authorized_keys changed after 17/10/2026. On cPanel, PHP usually runs as the account user.
# A legitimate key change will also show up, and an attacker can alter the date: compare with the keys you know.
find /home/*/.ssh /var/www /usr/share/httpd /var/lib/nginx -name authorized_keys -newermt '2026-10-17' 2>/dev/null

# Cron jobs for all users
ls -la /var/spool/cron/ /var/spool/cron/crontabs/ 2>/dev/null

# Current outbound connections and their processes
ss -tnp state established 2>/dev/null | head -50

For WordPress: verify checksums with WP-CLI and list administrators. See the WordPress guide.

Sources: Wiz Research · Amazon Web Services · watchTowr · Canadian Centre for Cyber Security · GreyNoise

What the indicators mean, and what they do not#

Worker crashes, memory errors and HTTP 500s are consistent with an exploitation attempt, because the attack relies on triggering fatal errors. On their own, however, they do not prove an attack. The same messages are caused by heavy imports, badly written plugins, bots uploading large files, or simply a low memory_limit.

Conversely, their absence does not prove there was no compromise: logs may not record request bodies, may have been rotated, or may have been deleted. Exploitation happens below the application layer, so application logs often contain nothing relevant. A successful attack may also leave few traces. Memory disclosure in particular may leave nothing on disk.

Preserving evidence#

Before making changes to a system under suspicion:

  1. Keep copies of the logs (web server, PHP, FPM, auth, system) on another system, together with a hash (e.g. sha256sum).
  2. Record the current state: process list, network connections, cron jobs, users, recently modified files.
  3. If possible, take a snapshot of the disk or VM before cleaning up.
  4. Do not delete suspicious files before copying them for analysis.
  5. Note what you did and when (time and time zone).

watchTowr and the NCSC recommend preserving logs, configuration and suspicious files before making changes, and checking for backdoors before upgrading systems that could not be patched immediately. Sources: watchTowr · UK National Cyber Security Centre

Isolation and escalation#

When there is serious suspicion (e.g. an unknown PHP file that executes commands, or an outbound connection to an unknown host):

  • Isolate the system from the network or restrict outbound traffic, without powering it off if you need memory analysis.
  • Inform your security lead, your hosting provider and, where required, the data owner.
  • If personal data is involved, check with your data protection officer whether there is a notification obligation (for organisations in Greece, to the Hellenic Data Protection Authority; otherwise, your national data protection authority).
  • For incidents affecting organisations and businesses in Greece, notifying the Greek National Cybersecurity Authority or the relevant CSIRT may be relevant, depending on your organisation’s status.
  • If you lack the expertise, engage a specialist incident response team.

Rotating secrets, tokens and passwords#

The decision depends on the exposure:

SituationRecommendation
Patched before 17 October, or not exposed to the internetNo immediate need; follow your normal policy.
Vulnerable and exposed, with no indicatorsConsider rotating the most critical secrets: payment API keys, database passwords, SMTP, application secrets (e.g. APP_KEY, WordPress salts). Memory disclosure may leave no traces.
Indicators of successful exploitationTreat all secrets accessible to the PHP user as exposed: database passwords, API keys, OAuth tokens, TLS certificates/keys, user sessions, administrator passwords and, in a cloud, the machine’s credentials (instance role, service account). Rotate them once the system has been cleaned or rebuilt.

After a confirmed compromise, the safest course is usually to rebuild the server from a clean source and restore data from a backup taken before the compromise, rather than “cleaning” it in place.