Skip to main content

Ruby EUVDEUVD-2026-129481

| CVE-2026-132825 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-11-19 mitre GHSA-8452-w857-wpmw
7.4
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply crafted Latin-1/Windows-1252 string
  2. Delivery
    Reach String case-conversion routine
  3. Exploit
    Trigger one-byte heap buffer overflow
  4. Execution
    Corrupt adjacent heap allocation
  5. Impact
    Achieve code execution in some scenarios

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the affected Ruby version to perform a case-conversion operation (e.g. String#upcase, #downcase, #capitalize, #swapcase) on an attacker-influenced string that is in a single-byte encoding such as ISO-8859-1 or Windows-1252. Because Ruby's default string encoding is UTF-8, the application must explicitly use or tag input with one of these legacy single-byte encodings for the bug to trigger - this is the primary limiting factor and the reason for AC:H. The result is a one-byte out-of-bounds heap write; the vendor states RCE is achievable only 'in some scenarios,' so impact is not guaranteed. Affected: Ruby <= 3.3.13, 3.4.0-3.4.12, and 4.0.0-4.0.9. Per the vendor, upgrading to 3.3.14, 3.4.13, or 4.0.10 is the remedy.

Impact

Signals are mixed and should be read together. CVSS 3.1 is 7.4 (High) with an unusual profile: AV:L and AC:H lower the score, while PR:N/UI:N and C:H/I:H/A:H raise it. The NVD AV:L rating conflicts with the vendor GHSA, which frames the bug as enabling 'remote code execution' - verify reachability with the deployment context, because whether this is network-reachable depends entirely on whether the affected application case-converts attacker-supplied Latin-1/Windows-1252 strings. The ruby-lang advisory confirms the vendor is aware of PoCs that demonstrate RCE in some scenarios, which raises real-world concern beyond a theoretical one-byte write, but no public weaponized exploit code is linked in the provided data. Not in CISA KEV, and no EPSS score was supplied, so there is no evidence of widespread active exploitation. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a serious but not actively-exploited-at-scale flaw. Net: a credible RCE-capable memory-safety bug in a very widely deployed language runtime, gated by AC:H and a non-default string encoding precondition - prioritize patching this week rather than treating it as an immediate emergency, unless you run Ruby apps that normalize case on untrusted Latin-1/Windows-1252 input.

Exploit ScenarioDerived

A Ruby application performs case conversion (e.g. String#upcase/#downcase) on untrusted input whose encoding is ISO-8859-1 or Windows-1252; an attacker submits a crafted string that forces a one-byte write past the end of the output heap buffer. In some scenarios this heap corruption can be steered into remote code execution - the vendor reports awareness of PoCs proving RCE, though no public exploit code is linked. The AC:H rating reflects that reliable exploitation depends on heap state and the specific non-default encoding being in use.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 19, 2026

Heap-based buffer overflow in Ruby's case conversion of strings can write one byte past the output buffer when an application calls methods such as String#upcase, #downcase, #capitalize, or #swapcase on attacker-influenced input that is explicitly encoded or tagged as ISO-8859-1 or Windows-1252. Affected branches are Ruby <= 3.3.13, 3.4.0-3.4.12, and 4.0.0-4.0.9; the vendor states RCE is achievable in some scenarios and reports awareness of PoCs that demonstrate RCE in some scenarios, while the default UTF-8 encoding limits reachability because the application must opt into a legacy single-byte encoding. CISA KEV status is not indicated in the provided data.

RemediationAI

Vendor-released patch: upgrade to Ruby 3.3.14, 3.4.13, or 4.0.10 as appropriate for the affected branch; the Ruby security advisory states applications should upgrade. No alternative workaround is documented in the provided advisory data, so updating is the remedy stated by the vendor. Apply the exact fixed release for each branch (3.3.x to 3.3.14, 3.4.x to 3.4.13, 4.0.x to 4.0.10) and refer to the vendor advisory at https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/ and the GitHub advisory at https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5. The vuln.today priority label is this_week.

Affected VersionsENISA

Ruby 4.0.0 <4.0.10
Ruby 3.4.0 <3.4.13
Ruby 0 <3.3.14

Affected Packages

euvd ruby fix: 3.3.14, 3.4.13, 4.0.10

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Ruby strings carry an encoding, and case-conversion methods process characters according to that encoding. The flaw is a one-byte out-of-bounds heap write in the output buffer for some single-byte encodings such as ISO-8859-1 and Windows-1252. CVE metadata lists CWE-122; the GitHub security advisory labels the issue CWE-193 (off-by-one), reflecting the same one-byte overflow. The vendor says the overflow may allow remote code execution in some scenarios; the independent assessment rates it AV:N/AC:H/PR:N/UI:N with high confidentiality, integrity, and availability impact because exploitation requires the application to perform case conversion on attacker-influenced data in one of those legacy encodings. Because Ruby defaults to UTF-8, applications that never use or tag input with a single-byte encoding are not on the vulnerable path. The trigger is case conversion of a crafted string; the provided sources do not detail the precise character sequence or heap layout needed beyond that.

Know when Ruby gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 7.4 HIGH
AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.1 HIGH

Reachable remotely where apps case-convert untrusted input, but the non-default Latin-1/Windows-1252 encoding requirement and heap-dependent one-byte write justify AC:H; vendor confirms potential RCE giving C/I/A:H.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 9.8 CRITICAL

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 08:01 EUVD
CVE Published
Nov 19, 2026 - 06:34 cve.org
HIGH 7.4

DescriptionCVE.org

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.

Technical POC Analysis

Evidence caveat: the supplied material is the GHSA-34m4-m9fh-gqp5 advisory text only.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-132825 is a high-severity heap buffer overflow in Ruby affecting string case conversion methods when input is encoded in legacy single-byte encodings like ISO-8859-1 or Windows-1252. The vulnerability can be triggered by attacker-controlled input, potentially leading to remote code execution in some scenarios, impacting any application or service that uses Ruby and processes such input. Leadership should prioritize remediation due to the confirmed public proof-of-concept and the broad use of Ruby in critical systems.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: strictly validate and sanitize all user input to ensure strings are UTF-8 encoded before calling case conversion methods; avoid or disable legacy single-byte encodings (ISO-8859-1/Windows-1252) in application code; deploy a WAF with rules to detect and block attacks exploiting this vulnerability; monitor for signs of exploitation and apply network segmentation to limit potential impact.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
High
Ruby is a very widely deployed application language runtime across web and tooling
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

More in Ruby

View all
CVE-2017-17405 HIGH POC
8.8 Dec 15

Ruby before 2.4.3 allows Net::FTP command injection. Rated high severity (CVSS 8.8), this vulnerability is remotely expl

CVE-2017-17790 CRITICAL POC
9.8 Dec 20

The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injectio

CVE-2017-14064 CRITICAL POC
9.8 Aug 31

Ruby through 2.2.7, 2.3.x through 2.3.4, and 2.4.x through 2.4.1 can expose arbitrary memory during a JSON.generate call

CVE-2016-2336 CRITICAL POC
9.8 Jan 06

Type confusion exists in two methods of Ruby's WIN32OLE class, ole_invoke and ole_query_interface. Rated critical severi

CVE-2026-77602 CRITICAL POC
9.9 Sep 23

Authenticated remote code execution in OpenC3 COSMOS (Ruby gem 'openc3' versions 5.1.0 through 7.2.1) lets any logged-in

CVE-2026-44266 CRITICAL POC
9.8 Nov 03

Ruby code execution in Elo (npm @enspirit/elo) through 1.0.0 lets an attacker who controls Elo source gain arbitrary Rub

CVE-2016-2337 CRITICAL POC
9.8 Jan 06

Type confusion exists in _cancel_eval Ruby's TclTkIp class method. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2016-2339 CRITICAL POC
9.8 Jan 06

An exploitable heap overflow vulnerability exists in the Fiddle::Function.new "initialize" function functionality of Rub

CVE-2017-9225 CRITICAL POC
9.8 May 24

An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7

CVE-2026-27614 CRITICAL POC
9.3 Feb 25

Stored XSS in Bugsink error tracking tool before 2.0.13 allows unauthenticated attackers to inject persistent scripts th

CVE-2017-0898 CRITICAL POC
9.1 Sep 15

Ruby before 2.4.2, 2.3.5, and 2.2.8 is vulnerable to a malicious format string which contains a precious specifier (*) w

CVE-2013-4164 MEDIUM POC
6.8 Nov 23

Heap-based buffer overflow in Ruby 1.8, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1 before 2.1.0 preview2, and tru

Vendor StatusVendor

References

Advisories & patches
ADVISORY https://access.redhat.com/errata/RHSA-2026:100837 ADVISORY https://access.redhat.com/errata/RHSA-2026:101632 ADVISORY https://access.redhat.com/errata/RHSA-2026:101662 ADVISORY https://access.redhat.com/errata/RHSA-2026:102714 ADVISORY https://access.redhat.com/errata/RHSA-2026:102715 ADVISORY https://access.redhat.com/errata/RHSA-2026:102854 ADVISORY https://access.redhat.com/errata/RHSA-2026:102869 ADVISORY https://access.redhat.com/errata/RHSA-2026:102883 ADVISORY https://access.redhat.com/errata/RHSA-2026:102909 ADVISORY https://access.redhat.com/errata/RHSA-2026:102928 ADVISORY https://access.redhat.com/errata/RHSA-2026:103450 ADVISORY https://access.redhat.com/errata/RHSA-2026:103534 ADVISORY https://access.redhat.com/errata/RHSA-2026:103535 ADVISORY https://access.redhat.com/errata/RHSA-2026:103536 ADVISORY https://access.redhat.com/errata/RHSA-2026:103537 ADVISORY https://access.redhat.com/errata/RHSA-2026:103790 ADVISORY https://access.redhat.com/errata/RHSA-2026:103804 ADVISORY https://access.redhat.com/errata/RHSA-2026:103805 ADVISORY https://access.redhat.com/errata/RHSA-2026:103842 ADVISORY https://access.redhat.com/errata/RHSA-2026:103843 ADVISORY https://access.redhat.com/errata/RHSA-2026:103846 ADVISORY https://access.redhat.com/errata/RHSA-2026:103850 ADVISORY https://access.redhat.com/errata/RHSA-2026:103851 ADVISORY https://access.redhat.com/errata/RHSA-2026:103943 ADVISORY https://access.redhat.com/errata/RHSA-2026:104034 ADVISORY https://access.redhat.com/errata/RHSA-2026:104035 ADVISORY https://access.redhat.com/errata/RHSA-2026:104036 ADVISORY https://access.redhat.com/errata/RHSA-2026:104037 ADVISORY https://access.redhat.com/errata/RHSA-2026:104038 ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-132825 ADVISORY https://vuldb.com/vuln/439923 REF http://www.openwall.com/lists/oss-security/2026/11/20/5 REF https://bugzilla.suse.com/show_bug.cgi?id=1290919 REF https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-6-1-released/ REF https://github.com/evenomn/CVE-2026-132825 REF https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5 REF https://github.com/semgrep/detection-scripts/pull/16 REF https://gitlab.com/gitlab-org/omnibus-gitlab/-/commit/8fcf9d6372da3fe553bd21c3beae70634d6ba936 REF https://lists.debian.org/debian-lts-announce/2026/11/msg00052.html REF https://news.ycombinator.com/item?id=50554038 REF https://ubuntu.com/security/CVE-2026-132825 REF https://verialabs.com/ruby2shell/ REF https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy