Ruby Fixes Seven Security Vulnerabilities in Regexp Engine and String Case Conversion
Ruby 3.3.14, 3.4.13 and 4.0.10 patch seven vulnerabilities including heap buffer overflows and double-free bugs that could allow remote code execution.

By Elena Rostova, Cybersecurity
, updated 3 min read
The Ruby core team has released security updates for all supported versions after seven vulnerabilities were discovered in the regular expression engine and string case conversion functions. The flaws affect Ruby 3.3, 3.4 and 4.0 series and could allow remote code execution in some cases.
What happened
On 18 and 19 November 2026, the Ruby project published seven security advisories (GHSA-qm4g-8pfh-6996, GHSA-34m4-m9fh-gqp5, GHSA-22mf-ggw7-pxfx, GHSA-gfj3-8wj9-qx8p, GHSA-7x2q-68qv-6p8x, GHSA-87fm-7w84-j2px and one additional) covering vulnerabilities in two core areas:
Regular expression engine (5 issues)
Overflow of internal identifiers during regexp compilation (CVE-2026-54169)
Integer overflow in regexp compilation (CVE-2026-54170)
Double free in regexp parsing (CVE-2026-54171)
Double free in regexp compilation (CVE-2026-54172)
Another double free in regexp compilation (CVE-2026-54173)
String case conversion (2 issues)
Heap buffer overflow in case conversion of strings (CVE-2026-54174)
Integer overflow in case conversion of strings (CVE-2026-54175)
The advisories note that proof-of-concept exploits exist for several of these vulnerabilities and that some can be triggered remotely, for example by processing untrusted regular expressions or strings in web applications.
Affected versions and fixes
Series | Fixed in | Release date |
|---|---|---|
Ruby 3.3 | 3.3.14 | 18 Nov 2026 |
Ruby 3.4 | 3.4.13 | 18 Nov 2026 |
Ruby 4.0 | 4.0.10 | 18 Nov 2026 |
All three releases were published on 18 November 2026. The 4.0.10 release notes explicitly reference the security advisories and list the seven GHSA identifiers.
Why it matters
Ruby's regular expression engine and string handling are used pervasively in web applications, background jobs and data processing pipelines. A crafted regular expression or string passed to methods like upcase, downcase, swapcase or capitalize could trigger memory corruption. Applications that accept user-supplied regex patterns or process untrusted text input are especially exposed.
The vulnerabilities were reported by joaxcar, stanhu and mame through the Ruby security reporting process. The Ruby team credits the finders in each advisory.
What to do
Upgrade immediately to Ruby 3.3.14, 3.4.13 or 4.0.10. If you use a managed runtime (Heroku, Render, Fly.io, AWS Elastic Beanstalk, etc.), check your provider's update schedule. Container images based on official Ruby Docker images should be rebuilt from the updated base images.
For applications that cannot upgrade immediately, avoid processing untrusted regular expressions and sanitise or limit string case conversion on untrusted input.
Sources
- 1Ruby Security Advisories (GitHub)github.com
- 2Ruby 4.0.10 Release Notesgithub.com
- 3Ruby 3.4.13 Release Notesgithub.com
- 4CVE-2026-54169github.com
- 5CVE-2026-54174github.com