---
schema: 1
kind: vulnerability
title: "Ruby 4.0.10, 3.4.13 and 3.3.14: seven memory-safety flaws in the regexp engine and string case conversion, three rated Critical by the project, with proofs of concept for code execution; Veria Labs says Rails and classic Sinatra are exposed by default and announces a public Rails exploit for 25 November 2026 (CVE-2026-132825, CVSS 3.1 7.4)"
headline: "Ruby 4.0.10, 3.4.13, 3.3.14 fix seven memory flaws; a Rails exploit is announced for 25 November: update the interpreter"
summary: >
  The Ruby project released 4.0.10, 3.4.13 and 3.3.14 on 2026-11-18 for seven memory-corruption flaws in the regexp engine and in string case conversion, three rated Critical, and says it knows of proofs of concept that reach remote code execution. Veria Labs, which found the case-conversion flaw independently (CVE-2026-132825, a one-byte heap overflow), says Rails and classic-style Sinatra are exposed without authentication in their default configuration and plans to publish a code-execution proof of concept on stock Rails on 25 November 2026; no exploitation is reported. Ruby 3.2 and earlier are end of life, and the interpreter itself, not a gem, must be updated.
discovered_at: "2026-11-20T05:07:00Z"
updated_at: null
event_date: "2026-11-18"
run_id: 2026-11-20T0356Z-intel
priority: high
immediate_action: null
tags: [vulnerabilities, rce, pre-auth, patch-available]
regions: [global]
sectors: [public-sector, technology]
entities: ["product:ruby"]
techniques: [T1190]
affected_products: ["Ruby"]
cves:
  - id: CVE-2026-132825
    cvss: "7.4"
    epss: null
    type: memory-corruption
    vector: zero-click
    auth: pre-auth
    status: [patch-available]
    affected: "Ruby 3.3.13 and earlier, 3.4.0 to 3.4.12, 4.0.0 to 4.0.9, where an attacker-controlled string in a single-byte encoding such as ISO-8859-1 or Windows-1252 reaches a case-changing method; Ruby 3.2 and earlier are end of life"
    fixed: "3.3.14; 3.4.13; 4.0.10; no fix for Ruby 3.2 and earlier"
sources:
  - url: "https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/"
    publisher: "Ruby project"
    date: "2026-11-18"
    role: primary
  - url: "https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5"
    publisher: "Ruby project (GHSA-34m4-m9fh-gqp5)"
    date: "2026-11-18"
    role: primary
  - url: "https://security-hub.ncsc.admin.ch/#/posts/13205"
    publisher: "NCSC.ch Cyber Security Hub"
    date: "2026-11-19"
    role: corroborating
  - url: "https://verialabs.com/ruby2shell/"
    publisher: "Veria Labs"
    date: "2026-11-20"
    role: corroborating
  - url: "https://watchtowr.com/intelligence/ruby-cve-2026-132825-faq/"
    publisher: "watchTowr"
    date: "2026-11-19"
    role: corroborating
  - url: "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-129481"
    publisher: "ENISA EUVD (EUVD-2026-129481)"
    date: "2026-11-19"
    role: corroborating
closed_sources: []
evidence:
  - quote: "We are aware of PoCs that prove some of them can be used to trigger remote code execution."
    publisher: "Ruby project"
    source_url: "https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/"
  - quote: "We'll be publishing a proof of concept demonstrating remote code execution on stock Rails on 25 November 2026"
    publisher: "Veria Labs"
    source_url: "https://verialabs.com/ruby2shell/"
  - quote: "Proof of Concepts will become available in a week."
    publisher: "NCSC.ch Cyber Security Hub"
    source_url: "https://security-hub.ncsc.admin.ch/#/posts/13205"
verification: multi-source
sourcing_note: >
  The Ruby project is the disclosing party and published seven GitHub advisories by GHSA id because CVE ids had not been assigned. CVE-2026-132825, assigned by MITRE and not by the Ruby project, names the case-conversion overflow (GHSA-34m4), and ENISA lists it under a different GHSA id; the other six flaws have no CVE id yet. The default-configuration exposure of Rails and Sinatra, the product list and the 25 November proof-of-concept date come from Veria Labs (and, for Rails and Sinatra, NCSC.ch and watchTowr), not from the Ruby advisories, which name no product. Veria Labs says it found the flaw independently and was the first to demonstrate remote code execution, and its page acknowledges the project's credit.
confidence: high
references: []
deep_dive: false
deep_dive_category: null
org_triage: null
classification:
  reliability: A
  credibility: 2
