Skip to content
Back to insights

Weekly advisory: Java4Shell, phpAfterShell, ruby2shell and nginx2root

Java4Shell, phpAfterShell, ruby2shell and nginx2root: which ones Cloudflare's WAF blocks, which it only logs, which it can't see, and what you still have to patch.
Ilyas Esmail

Ilyas Esmail

Founder & CEO

Weekly advisory: Java4Shell, phpAfterShell, ruby2shell and nginx2root

Key takeaways

  • Four named bugs landed in one week, in Java, PHP, Ruby and nginx. Every one of them needs a patch and a restart, whatever sits in front of the server.
  • Cloudflare blocks ruby2shell and phpAfterShell by default, including on the Free plan.
  • The six Java4Shell rules only log by default, on Pro plans and above. Review their matches and set them to block.
  • Cloudflare's proxy stops three of the five nginx bugs before they reach your origin, with no WAF rule involved. It does nothing for an origin attackers can reach directly.

The weekly advisory is for teams on Cloudflare. Each Thursday we take the past week's serious bugs in web apps, servers and identity, and say for each one whether Cloudflare blocks it by default, only logs it, or leaves it to your patch.

This week brought four bugs with names, each with public write-ups and, for most, public exploit code. Cloudflare published a WAF post for each one, and the four posts say quite different things.

BugWhat runs itCloudflare by defaultWhat you do
Java4Shell, CVE-2026-114938OpenJDK 17.0.6 and later on recent x86-64 CPUsSix rules, log only, Pro and abovePatch the JDK, restart every JVM, switch the rules to Block
phpAfterShell, CVE-2026-126714, and 16 othersPHP before 8.2.36, 8.3.37, 8.4.28, 8.5.13Main rule blocks on every plan. Three new rules log onlyPatch PHP, restart workers, review the three new rules
ruby2shell, CVE-2026-132825Ruby before 3.3.14, 3.4.13, 4.0.10. Rails and Sinatra by defaultTwo rules block on every planPatch Ruby, restart workers, update bundled apps
nginx2root, five CVEsnginx before 1.30.7 and 1.31.9No rule. The proxy absorbs three of fivePatch, restart (not reload), lock the origin to Cloudflare

Java4Shell: the rules exist, but they don't block

Java4Shell is a heap overflow in the JDK's hardware-accelerated Base64 decoder.1 An attacker who can get the application to decode a crafted Base64 string can corrupt memory, read it back and, in the right conditions, run code. The bug needs three things at once: OpenJDK 17.0.6 or newer (including Corretto, Temurin, Zulu and Oracle's builds), an x86-64 processor with AVX-512 VBMI (Intel Ice Lake and newer Xeons, AMD Zen 4 and newer), and attacker input reaching the standard decoder.2 ARM64 servers are not affected.

Plenty of normal traffic carries Base64: JWTs, WebAuthn payloads, cookies, API bodies. That is why Cloudflare shipped its six new rules (one each for headers, query values, bodies, path segments, JWT parts and WebAuthn values) with the Log action.3 They are in the Cloudflare Managed Ruleset, so Free zones do not have them yet, and Cloudflare says a Free rule is in progress.2

A rule in Log records the match and lets the request through. Until you change it, a zone with these rules is no safer against Java4Shell than one without them.

  1. Find the matches. In Security > Security Analytics > Events, filter by the Managed Ruleset and search for CVE-2026-114938. Look at which hostnames and paths match and whether the requests come from your own clients.

  2. Switch the clean ones to Block. In Security > Settings, edit the Cloudflare Managed Ruleset, find the CVE-2026-114938 rules and set the action to Block. If one rule matches a real token format of yours, block the other five and scope an exception for that path.

  3. Patch and restart. Install your JDK vendor's November update, rebuild container images that bundle their own JDK, and restart every JVM. A new package on disk does nothing for a process that is already running.

  4. If you can't patch today, start the JVM with -XX:-UseBASE64Intrinsics, or -XX:UseAVX=2 on x86-64 only (ARM JVMs refuse to start with it).1 Both need a restart and can slow Base64-heavy work.

The WAF also cannot see Base64 that arrives over Kafka or other non-HTTP paths, inside nested encodings, or on traffic that never passes through Cloudflare.2

phpAfterShell: the headline bug is blocked, three others are not

PHP's November release fixes 17 vulnerabilities, seven of them critical.4 The one with a name, phpAfterShell (CVE-2026-126714), abuses a session file left half-written so that the next session_start() unserialises objects the attacker chose.4 Fixed versions are 8.2.36, 8.3.37, 8.4.28 and 8.5.13.5

Cloudflare extended its existing PHP remote code execution rule to cover phpAfterShell, and that rule blocks by default in both the Free and the paid rulesets.4 On a paid plan, check that the Managed Ruleset is actually deployed on every zone that serves PHP.

The release also brought three new paid-plan rules that log only: one for PHP-FPM request smuggling (CVE-2026-129289) and two for the SOAP extension.4 The FPM bug already has public exploit code.6 It needs a front end that reuses FastCGI connections, such as nginx with fastcgi_keep_conn on or Apache with enablereuse=on, so check your configuration as well as the rule.5

Four of the critical bugs depend on server state (time zone caches, fatal-error backtraces, session shutdown) and have no WAF rule at all.4 For those, the patch is the only fix.

After updating, restart the PHP-FPM master or Apache so no worker keeps the old binary, and confirm the version that serves web requests, not the one on the command line.

ruby2shell: blocked everywhere, but not only reachable over HTTP

Ruby's case-conversion code reserves one byte where uppercasing the German ß in certain legacy encodings writes two.7 Rails and classic Sinatra are exposed in their default setup, because Rack uppercases the _method form field before your code or your login check runs.7 Affected: Ruby 3.3.13 and earlier, 3.4.0 to 3.4.12, and 4.0.0 to 4.0.9. Fixed: 3.3.14, 3.4.13 and 4.0.10.7 Ruby 3.2 and older get no fix.

Cloudflare's two ruby2shell rules block by default on every plan, Free included.7 That covers the web route. It does not cover strings that reach your app from email, file imports or job queues, so patching still matters.

Many products ship their own Ruby. Cloudflare lists GitLab, GitHub Enterprise Server, Mastodon, OpenProject, Discourse and Chatwoot builds that carried an affected version when the bug was disclosed.7 Update those as their vendors release, and restart background workers as well as web processes.

nginx2root: the proxy helps, the WAF has nothing to add

nginx fixed five memory-safety bugs in 1.30.7 (stable) and 1.31.9 (mainline).8 The worst, CVE-2026-123007, needs only HTTP/2 to be switched on and reaches back to 1.9.5.

Cloudflare did not ship a WAF rule, because it doesn't need one for the HTTP/2 and HTTP/3 bugs. It ends the visitor's connection at its edge and opens its own to your origin, so the crafted frames never arrive.9 Two of the five are different: the resolver bug depends on how your proxy_pass is built, and the mail-proxy bug sits on ports Cloudflare's HTTP proxy never carries.9

None of this applies to an origin that answers requests sent straight to its IP address. Close that with Cloudflare Tunnel, or with Authenticated Origin Pulls plus a firewall that only accepts Cloudflare's ranges.

When you patch, restart nginx or run a binary upgrade. nginx -s reload keeps the old binary in memory.9 nginx Plus R34 to R36 have no fixed build and must move to a fixed 37.x release.9

Also on CISA's list this week

CISA added two critical bugs to its Known Exploited Vulnerabilities catalogue on 20 November:

  • Apache Roller before 6.1.5 (CVE-2026-129448): unauthenticated code execution through the XML-RPC endpoint.10 If you run Roller, update it now. Until you can, block its XML-RPC endpoint at the edge.
  • VMware vCenter (CVE-2026-123890): an authentication bypass in the directory service.11 It isn't a web edge bug, but vCenter should never be reachable from the internet. If yours is, put it behind Cloudflare Access or a VPN first, then patch.

How Vigilbase can help

If we manage your Cloudflare account, ask your account team about this advisory. We can find the zones where the Java4Shell and new PHP rules are still in Log, show you what they matched, and move them to Block with you. We can also check which origins answer traffic that didn't come through Cloudflare. The patching itself happens on your servers, by your team or your hosting provider.

Sources

  1. ↩
  2. ↩
  3. ↩
  4. ↩
  5. ↩
  6. cve.now, CVE-2026-129289, public exploit code and EPSS history.

    ↩
  7. ↩
  8. ↩
  9. ↩
  10. cve.now, CVE-2026-129448, added to CISA KEV on 20 November 2026.

    ↩
  11. cve.now, CVE-2026-123890, added to CISA KEV on 20 November 2026.

    ↩

Share this article

Tags

advisoryweekly advisoryJavaPHPRubynginx
Ilyas Esmail

Ilyas Esmail

Founder & CEO

Ilyas founded Vigilbase to simplify how businesses get their cybersecurity work done. On this blog, Ilyas writes about cybersecurity, Cloudflare and the work of keeping businesses secure.

About Vigilbase

Vigilbase is the cybersecurity operating system. Vigilbase OS connects the security tools an organisation already pays for, keeps their logs and events in one auditable place, and has the Vigil agent investigate, make authorised fixes and verify the result. As a Preferred Cloudflare Partner, Vigilbase also sells Cloudflare Enterprise and operates it as Managed Cloudflare. Vigilbase is ISO 27001 and SOC 2 Type 2 compliant.

Stay ahead of threats

Get the latest cybersecurity insights and best practices delivered to your inbox.