· intuitem · News  · 5 min read

Ruby2Shell (CVE-2026-132825): CISO Assistant is not affected

A one-byte heap overflow in Ruby string case conversion can lead to remote code execution in default Rails and Sinatra apps, GitLab, Mastodon, Discourse and other Ruby software. CISO Assistant does not use Ruby, so it is not affected. Here is what the flaw is, and what to do if you run Ruby elsewhere.

A one-byte heap overflow in Ruby string case conversion can lead to remote code execution in default Rails and Sinatra apps, GitLab, Mastodon, Discourse and other Ruby software. CISO Assistant does not use Ruby, so it is not affected. Here is what the flaw is, and what to do if you run Ruby elsewhere.

Ruby2Shell (CVE-2026-132825) is a vulnerability in the Ruby interpreter, disclosed on November 18, 2026. In short, CISO Assistant is not affected because it contains no Ruby. This post explains the vulnerability briefly, why we are not exposed, and what we recommend if you run Ruby elsewhere in your environment.

What Ruby2Shell is

Ruby2Shell is a flaw in Ruby itself, not in a gem or a framework. When Ruby changes the case of a string in some single-byte encodings, such as ISO-8859-1 or Windows-1252, it can write one byte past the end of its output buffer. The cause is the German ß: most of these encodings have no capital ß, so upcasing it produces two characters (SS), but Ruby only checks room for one. Since the buffer has 20 bytes of slack, a string with enough ß characters overflows it. The methods involved are upcase, swapcase, downcase(:fold) and casecmp?. UTF-8 strings take a different code path and are not affected. The bug has been in Ruby since version 2.4.0.

One byte sounds small, but Ruby’s own advisory says: “We are aware of PoCs that prove this flaw can be used to trigger RCE in some scenarios.” Veria Labs, who named the flaw, report that it is reachable without authentication in Rails and classic-style Sinatra applications in their default configuration. Plain Rack and other frameworks are not exposed by default, but any application that changes the case of text received in a legacy encoding may be.

Ratings differ. GitHub’s advisory (GHSA-34m4-m9fh-gqp5) rates it Critical, while the CVE record scores it 7.4 (CVSS v3.1) with a local attack vector and high complexity. Given what Veria Labs and the Ruby team describe, treat it as critical for anything exposed to the internet.

As of December 1, we are not aware of exploitation in the wild, and the CVE is not in CISA’s Known Exploited Vulnerabilities catalog. Veria Labs announced they would publish a proof of concept for remote code execution on stock Rails from November 25. A public reproducer of the memory corruption already exists.

The same Ruby release fixes six other memory-safety flaws, in case conversion and in the regular expression engine (GHSA-87fm-7w84-j2px, GHSA-7x2q-68qv-6p8x, GHSA-3p8q-wmhx-vm2w, GHSA-7whj-cfh7-xgm4, GHSA-wpqw-5qxg-m68r, GHSA-pvgc-g7gj-pv6h). Most of the regex ones matter when an application compiles patterns supplied by users. The same upgrade fixes all of them.

Why CISO Assistant is not affected

CISO Assistant does not contain or run Ruby, in any edition or deployment mode:

  • The backend is Python (Django), built on a Python base image.
  • The frontend is SvelteKit, running on Node.js.
  • The other services in the standard deployment are Caddy (reverse proxy, written in Go), PostgreSQL, and optionally Qdrant (written in Rust) for the AI features and our MCP server (Python).

The public repository contains no Ruby source files, no Gemfile and no gem. We also inspected the latest published container images for Community and Pro (backend, frontend and MCP server): none of them contains a Ruby interpreter or library. Our SaaS runs the same images. Our website, intuitem.com, is built with Astro and served by Cloudflare, also without Ruby.

No action is needed on your CISO Assistant instances.

One point to check: Ruby often runs next to a GRC tool rather than inside it. GitLab, GitHub Enterprise Server, OpenProject, Redmine, Discourse, Mastodon and Chatwoot are Ruby applications. If you run any of them yourself, patch them as described below.

If you run Ruby elsewhere

Ruby is less common than Java or PHP in enterprise stacks, but it is often bundled in self-hosted tools that teams install and forget. Prioritise anything reachable from the internet.

1. Find your Ruby runtimes

Inventory every Ruby interpreter, including those bundled inside applications and container images. GitLab’s Omnibus package, GitHub Enterprise Server and Discourse’s Docker setup each ship their own copy, so updating the system Ruby does not fix them. In containers, look for images built from the official ruby images and for libruby in your image scans. Updating gems, including Rails, does not help: the fix is in the interpreter.

2. Patch

Patching is the only complete fix. The Ruby project’s fixed releases, published on November 18, are:

BranchAffectedFixed in
4.04.0.0 – 4.0.94.0.10
3.43.4.0 – 3.4.123.4.13
3.33.3.13 and less3.3.14

Ruby 3.2 and earlier are end-of-life and will not be fixed: move to a supported version. Linux distributions backport fixes on their own schedule, so check your vendor’s advisory rather than comparing version numbers. Restart the application after updating: Ruby workers keep the old interpreter in memory until they restart.

For bundled Ruby, update the product itself. Versions with the fix include:

ProductFixed versions
GitLab CE/EE19.6.1, 19.5.8, 19.4.10
GitHub Enterprise Server3.22.6, 3.21.11, 3.20.13, 3.19.17
Mastodon4.7.6, 4.6.12, 4.5.22, 4.4.29
OpenProject17.9.8, 17.8.3
Chatwoot4.20.1
Discourse (Docker install)base image 2.0.20261119-0203 or later

GitLab.com and GitLab Dedicated are already patched. Self-compiled GitLab installations must rebuild Ruby themselves.

3. Reduce exposure until you can patch

No official workaround exists. Until you can patch:

  • Take internet-facing Ruby applications off the public network where you can, or put them behind a VPN or an access proxy.
  • Some WAF vendors have published rules that target the overflow. They can help, but they do not replace the patch.
  • Review your own code for case conversion of user input in single-byte encodings, and for regular expressions built from user input.

4. Look for signs of compromise

  • Unexpected crashes or restarts of Ruby workers (Puma, Unicorn, Sidekiq), with segmentation faults or [BUG] reports in the logs.
  • Requests that declare an ISO-8859-1 or Windows-1252 charset and carry long runs of ß (byte 0xDF, or %DF once URL-encoded), followed by errors or worker restarts.
  • A Ruby process starting a shell or an unusual child process. This is the strongest sign.

References

If you have questions about your CISO Assistant deployment, contact us.

Back to Blog

Related Posts

View All Posts »
Java4Shell (CVE-2026-114938): CISO Assistant is not affected

Java4Shell (CVE-2026-114938): CISO Assistant is not affected

A memory corruption flaw in the Java Base64 decoder can lead to remote code execution in Jira, Jenkins, Keycloak and other Java applications. CISO Assistant does not use Java, so it is not affected. Here is what the flaw is, and what to do if you run Java elsewhere.