Ruby2Shell: Ruby vulnerabilities in regular expression and string handling (CVE-2026-132825 / GHSA-34m4-m9fh-gqp5)

What happened

On November 18, 2026, the Ruby project fixed seven memory-safety vulnerabilities in the Ruby interpreter, three of them rated critical. Crafted input can let an attacker run code on the affected server. The most severe one, publicly known as “Ruby2Shell” (CVE-2026-132825 / GHSA-34m4-m9fh-gqp5), can be reached in Rails and classic-style Sinatra applications in their default configuration.

No attacks have been reported yet. Researchers plan to publish exploit code shortly. The fixed versions are Ruby 4.0.10, 3.4.13 and 3.3.14. Details are in the Ruby security announcement.

What this means for Dynatrace

Dynatrace SaaS and Managed: Not affected, because our platforms do not use Ruby.

OneAgent: Not affected, because the OneAgent Ruby code module does not include its own Ruby runtime. It runs within the Ruby installation of the monitored application, so it neither introduces nor fixes these vulnerabilities. That installation, not OneAgent, determines exposure. No OneAgent update is required. We are testing OneAgent on the fixed Ruby versions to confirm full compatibility.

fluent-plugin-dynatrace: Not affected, because the plugin does not include Ruby. It runs on the same Ruby installation as Fluentd, so upgrading that Ruby resolves the issue.

Internal systems: Some of our build and test environments use Ruby. They are internal and not reachable by customers, so there is no customer impact. We are updating them to the fixed versions as a precaution.

What you should do

Upgrade Ruby on all systems that run Ruby applications, including servers, background workers, container images and CI runners. Then restart or rebuild the affected services. Updating gems or frameworks alone does not fix these vulnerabilities.

Ruby version Upgrade to
4.0.0 to 4.0.9 4.0.10
3.4.0 to 3.4.12 3.4.13
3.3.0 to 3.3.13 3.3.14
3.2 and earlier A supported version. No fix will be released.

Prioritize internet-facing Rails and Sinatra applications, because they are exposed in their default configuration.

Check self-hosted software that bundles Ruby, such as GitLab or GitHub Enterprise Server. Follow each vendor’s advisory, and limit network access to these systems until a fixed release is installed.

If you use OneAgent or fluent-plugin-dynatrace, no Dynatrace update is needed. Upgrading the underlying Ruby is sufficient.

Get notified about new security alerts or report a vulnerability

Dynatrace takes a proactive approach in communicating security vulnerability information to customers. Learn more about Dynatrace security and our security policy. To report a security issue, email security@dynatrace.com.

RSS feed Report issue