Heap-based buffer overflow in Ruby - CVE-2026-132825

 

Heap-based buffer overflow in Ruby - CVE-2026-132825

Published: November 21, 2026


Vulnerability identifier: #VU168950
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-132825
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code in some scenarios.

The vulnerability exists due to a heap-based buffer overflow in Ruby's string case conversion when the converted output extends one byte past the end of the output buffer. A remote attacker can supply a crafted string to an application that changes its case and potentially execute arbitrary code.

The overflow occurs with some single-byte encodings, including ISO-8859-1 and Windows-1252.


Affected software

Ruby
Debian Linux
ruby3.3 (Debian package)

How to mitigate CVE-2026-132825

Install security update from vendor's website.

Ruby - addressed in versions 3.3.14, 3.4.13, 4.0.10
ruby3.3 (Debian package) - update to 3.3.14-0+deb13u1

External References

Related Security Bulletins