CVE-2026-132825Ruby case conversion heap buffer overflow
CVSS score
7.4
High
CVSS 3.1 from mitre.org
Exploit probability (EPSS)
1.98%
1.98% chance of exploitation in the next 30 days, higher than 81.0% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
In plain words
A local attacker who can supply input that gets case-converted by Ruby can write one byte past a heap buffer, which may crash the process or lead to code execution. Ruby versions before 3.3.14, from 3.4.0 to before 3.4.13, and from 4.0.0 to before 4.0.10 are affected. The attack needs local access and high complexity conditions, and no vendor patch reference is listed yet.
Official description
Ruby before 3.3.14, 3.4.13, and 4.0.10 has a heap-based buffer overflow during case conversion. One byte can be written outside a buffer for, for example, ISO-8859-1 or Windows-1252.
Source: NVD · CNA: cve@mitre.org
How to fix it, step by step
Check whether you're affected
Find every system running ruby-lang Ruby and compare its version with the affected versions.
Update to a fixed version
- Update Ruby to 3.3.14, 3.4.13, 4.0.10 or later, on the branch you run.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Local
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Affected products | Versions |
|---|---|
| ruby-lang Ruby | < 3.3.14 · ≥ 3.4.0, < 3.4.13 · ≥ 4.0.0, < 4.0.10 |
Weakness
- CWE-122 heap-based buffer overflow
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-132825 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 2.0% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-132825?
CVE-2026-132825 has a CVSS 3.1 base score of 7.4 (high).
Which versions are affected?
Ruby Lang Ruby (< 3.3.14; ≥ 3.4.0, < 3.4.13; ≥ 4.0.0, < 4.0.10)
Is there a patch for CVE-2026-132825?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5
- news.ycombinator.com/item?id=50554038
- www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
- www.openwall.com/lists/oss-security/2026/11/20/5
- bugzilla.suse.com/show_bug.cgi?id=1290919
- docs.gitlab.com/releases/patches/patch-release-gitlab-19-6-1-released/
- github.com/evenomn/CVE-2026-132825
- github.com/semgrep/detection-scripts/pull/16
- gitlab.com/gitlab-org/omnibus-gitlab/-/commit/8fcf9d6372da3fe553bd21c3beae70634d6ba936
- lists.debian.org/debian-lts-announce/2026/11/msg00052.html
- ubuntu.com/security/CVE-2026-132825
- verialabs.com/ruby2shell/
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.