Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted Latin-1/Windows-1252 string
-
DeliveryReach String case-conversion routine
-
ExploitTrigger one-byte heap buffer overflow
-
ExecutionCorrupt adjacent heap allocation
-
ImpactAchieve 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Ruby before 2.4.3 allows Net::FTP command injection. Rated high severity (CVSS 8.8), this vulnerability is remotely expl
The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injectio
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
Type confusion exists in two methods of Ruby's WIN32OLE class, ole_invoke and ole_query_interface. Rated critical severi
Authenticated remote code execution in OpenC3 COSMOS (Ruby gem 'openc3' versions 5.1.0 through 7.2.1) lets any logged-in
Ruby code execution in Elo (npm @enspirit/elo) through 1.0.0 lets an attacker who controls Elo source gain arbitrary Rub
Type confusion exists in _cancel_eval Ruby's TclTkIp class method. Rated critical severity (CVSS 9.8), this vulnerabilit
An exploitable heap overflow vulnerability exists in the Fiddle::Function.new "initialize" function functionality of Rub
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
Stored XSS in Bugsink error tracking tool before 2.0.13 allows unauthenticated attackers to inject persistent scripts th
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
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
EUVD-2026-129481
GHSA-8452-w857-wpmw
NVD
CVE.org
EPSS
VulDB
Exploit-DB