
Fifteen years building engineering platforms, currently focused on advanced AI infrastructure at yeet. I love turning the deeply complex topics into something everyone can understand. I relate deeply with the core yeet philosophy that you can just build things.
Last updated: November 2026
I'm an engineer at yeet, and the part of it this post touches is the programmable firewall, which is one of the options below.
Quick answer. The fix is ruby 4.0.10, 3.4.13 or 3.3.14, plus a restart of every app server and worker. If that cannot happen tonight, the fastest thing that actually blocks the exploit is a virtual patch on each origin host: a rule matching the multipart
_methodpart with a legacy charset and a long run of0xDFbytes, applied without a deploy or a worker restart. Ruby's advisory lists no workaround, so that rule and every other stopgap here buys time while the upgrade rolls through your fleet behind it.
Ruby2Shell is CVE-2026-132825, a one-byte heap buffer overflow in ruby's string case conversion. Changing the case of a string holding the german sharp s in a legacy single-byte encoding writes one byte past a heap buffer. Ruby's maintainers rate it critical and say proofs of concept turn it into remote code execution in some scenarios. The CVE record scores it 7.4 with a local attack vector, red hat scores it 9.8 with a network vector, and the delivery analyses published since support the network reading. The Ruby2Shell reference page carries the affected versions, the patch itself and the check commands.
This post is about the other question: it is tonight, you cannot restart every ruby worker in your estate yet, and a public exploit may land this week. The reference page tells you whether you are affected and what to install. What follows is the operational decision underneath that, which is how to spend a window that somebody else controls the length of, and which of the available stopgaps are worth the disruption they cost.
Five that do not require you to upgrade tonight, ordered by how fast they land. Ruby's own advisory lists no workaround, so every row here buys time rather than fixing the bug, and the upgrade is still the work. The last column is what each option's own source says about it.
| Route | How fast it lands | Needs a deploy or restart | Sees requests that skip your CDN or WAF | What its own source says |
|---|---|---|---|---|
| A virtual patch on each origin host, such as the yeet programmable firewall | under a minute to install, 3 to 6 ms to apply the rule | No | Yes, east-west included | cleartext only, so TLS terminates upstream of the host |
WAF rule on the multipart _method shape | minutes, if you already run a managed ruleset | No | No | miggo ships one; ethiack: "WAF rules may not be enough here" |
| Allowlist or VPN unfixed bundled-ruby products | an afternoon | No | Yes, if the allowlist is at the host | semgrep, aikido, ethiack: nothing if the attacker is already inside |
Remove Rack::MethodOverride or set config.api_only = true | one deploy | Yes, it is a deploy | n/a, it closes the path everywhere | semgrep and durendal: closes the default framework path |
| Isolate or take the affected service offline | immediate | No | n/a | the blunt option, and sometimes the right one |
This is the only option on the list that blocks the exploit without changing your application, your deploy or your ruby, which is why it goes first when the premise is that tonight's upgrade is not happening.
A virtual patch is a rule that refuses the malicious request before the vulnerable code ever runs. Put it on the origin host rather than at the edge and it sits behind your TLS termination, so it reads the same cleartext rack is about to parse, and it sees every route into that machine: east-west calls from your own services, traffic addressed to the host directly, and anything that reached it without crossing your CDN.
For Ruby2Shell the shape is well defined. The request is a POST carrying a multipart/form-data body. One part is named _method. That part declares its own Content-Type with a legacy charset such as ISO-8859-1, which is the thing that makes the bytes arrive at upcase still tagged with the attacker's encoding. The value is a run of at least twenty-one 0xDF bytes. Those four conditions sit together in the first few kilobytes of the body, which is exactly the kind of structure a rule can match before handing the request on.
Two properties matter for doing this tonight rather than next sprint. The rule is data for an already-verified kernel program rather than a new program each time, so it can be exercised against both the exploit shape and a corpus of your own benign traffic in CI, with no staging environment and no traffic generator. And getting there is quick: installing the runtime on a host takes under a minute, and applying a rule to it is a compile and an atomic swap into the running program, measured at 3 to 6 milliseconds in our lab, with no ruby worker restarted and no connection dropped. Run it in monitor mode first, which counts what it would have blocked without blocking anything, and look at the count before you enforce.
Miggo ships a rule that blocks the main primitive, also distributed through AWS WAF partner managed rulesets, and openai coordinated with WAF vendors before disclosure. If you already run a managed ruleset, you may have coverage for this without having done anything, which is worth confirming before you plan work around it.
The caveat comes from ethiack and it is the most important sentence in this post: "WAF rules may not be enough here. The trigger is a short run of otherwise legitimate characters." Twenty-one sharp s characters is not an exotic payload. It is a plausible fragment of german text, and an attacker who can vary the encoding tag, the part ordering or the field name has a large space to move in.
There is also a documented false lead. Semgrep found rules hunting for repeated %DF sequences in URLs and noted that a scanner looking there "is looking in the wrong place," because the bytes travel raw inside a multipart body rather than percent-encoded in a query string.
Gitlab, github enterprise server, mastodon, discourse, openproject and chatwoot all bundle their own ruby, which means your package manager cannot fix them and the vendor's release is the only route. Where a vendor has not shipped, restricting network reach to the service buys time.
The honest limit, which all three of semgrep, aikido and ethiack state: this does nothing if the attacker is already inside your network, and these products are usually reachable from inside by design. A self-hosted git server or chat platform that only staff can reach is still reachable by anything that has landed on a laptop, which is the ordinary way these services get attacked.
Rack::MethodOverride, or run the app in API modeThis is the mitigation with the clearest evidence behind it, it costs you nothing but a deploy, and it has nothing to do with my employer. If you read one section of this post and act on it, make it this one, because it closes the delivery path that every published analysis of this bug converges on.
HTML forms can only send GET and POST, so rails and rack apps that need PUT, PATCH or DELETE carry a hidden _method field. Rack::MethodOverride reads that field and calls upcase on it before routing, CSRF checking or authentication runs. In a multipart body each part may declare its own character set, and rack honours it, so an attacker controls both the bytes and the encoding tag at the moment of the vulnerable call.
Deleting that middleware, or setting config.api_only = true in rails, closes the default path. Semgrep confirmed the path at runtime on rails 8.1 and 7.2, sinatra 4.2 and 3.2, and rack 3.2 and 2.2; durendal.sh published the rack source lines. What it leaves open is any application code of your own that upcases a multipart parameter, and the Rodauth account-creation path, which compares a login against a confirmation field with casecmp? before login.
Yes, by two separate routes, and they compound rather than overlapping. One is about which requests the rule ever gets to inspect, and the other is about whether the rule recognises the request when it does. A control can fail either way, and on this bug both failure modes are live at once.
The first is coverage. An edge rule inspects traffic that reaches the edge. A request that addresses your origin directly, by IP or by a hostname that does not resolve through your CDN, never passes the rule. So does a call from one of your own services to another, which is the shape most likely to carry a multipart body with an unusual charset in the first place. Internal ruby services talking to each other sit entirely outside an edge WAF's view.
The second is the signature problem described above, which applies to the requests the WAF does see. The trigger is short and legitimate-looking, no evasion variants have been published because no public exploit exists yet, and the people who published the rule caveats are the people who wrote the rules.
Stacking them: an edge rule covers inbound internet traffic with a signature its own authors call insufficient. That is worth having and it is not a reason to deprioritise the upgrade.
Shorter than it looks, and the shape of the window is the genuinely unusual thing about this bug. Most critical vulnerabilities reach you with the exploitation already underway, so the decision is about damage control. Here the sequence has not started yet, which makes the next few days worth more than they usually are.
As of 25 November 2026, checked against CISA's KEV feed that day, CVE-2026-132825 is not listed, no exploitation in the wild has been reported, and no public proof of concept exists. At least one security research firm has publicly committed to publishing a working remote code execution proof of concept against stock rails from 25 November onward, so plan on the assumption that a usable exploit becomes public this week rather than at some unknown future point.
Private proofs of concept already exist. Ruby's maintainers said so on 18 November, and the disagreement among researchers is about reliability rather than existence. Some analysts read the bug as hard to weaponise and possibly only a denial of service; others report working pre-authentication remote code execution demonstrated privately. The technical substance of that disagreement is worth knowing: a naive run of sharp s characters is absorbed by glibc's allocator alignment and only crashes under address sanitiser, so reliable heap corruption needs a crafted mixed string rather than the simple payload the advisories describe. That raises the skill floor for an attacker. It does not lower it for the person who publishes a working one.
What that means operationally is that the gap between "no public exploit" and "commodity scanning traffic" has historically been days, not months, and you are choosing now whether to spend the window upgrading or discovering you cannot.
libruby?By reading the interpreter out of running processes rather than asking your package manager, because the two disagree in exactly the case that matters. The package manager reports what is installed on disk. The thing serving your traffic is whatever each worker loaded when it started, and on a host that was patched but not restarted those answers differ while only one of them is true.
Ruby 4.0.10, 3.4.13 and 3.3.14 shipped on 18 November 2026, fixing seven issues in that release. Ruby 3.2 and older are end of life and get no fix, so those hosts need a branch move or a distribution backport, which is a project rather than a maintenance window. Find them first, because they are the hosts where the rule in front has to hold for longer.
Semgrep publishes a read-only fleet scanner for this CVE with linux, macos, windows and kubernetes support, plus ansible, SSH and kubectl wrappers. It reads the running process's interpreter version, checks for Rack::MethodOverride and Rodauth, accounts for distribution backports, and prints a verdict per host. Its author-stated limit is that it cannot read your application code, so the sibling bugs come back as unknown on an unpatched ruby.
Two signals are worth looking for yourself, whether or not you run a scanner, because both are readable from the process table without installing anything:
libruby at or below 4.0.9, 3.4.12, 3.3.13, or anything on 3.2 and older.(deleted) marker on that mapping, which means the file was upgraded underneath a process that is still running the old code.There is no useful log signal. The overflow is a single byte past a buffer and it is silent on stock allocators: no crash, no log line, nothing to grep for after the fact. If you want to know whether you were hit, the interpreter version at the time of the request is the evidence you have.
Four things, and on Ruby2Shell they add up to a larger share of the risk than they would on a more constrained bug. Each one is a route the published framework analysis does not cover, which is the gap between what a rule matches and what the vulnerability reaches.
Traffic inside TLS the host does not terminate. A rule at XDP reads what arrives at the NIC, which is the cleartext the machine is about to parse only when something upstream has already decrypted it. If TLS terminates inside the application process rather than at an edge, a load balancer or a sidecar, the rule sees ciphertext and matches nothing. This is a deployment question rather than a product one, and it is worth answering before counting on any host rule.
Application paths that are not _method. The framework path is the one everybody has analysed, but semgrep's code reading found the same primitive reachable through any application code that upcases or case-compares a multipart parameter, through strings tagged by HTTP client bodies, nokogiri output, re-tagged email parts, latin1 database connections and ISO-8859 CSV files. A rule keyed to _method covers the published path and none of those.
Encoding and padding variation. No evasion variants are published because no public exploit is published. That is not reassurance, it is the absence of data, and the two look identical right up until somebody publishes. Several legacy charsets reach the same code path, so the encoding tag alone gives an attacker room to vary the request.
The six sibling bugs. Ruby's 18 November release fixed seven issues, and the advisory makes individual proof-of-concept statements for six of them. A rule aimed at the case-conversion primitive does nothing about the regexp bugs shipped in the same release, which have their own delivery paths and their own indicators. The upgrade covers all seven at once, which is the argument for treating it as the work rather than the fallback.
Ruby2Shell is the rare critical bug where you probably still have time, and the way to keep it is to stop treating the upgrade and the stopgap as a choice. Tonight, a virtual patch on each origin host blocks the known delivery path without a deploy, without a worker restart and without waiting for a maintenance window, and it covers the east-west traffic your edge never sees. Behind it, roll ruby 4.0.10, 3.4.13 or 3.3.14 through your fleet at the pace a careful upgrade actually takes, and restart every worker, because an upgraded file that no running process has loaded protects nothing. Remove Rack::MethodOverride on the way if your app can spare it. The rule is cover, the upgrade is the fix, and the reason to put the rule up first is that the window closes on somebody else's schedule.
Put a virtual patch on each origin host. The rule matches the delivery shape: a multipart/form-data body with a part named _method, that part declaring a legacy charset such as ISO-8859-1, and a value holding a run of at least twenty-one 0xDF bytes. Enforced on the host it runs behind your TLS termination and covers east-west traffic your edge never sees, it needs no deploy and no worker restart, and the runtime installs in under a minute with a rule applying in 3 to 6 milliseconds. It buys time while the upgrade to ruby 4.0.10, 3.4.13 or 3.3.14 rolls through the fleet behind it. The options table above compares it against the four other routes, and the Ruby2Shell reference page carries the affected versions and the patch.
A rule that refuses the malicious request before the vulnerable ruby code runs, rather than a change to ruby itself. For Ruby2Shell that means matching the multipart _method part with a legacy charset declaration and a long run of sharp s bytes, and dropping the request at the host before rack parses it. It is a compensating control: it closes the delivery path without changing your application, your deploy or your interpreter. The yeet programmable firewall applies one this way.
Ruby2Shell is CVE-2026-132825, a one-byte heap buffer overflow in the ruby interpreter's string case conversion. Changing the case of a string containing the german sharp s in a legacy single-byte encoding writes one byte past a heap buffer. Ruby's advisory rates it critical and says proofs of concept turn it into remote code execution in some scenarios. The Ruby2Shell reference page carries the full record.
Ruby 4.0.10, 3.4.13 and 3.3.14, all released on 18 November 2026 in this announcement. Ruby 3.2 and older are end of life and will not receive a fix, so those hosts need a move to a supported branch or a distribution backport. The reference page lists affected and fixed versions per branch.
Not as of 25 November 2026. It is not on CISA's KEV catalog, checked against the feed that day, and no exploitation has been reported. Private proofs of concept exist, which ruby's maintainers confirmed on 18 November, and at least one research firm has said it will publish a public one from 25 November onward. Treat the absence of exploitation as a window rather than as a verdict; the reference page tracks the exploitation status as it changes.
Partially. Miggo ships a rule for the main primitive and distributes it through AWS WAF partner managed rulesets. An edge rule only sees traffic that crosses your edge, so it misses east-west calls and anything addressing an origin host directly. Where a host firewall sits relative to a network firewall covers that split.
It closes the default framework delivery path, which is the one with public analysis behind it. It does not fix the bug in the interpreter, and it leaves open any application code that upcases a multipart parameter, plus the Rodauth account-creation comparison. It also needs a deploy, which is why the options table above ranks it slower to land than a host rule.
Because the bytes do not travel there. Semgrep found rules looking for repeated %DF sequences in query strings and noted that is "looking in the wrong place": the sharp s run arrives raw inside a multipart body, not percent-encoded in a URL. The shape worth matching is the multipart part itself, which a host rule reads before rack parses it.
The sources disagree. The CVE record scores it 7.4 with a local attack vector; red hat scores it 9.8 with a network vector; ruby's advisory rates it critical without publishing a vector. The published delivery analyses describe a pre-authentication network path through a default rails configuration, which supports the network reading. The reference page records every score side by side.
Because the processes were never restarted. An upgrade replaces the file on disk; a running worker keeps the code it loaded at start. A (deleted) marker on the libruby mapping in a process's memory map is the usual sign. Semgrep's detection script sweeps a fleet for them by reading each running process rather than the package database.
Yes, and your package manager cannot fix those. Gitlab, github enterprise server, mastodon, discourse, openproject and chatwoot ship their own interpreter, so each is fixed only by its vendor's release, on the vendor's schedule. Check each vendor's advisory rather than the host's ruby version, because a fully patched host can still run a vulnerable bundled interpreter inside one of these products. A host rule in front of the service does not depend on the vendor shipping.