DEVELOPMENT · RUBY · SECURITY

Ruby: seven security vulnerabilities fixed — how to protect applications

Ruby released fixes for seven vulnerabilities on November 18, 2026. Some proof-of-concept scenarios can lead to remote code execution. Here is how to check and update your deployments.

What the official advisory confirms

On November 18, 2026, the Ruby project disclosed seven vulnerabilities in its regular expression engine and String case conversion operations. Depending on how an application processes crafted inputs, some bugs may cause memory corruption, information disclosure or remote code execution (RCE). Proof-of-concept demonstrations exist for some cases, but this does not establish active exploitation in the wild.

No CVE IDs had been assigned at the time of the advisory. The project uses GitHub Security Advisory (GHSA) identifiers. Avoid treating unverified CVE numbers or the informal label “Ruby2Shell” as confirmed.

Which versions need attention?

  • Ruby 3.3.13 and earlier 3.3 releases: upgrade to 3.3.14.
  • Ruby 3.4.0–3.4.12: upgrade to 3.4.13.
  • Ruby 4.0.0–4.0.9: upgrade to 4.0.10.
  • Ruby 3.2 and older: end of life, requiring migration to a maintained branch.

Linux distributions may backport fixes without adopting the upstream version number. Check your package vendor's advisories before assessing whether an installed build is vulnerable.

When could an application be exposed?

Pay particular attention to services that compile attacker-controlled regular expressions, perform String case conversion on untrusted input or use affected code paths. A Rails or Sinatra service is not automatically exploitable merely because it runs an affected Ruby version. Actual exploitability depends on reachable processing paths and context.

The vulnerabilities include double free, heap buffer overflow and out-of-bounds reads. Review the seven separate advisories: GHSA-34m4-m9fh-gqp5, GHSA-7x2q-68qv-6p8x, GHSA-87fm-7w84-j2px, GHSA-wpqw-5qxg-m68r, GHSA-3p8q-wmhx-vm2w, GHSA-7whj-cfh7-xgm4 and GHSA-pvgc-g7gj-pv6h.

Five practical steps

  1. Inventory: run ruby -v on deployed hosts, containers, build images, workers and background jobs.
  2. Review sensitive input paths: identify dynamically generated Regexp patterns and untrusted String transformations. A matching code pattern alone is not proof of exploitability.
  3. Patch: install a fixed upstream or vendor-backported build and rebuild impacted container images.
  4. Test: run regression tests covering relevant input processing, then deploy progressively.
  5. Monitor: review process crashes and application events; investigate concrete compromise indicators where appropriate.

What vulnerability monitoring should learn

Monitoring only CVE identifiers can miss these advisories while identifiers remain pending. Keep GHSA findings distinct from subsequently assigned CVEs and exploitation evidence. For bundled runtimes, inspect the Ruby version actually shipped rather than assuming project-level dependency lists are complete.

Find more articles in our development and security blog.

Primary source

Ruby — Security advisories: multiple vulnerabilities in Regexp and String case conversion (November 18, 2026).

Published November 21, 2026. Identifiers and versions reflect the advisory available at publication time.