Last Updated: 2026-10-30T18:49:49Z
What’s Happening
On 2026-10-21T07:00:00Z, PHP published an advisory about two critical vulnerabilities in PHP. CVSSv4: 9.2 for both.
These vulnerabilities is being actively exploited in the wild.
The GitHub security issue has also now been published.
PHP has also published a detailed blog post detailing the timeline of these vulnerabilities’ discovery, remediation, and disclosure.
CISA has published an advisory urging immediate patching.
The vulnerability was discovered by research firm Calif, with assistance from OpenAI as part of the Patch the Planet project. Wiz found additional attack paths, which they detail in their writeup. Briefly, both of these are use-after-free variants that lead to memory disclosure and code execution.
Public proofs-of-concept are hard to come by, especially amidst the flood of AI slop repos that do not do what they claim.
As of 2026-10-26T07:00:00Z, there are conflicting reports of in-the-wild exploitation. The Shadowserver Foundation reports no evidence of in-the-wild exploitation. On the other hand, both a recent competition honeypot and independent honeypot logs show that exploitation is possible. Interestingly, both of these targets presented nearly identical PHP configurations to attackers.
Later in the day, CISA added both vulnerabilities to the KEV list.
Further analysis of the exploits confirms earlier suspicions that exploitation requires significant prior knowledge of the target combined with active fuzzing for correct memory addresses in successful leaks, meaning this exploit remains non-trivial. And yet, the exploit is possible, so we expect to see a gradual increase in reported exploitation over the next week.
On 2026-10-28T07:00:00Z, AI Security firm Dream published a report that 25 servers, including US government assets, had been compromised with these vulnerabilities. The report includes post-exploitation behavior and refers to the targeted assets as running “a large vendor’s firewall software.” Dream attributes the attack to a China nexus threat actor, and also notes that additional Linux kernel exploits were required for compromise. Dream also notes that the first targets were compromised on 2026-10-23T07:00:00Z. This suggests we are about to see a steady stream of exploitation reports as evidence is validated and released.
Pursuant to this report on 2026-10-29T07:00:00Z, Palo Alto published a post confirming exploitation of their devices. They clarify that only approximately 0.2% of their install base has vulnerable internet-facing management interfaces, and each of those customers has been contacted. The post also has Cortex XDR queries to look for indicator of compromise.
GreyNoise has also published observables from their dataset that helpfully distinguishes exploitation attempts from successful exploitation. Only 4 of the latter are in the dataset.
On 2026-10-30T07:00:00Z, Hunt.io published a summary of observed exploitation thus far. Their findings conclude that targeted exploits against unpatched Palo Alto firewalls are among the most mature, and have the most confirmed successes.
Actions
If you are responsible for patching PHP applications/servers, prepare now for a considerable effort, especially against externally-facing assets.
For PHP 8.2 - 8.5 systems, patch to:
- 8.5.12
- 8.4.27
- 8.3.36
- 8.2.35
Older versions are not going to get a patch. You need to know where you have legacy PHP and consider shutting it down or closing access.
Linux distributions have done some backporting of patches to versions that will not match the official versions from PHP. Check your distribution’s security advisories.
Asset inventory is the most important starting point here. Begin discovery now of all PHP systems in your environment. If external assets are a challenge, consider using tools like Shodan and Censys to help figure out what you’re exposing to the internet.
Given the putative severity and the likely speed of exploitation, we recommend blocking external access to PHP applications until they are patched. At least, wherever possible to do so. And where not, consider the mitigation below.
Multiple sources are now circling around these configuration settings in the appropriate php.ini file or php.conf.d folders as mitigations:
; Immediate (does NOT fix all chains)
session.upload_progress.enabled = Off
session.use_only_cookies = On
; Ensure consistent handler across all directories
session.serialize_handler = php_serialize
This is only a partial mitigation. The only real fix is updating, as noted by a PHP core developer.
Carefully monitor logging from PHP applications and servers.
Observables
We have analyzed multiple PoCs (and built some) to get as wide a set of likely observables as possible. These vary in difficulty to observe. We will list them as such.
Easy
Giant session files: If PHP is configured to save sessions to disk (not as common anymore, with Redis and memcached), then a file write to that location > 100kb is a sign the session contains serialized data from the attacker. Check session.save_path for the appropriate path.
Suspicious process execution as children of the web server process or as the web server user: This should already be an endpoint detection rule, but nevertheless, watch auditd and other sources for www-data running /bin/sh, id, etc. Alternatively, watch for processes with the web server process as the parent.
Medium
Multiple rapid POST requests to the same endpoint from the same source: The “heap spray” component of exploitation will result in a burst of POST requests, and specifically HTTP 500s alternating (maybe) with 200s. One of the 200s will have an abnormally large response size. Which leads us to…
HTTP 200 with an abnormally large response size: HTTP access logs in the Common Log Format will show this without additional configuration, but you might need to do some analysis (gasp!) on the logs to determine the baseline response size range for each endpoint to find outliers. You’re looking for a response size >1MB.
** PHP fatal error in Apache/PHP error log: This is in Medium because while looking at /var/log/php/error.log is easy, you likely aren’t ingesting it into the SIEM. Same might be true for the HTTP access logs, but those are more likely. Exploitation results in lines with Allowed memory size of N bytes exhausted with in Unknown on line 0. Easy strings to hunt.
Hard
These are going to require visibility into incoming HTTP headers and request bodies. So either through your own reverse proxy, WAF, or TLS decryption. This is not common, but these observables are very high fidelity.
PHPSESSID submitted as a multipart form field (not a cookie) with a value shorter than 4 characters: Attacker-supplied session IDs are sent as multipart form fields with very short values. Normal PHP session IDs are 26-32 alphanumeric characters and are transmitted as cookies, not form fields.
PHP_SESSION_UPLOAD_PROGRESS multipart field with a value exceeding 1000 bytes: This is the OOM payload. Normal progress values are very small >50 bytes.
Multipart form POST containing 500+ form fields and/or array key nesting depth exceeding 32 levels: The deep nesting contributes to the memory exhaustion and are insane for most forms.
HTTP POST with Transfer-Encoding: chunked, Content-Type: multipart/form-data, and no Content-Length header: No Content-Length is bad by itself, but combined with that Content-Type, something is definitely up.
Insane
Apache prefork worker process crash (SIGSEGV / signal 11) occurring immediately after a large chunked multipart POST request: This one is Apache-specific and requires correlation between Apache error logs and HTTP request data. But if you see it, it’s a strong indicator.
These have been added to our MISP feed, and are uploaded here in CSV format for convenience.
php2shell_observables.csv (130 Bytes)
Notes
Apache (mod_php), Nginx (PHP-FPM) and other SAPIs will manifest these errors slightly differently. Many of the PoCs can achieve RCE on mod_php, but not necessarily PHP-FPM.
If you are able to contact folks at local schools, governments, nonprofits, and other services to warn them about the PHP vulnerabilities, please consider doing so. These locations often do not have dedicated security staff and almost certainly have PHP assets exposed.
Some are recommending deploying SELinux or AppArmor in enforce mode to prevent process launches from webserver users. While this is a technically effective solution, the complexity of deploying these tools in enforce mode for the first time during an emergency lead us to avoid that recommendation. There’s a good chance you’d bring down the system anyway. Might as well just do so and patch it.
Errata
Earlier versions of this story attributed initial discovery to Wiz. Calif, per PHP themselves, made the first disclosure.
Earlier versions of this story based exploitation evidence on claims from third parties. No direct evidence has been presented, therefore we are rescinding our EITW status for this vulnerability at this time.
