The Hacker News
Ruby fixes seven flaws, five with proof of concept RCE
Part of the Ruby story · since 19 Nov
- Thu 19 Nov, 08:24 UTC. cybersixt, first report. Ruby vulnerabilities: seven memory flaws fixed, RCE PoCs exist.
- Thu 19 Nov, 09:00 UTC. The Hacker News, its first report on the story. Ruby fixes seven flaws, five with proof of concept RCE. This article, 2nd of 2.
Ruby has patched seven memory-safety flaws in its regular expression engine and string case-conversion code, with five of them demonstrated by proof-of-concept exploits that can trigger remote code execution. The maintainers say PoCs exist showing some flaws can be used to execute code remotely. The fixes are included in Ruby 4.0.10, 3.4.13 and 3.3.14, with exposure depending on whether an attacker can supply crafted patterns or strings to affected code; advisories note no attacks have been observed to date.
Two of the flaws are described as weaker: one can corrupt memory under an attacker’s control but has not been shown to execute code, and another can only read memory or crash the process. The seven flaws were disclosed in a single security announcement and separate advisories, which rate three as critical, three as high, and one as moderate, and indicate which carry remote-code-execution PoCs.
Critical flaws include GHSA-34m4-m9fh-gqp5 (case-changing in single-byte encodings), GHSA-7x2q-68qv-6p8x (double free in crafted regex with character-class intersection), and GHSA-3p8q-wmhx-vm2w (heap overflow during regex compilation). The project notes that the seven issues currently have no assigned CVEs; GitHub advisory IDs are the trackable references until CVEs are allocated.
The Ruby maintainers credit Stephan Lipp of Ada Logics and Anthropic for four of the findings, with baba__yaga, aphantom, Hiroya Fujinami and Hiroshi SHIBATA credited for the remaining three.
Affected versions and mitigation guidance are laid out in the advisories: Ruby 4.0.0–4.0.9 are fixed in 4.0.10; Ruby 3.4.0–3.4.12 are fixed in 3.4.13; Ruby 3.3.13 and earlier are fixed in 3.3.14; Ruby 3.2 and earlier are end of life and not fixed. Because the fixes ship with Ruby itself, updating application dependencies (gems or frameworks) does not replace a vulnerable interpreter; the Ruby runtime on servers, workers and containers must be updated and the services restarted or rebuilt. The advisories caution that the seven flaws do not yet have CVEs, and tracking will rely on the GitHub advisory IDs until CVEs are assigned.
How the story developed
2 articles from 2 outlets since 19 Nov. Still developing; the latest report was 12 hours ago. This was the 2nd report, within the hour.
- Thu 19 Nov, 08:24 UTC. cybersixt, first report. Ruby vulnerabilities: seven memory flaws fixed, RCE PoCs exist.
- Thu 19 Nov, 09:00 UTC. The Hacker News, its first report on the story. Ruby fixes seven flaws, five with proof of concept RCE. This article, 2nd of 2.
- CVE not in KEV
- No CVE
- Larger: an outlet’s first report
- Coverage over time
Show all 2 articles as a listHide the list
- Thu 19 NovDay 02
- Ruby vulnerabilities: seven memory flaws fixed, RCE PoCs exist08:24 · cybersixt · First report
- Ruby fixes seven flaws, five with proof of concept RCE09:00 · The Hacker News · This article, 2nd of 2