PHP2Shell (CVE-2026-109618 / CVE-2026-109619): Am I affected?
- What: two critical vulnerabilities in the PHP core (CVE-2026-109618, CVE-2026-109619), CVSS 9.2 – unauthenticated code execution possible.
- Affected: every PHP installation serving web requests below 8.5.12, 8.4.27, 8.3.36 and 8.2.35.
- PHP 8.1 and older: end of life – no official fix.
- Status: actively exploited – first successful attacks since 24 Oct, listed in CISA KEV since 26 Oct 2026.
- New (19 Nov): CVE-2026-115560 is fixed – together with further flaws in the security release of 19 Nov 2026. Current versions are 8.5.13 · 8.4.28 · 8.3.37 · 8.2.36.
- What to do: update immediately and restart all PHP processes.
What is PHP2Shell?
On 21 October 2026 the PHP project released security updates for two vulnerabilities in the PHP core that became publicly known as "PHP2Shell". Both are rated CVSS 9.2 (critical). In the worst case an attacker can execute code on the server without credentials – with the privileges of the web server or PHP process.
Details had leaked before the scheduled release, and security vendors reported early exploitation attempts. Security firms therefore recommend patching outside normal maintenance windows.
Latest developments (as of 28 Oct 2026)
| Date | What happened? |
|---|---|
| 17 Oct | Amazon observes the first exploitation attempts – four days before the patches. |
| 21 Oct | PHP releases 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Germany's BSI issues a level 3 / orange warning ("extremely high"). Many authorities, cities and hospitals take their websites offline as a precaution; most are back online on 22 Oct. |
| 22 Oct | ReliaQuest reproduces CVE-2026-109618 in the lab and publishes log indicators (see Detecting attacks). |
| 23 Oct | PHP reports another flaw, CVE-2026-115560 – fixed on 19 Nov (see below). CISA publishes a Sigma detection rule. |
| 24 Oct | First successful exploitation confirmed: honeypots running Apache mod_php with PHP 8.4.26 record 35 successful shell executions, using CVE-2026-109618. |
| 25 Oct | Targeted scans against Palo Alto GlobalProtect portals – likely to find vulnerable firewalls. |
| 26 Oct | CISA adds both flaws to its KEV catalogue (Known Exploited Vulnerabilities). US federal agencies must patch by 29 Oct. |
| 27 Oct | TU Delft counts over 50,000 exploitation requests from more than 600 IP addresses in 70 countries. CYFIRMA reports suspected North Korean scanning (Lazarus ecosystem, moderate confidence) against government, banking, logistics, aviation and manufacturing. |
Corrected reports: Palo Alto Unit 42 withdrew its claim linking an intrusion at a European government agency to PHP2Shell, and Sophos now classifies its observations as scanning and failed attempts. Successful attacks have so far mainly been confirmed on honeypots – exploitation is considered complex but feasible. Experts expect automated attacks to continue for weeks.
Who is affected?
The flaw is in PHP itself – not in a specific CMS or plugin – so secure application code does not protect you. All common ways of running PHP for web requests are affected:
- Apache with
mod_php(highest risk according to the advisory) - PHP-FPM (e.g. with nginx or Apache)
- php-cgi, FrankenPHP and LiteSpeed
Firewalls and appliances with a PHP-based web interface can be affected too, e.g. pfSense, OPNsense, Palo Alto, Check Point, Citrix NetScaler and F5 BIG-IP. How to check and update per vendor: Firewalls and PHP2Shell.
CVE-2026-115560 (fixed on 19 Nov 2026)
On 23 October 2026 the PHP project reported another code execution flaw in session handling. It affects the already patched versions too, but is only exploitable with an unusual combination – PHP itself calls it an "unlikely" attack vector:
session.serialize_handleris set tophp_binaryorphp_serializein the configuration,- the application switches it to
phpat runtime withini_set()beforesession_start(), - and
session.upload_progressis enabled (default).
Update 19 Nov 2026: the flaw is fixed in PHP 8.5.13 · 8.4.28 · 8.3.37 · 8.2.36. The update turns session.upload_progress.enabled off by default and prevents switching the handler at runtime while upload progress is on – upload progress bars may have to be re-enabled deliberately and tested afterwards. Until you update, keep session.upload_progress.enabled = 0. To check whether your own code switches the handler:
grep -rn "serialize_handler" /var/www/
Affected and patched versions
| PHP branch | Vulnerable | Patched in | Status |
|---|---|---|---|
| PHP 8.5 | < 8.5.12 | 8.5.12 | Security support until 2029-12-31 |
| PHP 8.4 | < 8.4.27 | 8.4.27 | Security support until 2028-12-31 |
| PHP 8.3 | < 8.3.36 | 8.3.36 | Security support until 2027-12-31 |
| PHP 8.2 | < 8.2.35 | 8.2.35 | Security support until 2026-12-31 |
| PHP 8.1 and older | all versions | – (no official fix) | End of life |
For PHP 7.4, 8.0 and 8.1 only limited source backports exist in the PHP project's GitHub repository – there are no official builds.
How to check whether you are affected
1. On the server
php -v
php-fpm8.3 -v # for PHP-FPM, adjust the version
Note: the command line may use a different PHP version than the web server – check the version that actually serves your website.
2. Linux distributions (backports)
Debian, Ubuntu, RHEL and others often backport fixes into older version numbers. Check whether the package changelog mentions the CVE IDs:
# Debian / Ubuntu
apt changelog php8.3-fpm | grep -E "CVE-2026-10961[89]"
# RHEL / AlmaLinux / Rocky
rpm -q --changelog php-fpm | grep -E "CVE-2026-10961[89]"
3. Shared hosting
Check the configured PHP version in your hosting control panel and switch to a current branch. Most hosts announce rolled-out patch releases on their status page.
4. From outside with PHPCheck.net
If the server exposes its PHP version in the X-Powered-By header, PHPCheck.net tells you right away whether it
is vulnerable. If the version is hidden (recommended), the patch level cannot be determined from outside.
Immediate actions
- Update to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (or your distribution's patched packages).
- Restart all PHP processes – PHP-FPM pools or Apache. Only then is the fix active.
- Replace outdated versions: migrate PHP 8.1 and older to 8.4 or 8.5.
- Verify: check the version on the server and test the website.
Temporary mitigations if you cannot update right away
The advisories list settings that reduce but do not remove the risk. They must be set at server level (php.ini, FPM pool or web server
configuration) – ini_set() or .user.ini take effect too late:
- Set
session.upload_progress.enabled = 0and restart all PHP workers – since the release of 19 Nov 2026 this is the default anyway. - On PHP 8.5 also set
fatal_error_backtraces = 0. - Limit request sizes: keep
post_max_sizelow (e.g. 8M) and restrict request sizes at the web server/proxy. - A web application firewall (e.g. Cloudflare's rules) can block known attack patterns.
If a system can neither be updated nor secured, take it offline until it can (recommended by BSI and CISA). Hiding error messages does not protect you, and missing log entries are no proof that a system was not attacked.
Detecting attacks
Typical traces of an attack on CVE-2026-109618 in the logs:
- A
POSTrequest answered with500, at the same time a PHP message about memory exhaustion or heap corruption and a crashed Apache worker (segfault). - Requests containing the
PHP_SESSION_UPLOAD_PROGRESSparameter or the markerp2s-rider. - Outbound connections from the web server via
wget,curlorphp, e.g. to paths starting withpwn-. - Known attacker addresses (as of 27 Oct):
204.76.203.7(mass scanner) and162.35.99.94(payload server, ports 80/8080).
# Debian/Ubuntu – adjust paths on other systems
zgrep -E "PHP_SESSION_UPLOAD_PROGRESS|p2s-rider|204\.76\.203\.7|162\.35\.99\.94" /var/log/apache2/*access*.log* /var/log/nginx/access.log*
zgrep -iE "segmentation fault|exit signal Segmentation" /var/log/apache2/error.log*
For SIEM systems CISA provides a Sigma rule; the Dutch NCSC maintains a continuously updated list of affected products (see sources). A match does not automatically mean a successful compromise – most requests are scans.
After updating
If a vulnerable version was publicly exposed for a longer time, review the systems for anomalies (unknown files in the web root, unusual processes, new users or cron jobs) and rotate credentials if in doubt. If there are concrete signs of compromise, involve an incident response provider.
Sources
- The Register: CISA confirms PHP2Shell under attack (27.10.2026)
- BleepingComputer: PHP2Shell now successfully exploited in the wild
- The Hacker News: PHP2Shell exploitation attempts continue
- oss-security: PHP advisory CVE-2026-115560
- NCSC-NL: php2shell – affected products and detection
- php.net – official release announcements
- Rapid7: CVE-2026-109618 and CVE-2026-109619
- Tenable: PHP2Shell FAQ
- Qualys: PHP security release
- The Hacker News: PHP emergency patches
More guides
- PHP security release of 19 Nov 2026: 8.5.13, 8.4.28, 8.3.37, 8.2.36 – who is affected?
- Java4Shell / Java2Shell (CVE-2026-114938): Am I affected?
- Security updates November 2026: Apache 2.4.71 (HTTP/2), WordPress 7.1.4, Exchange, OpenSSL
- WordPress flaw CVE-2026-119977: why the update itself is risky – and how to update to 7.1.4 safely