Skip to content
ThreatCluster

Cloudflare WAF adds phpAfterShell and Java4Shell detection rules

First seen 21 Nov 2026, 14:21 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 21, 2026 at 14:22 UTC
  • •Cloudflare WAF blocks known phpAfterShell attacks by default on all plans, including Free.
  • •Three new PHP-FPM and SOAP rules on paid plans log matches rather than block them by default.
  • •Six Java4Shell detection rules on paid plans also log by default and require action to enable blocking.
  • •These WAF rules are described as a stopgap while the OpenJDK flaw is patched.
  • •The articles do not provide CVE identifiers or confirmed exploitation details.

Cloudflare has expanded its WAF's PHP2Shell detection to block known attacks against phpAfterShell, a critical PHP remote code execution flaw, with the updated rule covering all plans including Free. Three additional rules for PHP-FPM and SOAP flaws are available on paid plans but log matches by default rather than block them. Separately, on 2026-11-19, Cloudflare added six detection rules for Java4Shell on paid plans, which likewise log matches by default. The articles state these rules serve as an additional defense while organizations patch the OpenJDK vulnerability that CISA has urged them to fix. The articles do not provide CVE identifiers, exploitation status, or details of attack volume for either flaw. Blocking for the Java4Shell rules requires administrators to change the default log-only setting.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Updated 17h ago How this analysis works

Timeline

2026-11-19
Cloudflare adds Java4Shell detection rules
Six rules added for paid plans, logging matches by default while CISA urges patching of the OpenJDK vulnerability.
4sysops
2026-11-21
Cloudflare expands PHP2Shell rule to block phpAfterShell
Updated rule blocks known phpAfterShell attacks on all plans; three PHP-FPM and SOAP rules added for paid plans in log mode.
4sysops

More articles in this cluster (2)

Following this threat?

Track PHPAfterShell in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.

Free account · no card needed

Common questions

Am I protected against phpAfterShell if I use Cloudflare?
Per 4sysops, Cloudflare's updated PHP2Shell rule blocks known phpAfterShell attacks on all plans, including Free.
Are Java4Shell attacks blocked by default?
No. The six Java4Shell rules on paid plans log matches rather than block them by default, so blocking requires administrator action.
Does this replace patching?
The articles describe these WAF rules as an additional defense while organizations patch the OpenJDK vulnerability that CISA has urged them to fix.