watchlist_hit: false
actions:
  - "Update the Ruby interpreter to 4.0.10, 3.4.13 or 3.3.14 on every application host, worker, CI runner and container image that runs Rails, Sinatra or other Ruby code that handles untrusted text, rebuild the images and restart the workers before Veria Labs' announced exploit of 25 November 2026, because updating a gem does not fix the interpreter and Rails is exposed in its default configuration."
updates: []
migrated_from: null
---

The Ruby project released 4.0.10, 3.4.13 and 3.3.14 on 2026-11-18 to fix seven vulnerabilities in the regexp engine and in string case conversion, and says it is aware of proofs of concept that prove some of them can be used to trigger remote code execution ([Ruby project, 2026-11-18](https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/)). NCSC.ch lists three as Critical, a one-byte heap overflow in case conversion of strings in single-byte encodings such as ISO-8859-1 and Windows-1252, a double free in regexp compilation and a heap overflow from an integer overflow in regexp compilation, and the rest as High or Moderate ([NCSC.ch, 2026-11-19](https://security-hub.ncsc.admin.ch/#/posts/13205)); the project's advisory for the first confirms it can write one byte past the output buffer ([Ruby project, 2026-11-18](https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5)). Most regexp flaws need an application that compiles, matches or stringifies an attacker-controlled pattern, and one needs only a crafted subject string against a fixed case-insensitive backreference pattern; the case-conversion flaw needs attacker-controlled text passed to a case-changing method ([NCSC.ch, 2026-11-19](https://security-hub.ncsc.admin.ch/#/posts/13205)). Affected are Ruby 3.3.13 and earlier, 3.4.0 to 3.4.12 and 4.0.0 to 4.0.9, and Ruby 3.2 and earlier are end of life and unfixed ([Ruby project, 2026-11-18](https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/)).

NCSC.ch and watchTowr say Rails and classic-style Sinatra are exposed to the case-conversion overflow in their default configuration, and watchTowr reports no exploitation as of 2026-11-19 ([NCSC.ch, 2026-11-19](https://security-hub.ncsc.admin.ch/#/posts/13205); [watchTowr, 2026-11-19](https://watchtowr.com/intelligence/ruby-cve-2026-132825-faq/)). Veria Labs, which says it found the flaw independently and first demonstrated code execution, calls it Ruby2Shell, says it is reachable without authentication on Rails and classic Sinatra and that plain Rack and other frameworks are not exposed by default, and plans to publish a proof of concept for remote code execution on stock Rails on 25 November 2026, or later if major vendors have not shipped a fix ([Veria Labs, 2026-11-20](https://verialabs.com/ruby2shell/)). Veria lists GitHub Enterprise Server 3.22.5 and earlier and Chatwoot 4.20.0 and earlier as having no fixed release, and GitLab (fixed in 19.6.1, 19.5.8 and 19.4.10), Mastodon, OpenProject and the Discourse base image as patched; the Ruby advisories name no product, so the vendors' own advisories decide for each ([Veria Labs, 2026-11-20](https://verialabs.com/ruby2shell/)). CVE-2026-132825 names the case-conversion overflow and is scored CVSS 3.1 7.4 with a local attack vector and high complexity ([ENISA EUVD, 2026-11-19](https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-129481)); the Ruby announcement says CVE identifiers were requested and none was assigned at publication, so the other six flaws are known by GHSA id ([Ruby project, 2026-11-18](https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/)).

**Exposure:** Ruby 3.3, 3.4 and 4.0 below the fixed releases that run Rails or classic Sinatra, or any application that passes untrusted text to a case-changing method or compiles untrusted regexp patterns; the interpreter version is shown by `ruby -v`, and self-hosted products that bundle Ruby carry their own fix timeline ([NCSC.ch, 2026-11-19](https://security-hub.ncsc.admin.ch/#/posts/13205)).

**Detection:** crashes, segmentation faults and abnormal restarts of Ruby application workers that coincide with requests carrying long single-byte-encoded text or unusual regexp parameters, and a shell or network tool spawned by a Ruby worker process; these follow from the memory-corruption mechanism, as no source gives detection guidance.

**Defender takeaway:** update the interpreter, not the gems, rebuild container images and restart workers before the announced proof of concept; until then NCSC.ch's temporary measures are to avoid compiling regexps from untrusted input and, for the case-conversion flaw, to convert input to UTF-8 so the vulnerable path is not reached ([NCSC.ch, 2026-11-19](https://security-hub.ncsc.admin.ch/#/posts/13205)).
