SecurityWeekIonut Arghire
Ruby patches Ruby2Shell flaw that could enable remote code execution
Part of the CVE-2026-132825 story · since 19 Nov
- Thu 19 Nov, 08:24 UTC. cybersixt, first report. Ruby vulnerabilities: seven memory flaws fixed, RCE PoCs exist.
- Fri 20 Nov, 09:31 UTC. SecurityOnline, its first report on the story. GitLab patches Ruby flaw that could enable remote code execution.
- Fri 20 Nov, 11:00 UTC. SecurityWeek, its first report on the story. Ruby patches Ruby2Shell flaw that could enable remote code execution. This article, 3rd of 3.
Ruby has released patches to fix seven vulnerabilities in its regex engine and string case-conversion logic, including a high‑severity flaw tracked as CVE-2026-132825. The issue, dubbed Ruby2Shell, is a heap‑based buffer overflow in the case conversion of strings that could potentially permit remote code execution in certain conditions.
In affected single‑byte encodings such as ISO-8859‑1 and Windows‑1252, converting the case of a string can cause Ruby to write one byte past the output buffer, potentially corrupting adjacent heap memory. Veria Labs describes how, in default Ruby configurations, unauthenticated attackers could trigger the defect from Rails, classic‑style Sinatra, and possibly other frameworks.
Security researchers note that PoCs exist for five of the seven issues showing RCE potential, while others could lead to memory corruption or denial of service. WatchTowr cites that any Ruby application changing the case of external text in a single‑byte encoding could be affected. Other vulnerabilities addressed in the patch set include a double free, two integer overflows, and a separate heap‑based overflow; PoC code is available for an out‑of‑bounds read as well.
The fixes are included in Ruby versions 4.0.10, 3.4.13, and 3.3.14, and users are urged to apply them promptly. GitHub Enterprise Server is among affected deployments, with several projects such as Chatwoot, GitLab, Mastodon, OpenProject and the Discourse base image already patched, according to the SecurityWeek report dated 20 November 2026.
How the story developed
3 articles from 3 outlets since 19 Nov. Still developing; the latest report was 10 hours ago. This was the 3rd report, 1 day after the first.
- Thu 19 Nov, 08:24 UTC. cybersixt, first report. Ruby vulnerabilities: seven memory flaws fixed, RCE PoCs exist.
- Fri 20 Nov, 09:31 UTC. SecurityOnline, its first report on the story. GitLab patches Ruby flaw that could enable remote code execution.
- Fri 20 Nov, 11:00 UTC. SecurityWeek, its first report on the story. Ruby patches Ruby2Shell flaw that could enable remote code execution. This article, 3rd of 3.
- CVE not in KEV
- No CVE
- Larger: an outlet’s first report
- Coverage over time
Show all 3 articles as a listHide the list
- Thu 19 NovDay 01
- Ruby vulnerabilities: seven memory flaws fixed, RCE PoCs exist08:24 · cybersixt · First report
- Fri 20 NovDay 12
- GitLab patches Ruby flaw that could enable remote code execution09:31 · SecurityOnline
- Ruby patches Ruby2Shell flaw that could enable remote code execution11:00 · SecurityWeek · This article, 3rd of 3