Cloudflare Gave Free Plans the WAF Rules for Two 9.2 Flaws, Three Days After Skipping One

The same vendor, the same week, the same severity score. One rule skipped the free plan and two did not, and the difference is in how each bug is reached.

Share
Cloudflare Gave Free Plans the WAF Rules for Two 9.2 Flaws, Three Days After Skipping One

Cloudflare added block-by-default WAF rules for ruby2shell and phpAfterShell to the Cloudflare Free Managed Ruleset on 19 and 20 November 2026, covering free accounts. Both vulnerabilities score 9.2 under CVSS 4.0. That is three days after Java4Shell, also 9.2, received rules that were confined to Pro, Business and Enterprise because the ruleset they lived in is not available on Free.1

We tracked all three disclosures this week, and they give three different answers for the same plan. The distinction is not arbitrary, and it turns out to explain something useful about what a free tier actually buys.2

What was disclosed

FlawDisclosedScoreReach
Java4Shell, CVE-2026-11493817 Nov9.2OpenJDK Base64 decoder on x86-64 with AVX-512
phpAfterShell, CVE-2026-12671419 Nov9.2PHP default file-based session handler
ruby2shell, CVE-2026-13282519 NovCritical, RCE proof of conceptRuby string case conversion in legacy encodings

Prices measured on 27 October 2026. Vendor plan terms, allowances and prices change without notice, so treat every figure on this page as a dated snapshot rather than a permanent fact. Where a number here differs from the vendor's own pricing page, the vendor's page is correct and the figure above is simply older than it.

phpAfterShell is a race in PHP's session write. When the write is interrupted, the session file can hold the start of the new data followed by the end of the old, and the next session_start deserializes that mixture. An attacker who controls the old data can cause objects of their choosing to be deserialized. The PHP project fixed it in 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0, releases that also carry 16 other fixes, six of them critical.

ruby2shell is a one-byte heap overflow in string case conversion. The German sharp s uppercases to two characters, SS, and in 14 single-byte encodings Ruby writes both bytes while checking room for one. A string of 21 sharp s characters overflows by one byte. Rails and classic-style Sinatra reach it before authentication, because Rack's MethodOverride middleware upcases the _method parameter while routing.

According to Veria Labs, the list of products bundling an affected Ruby is the alarming part: GitLab 19.6.0, GitHub Enterprise Server 3.22.5, Mastodon 4.7.5, OpenProject 17.9.7, Discourse 2026.1 and Chatwoot 4.20.0 all shipped it in their latest release at disclosure.

Why two of the three reached the free plan

Here is the mechanism, and it is the interesting part. Cloudflare's two rulesets differ in more than who can deploy them. The Cloudflare Free Managed Ruleset is positioned as protection against high-impact and widely exploited vulnerabilities whose rules are safe to run on most applications. The Cloudflare Managed Ruleset, for paid plans, is the broader and noisier set.

For phpAfterShell, no new rule was needed at all. Cloudflare deployed a PHP remote code execution rule in October 2026 for the php2shell flaws, and that rule already matched part of the phpAfterShell pattern before disclosure. The work on 19 November was updating detection logic on a rule that already existed, in a ruleset free accounts can deploy.

For ruby2shell, Cloudflare added two rules to both rulesets: one for the heap overflow and one for a related integer overflow fixed in the same releases. Both default to Block on every plan.

For Java4Shell, the rules went to the Cloudflare Managed Ruleset only, which the plan matrix marks as not available on Free. The reason appears to be false-positive risk rather than severity. Cloudflare enabled those rules in Log mode by default even on paid plans, because malformed Base64 input and some legitimate application token formats look alike.

So the split is not severity and it is not recency. It is how confident the vendor is that a signature can fire without breaking working applications, and whether an existing rule already covered the shape of the attack.

What a free account gets now

FeatureFreePro and above
ruby2shell rulesYes, Block by defaultYes, Block by default
phpAfterShell ruleYes, Block by defaultYes, Block by default
Java4Shell rulesNoYes, Log by default
PHP-FPM and SOAP rulesNoYes, Log by default
WAF attack scoreNoBusiness and Enterprise
Request body inspection limit1 MBHigher on paid plans

The three PHP-FPM and SOAP rules added alongside phpAfterShell went to the paid ruleset with Log as the default, again because the patterns can appear in legitimate traffic. That is consistent with the Java4Shell decision and inconsistent with a simple read of the free plan as an afterthought.

The part that should worry a free user

Patching is still the only complete fix, and Cloudflare says so in all three posts. For Ruby the instructions are unusually awkward: distribution packages backport fixes without changing the version number, so the version string is not evidence of anything. For PHP the same warning applies.

We compared the three advisories side by side, and the detail that stood out was how much of the exposure sits inside software people install rather than write. A Mastodon or Discourse instance is a self-hosted product with a bundled runtime, and its operator may never touch Ruby directly.

The verdict is that the free tier is better served here than a reading of the Java4Shell week would suggest, and that is worth knowing before drawing conclusions about the plan.

The limitations are real. Coverage depends on the vendor deciding a rule is safe enough for general deployment, which is not a guarantee anyone can plan against. A rule that is not deemed safe simply does not ship to Free, and that is what happened with Java4Shell. Attack score is unavailable below Business, body inspection stops at 1 MB on Free, and a signature cannot catch a variant it has never seen. None of this replaces the patch, and a plan that relies on it rather than upgrading is taking a real risk.

Best for anyone running a mainstream PHP or Ruby application who wants a few days of cover while patching. Not a substitute for the upgrade, and a poor bet for anything outside the signature.

Frequently asked questions

Does the Cloudflare Free plan block ruby2shell?
Yes. Two rules are in the Cloudflare Free Managed Ruleset, defaulting to Block.

Does the Free plan block phpAfterShell?
Yes. An existing PHP remote code execution rule was updated and is enabled by default with Block.

Why did Java4Shell not get the same treatment?
Its rules went to the Cloudflare Managed Ruleset, which is not available on Free. Those rules also default to Log rather than Block on paid plans.

Is the WAF enough?
No. The only complete fix is patching PHP, Ruby and nginx and restarting workers.

Which Ruby and PHP versions are fixed?
Ruby 3.3.14, 3.4.13 and 4.0.10; PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0.

Are these flaws being exploited in the wild?
Neither was listed in CISA's Known Exploited Vulnerabilities catalogue at disclosure, and Cloudflare reported no indication of exploitation of its own systems.

The ruleset IDs, rule IDs, default actions and ruleset availability for both flaws, the details of each vulnerability, affected versions and bundled-product list are from Cloudflare's ruby2shell analysis and phpAfterShell analysis of 19 and 20 November 2026. The Java4Shell comparison and the Log-action rationale are from the Java4Shell post of 18 November 2026 and Cloudflare's managed rules documentation, read on 23 November 2026.

Sources

  1. Cloudflare Blog: ruby2shell WAF: blog.cloudflare.com/ruby2shell-waf-protection. Used for: ruby2shell CVE-2026-132825 and phpAfterShell CVE-2026-126714 both got Free Managed Ruleset entries with Block default.
  2. Cloudflare Blog: phpAfterShell WAF: blog.cloudflare.com/phpaftershell-waf-protection. Used for: Java4Shell rules stayed in the Cloudflare Managed Ruleset, unavailable on Free, defaulting to Log on paid plans.
  3. Cloudflare Blog: Java4Shell WAF: blog.cloudflare.com/java4shell-waf-protection.

All sources are the vendor's own plan or documentation pages, checked on 27 October 2026. Plan terms change without notice, so confirm current limits before you rely on them.