Ruby Patches Seven Security Flaws: Which Runtime Versions to Update

Ruby fixed seven regex and string vulnerabilities, including five with demonstrated remote code execution. Check fixed versions and bundled runtime exposure.

Nov 19, 2026
3 minute read
Ruby fixes seven security bugs that could let attackers execute malicious code.

Ruby fixes seven security bugs that could let attackers execute malicious code. Image: Generated via ChatGPT

eSecurity Planet content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Ruby maintainers shipped emergency patches across three active language branches after security researchers demonstrated working code-execution exploits against core string and regular expression routines.

According to the official Ruby security advisory published Wednesday, versions 4.0.10, 3.4.13, and 3.3.14 close seven memory-safety defects. Maintainers rated three issues critical, three high, and one moderate.

While no active exploitation has been confirmed, proof-of-concept (PoC) exploits exist for five bugs. "We are aware of PoCs that prove some of them can be used to trigger remote code execution," Ruby maintainers warned in the advisory.

Advisory IDSeverity Affected ComponentVulnerability TypeMaximum Impact
GHSA-34m4-m9fh-gqp5CriticalString case conversionOne-byte heap overflowRemote code execution (RCE)
GHSA-7x2q-68qv-6p8xCriticalRegex compilationDouble freeRemote code execution (RCE)
GHSA-3p8q-wmhx-vm2wCriticalRegex compilationInteger/heap overflowRemote code execution (RCE)
GHSA-87fm-7w84-j2pxHighString case conversionInteger/heap overflowRemote code execution (RCE)
GHSA-7whj-cfh7-xgm4HighRegexp#to_sHeap buffer overflowInfo disclosure or RCE
GHSA-wpqw-5qxg-m68rHighCase-insensitive regexOut-of-bounds readMemory corruption
GHSA-pvgc-g7gj-pv6hModerateBackreference regexOut-of-bounds readInfo disclosure or crash
Advertisement

The most urgent defect, tracked as GHSA-34m4-m9fh-gqp5 (CVE-2026-132825) and dubbed "ruby2ßhell," triggers a heap overflow when changing string case in legacy single-byte encodings like ISO-8859-1 or Windows-1252. 

Per Veria Labs, UTF-8 strings do not trigger this bug, though default Ruby on Rails and classic-style Sinatra apps face unauthenticated network exposure when handling those legacy encodings.

Why runtime bugs create operational blind spots

Standard Ruby security workflows revolve around updating application gems, yet these defects live inside the C-level language interpreter itself. Simply running bundle update will not remediate an exposed server.

Furthermore, this marks the second major Ruby regex security release in under a month, following Oct. 23 patches for flaws that underpinned critical GitLab bugs, one of which later faced attempted exploitation against Alpine Linux. 

When core parsing primitives repeatedly fail under crafted input, organizations relying on bundled runtimes face prolonged exposure windows while waiting for downstream software vendors to repackage containers.

How this affects Ruby users and operations teams

Advertisement

Enterprise infrastructure teams, SaaS providers, and developers running self-hosted Ruby applications must audit the actual runtime binary executing in production, not just manifest files.

  • Affected releases: Ruby 4.0.0 through 4.0.9, 3.4.0 through 3.4.12, and 3.3.13 and earlier require immediate upgrades to 4.0.10, 3.4.13, or 3.3.14.
  • End-of-life risk: Ruby 3.2 and older branches will receive no patches, forcing teams on legacy versions to complete a full branch migration rather than a quick point release.
  • Downstream software: Veria Labs identified vulnerable bundled Ruby runtimes inside specific versions of GitLab, GitHub Enterprise Server, Mastodon, OpenProject, Discourse, and Chatwoot.
  • Remediation steps: Administrators should prioritize internet-facing services that compile user-supplied regular expressions or perform case conversions on untrusted input, rebuild container images, and restart background workers to load the patched interpreter.

For self-managed applications, update to the fixed release for your branch, rebuild any affected images, and redeploy the web processes and background workers that use them. Verify the Ruby version inside the running deployment. 

Advertisement

For products that ship their own Ruby runtime, check the vendor’s update guidance, since updating the host’s Ruby package can leave the bundled copy untouched. 

Ruby 3.2 and earlier are end of life and won’t receive these fixes from the Ruby project. Track those deployments as migrations to a supported branch or vendor-supported release.

Other news: Wiz launched an AI Security Agent that analyzes application code and cloud permissions to uncover AI agents missing from enterprise inventories and flag potential paths to sensitive data.

Aminu Abdullahi

Aminu Abdullahi

Content Writer

Aminu Abdullahi is a B2C and B2B technology and finance writer with more than six years of experience covering enterprise IT, cybersecurity, cloud computing, artificial intelligence, fintech, business software, and emerging technologies. His work has appeared in publications including TechRepublic, eWEEK, Channel Insider, Geekflare, Enterprise Networking Planet, eSecurity Planet, CIO Insight, and Webopedia. With a technical background in computer science, he specializes in translating complex technology topics into clear, accessible content for business leaders and decision-makers.

eSecurity Planet Logo

eSecurity Planet is a leading resource for IT professionals at large enterprises who are actively researching cybersecurity vendors and latest trends. eSecurity Planet focuses on providing instruction for how to approach common security challenges, as well as informational deep-dives about advanced cybersecurity topics.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.