Security News cve security-updates
SEC News High

Ruby patches Ruby2Shell heap overflow in string case conversion

Ruby released fixes for a heap-based buffer overflow in string case conversion that carries a CVSS score of 7.4 and could potentially lead to remote code execution.

KT Kusal Tharindu

Ruby has released fixes for CVE-2026-132825, a heap-based buffer overflow in the language’s case conversion of strings. The vulnerability record classifies the flaw as CWE-122, the Common Weakness Enumeration entry for a heap-based buffer overflow, and gives it a CVSS (Common Vulnerability Scoring System) base score of 7.4, rated high.

What is affected

The affected ranges are Ruby before 3.3.14, Ruby from 3.4.0 before 3.4.13, and Ruby from 4.0.0 before 4.0.10. The record was published on November 19, 2026.

According to SecurityWeek, the flaw is dubbed Ruby2Shell and is described as a heap-based buffer overflow in the case conversion of strings that could potentially lead to RCE (remote code execution) in certain scenarios. The report says that in some single-byte encodings, including ISO-8859-1 and Windows-1252, Ruby may write one byte past the output buffer when changing the case of a string.

Why it matters

The report states that GitHub Enterprise Server is affected. It also lists Chatwoot, GitLab, Mastodon, OpenProject, and the Discourse base image as projects that have patched the bug.

What to do

According to SecurityWeek, patches for the seven vulnerabilities were included in Ruby versions 4.0.10, 3.4.13, or 3.3.14. Installations in the affected ranges should move to the fixed release for their line.

Sources

  1. NVD: CVE-2026-132825
  2. SecurityWeek: Ruby Patches Ruby2Shell Vulnerability That Could Lead to RCE
3 posts

Discussion

Spotted an error? Send corrections to [email protected] .

Search Oxelan Signal

Type to search the archive.

Search by title, tag, summary or body text.