# Ruby2Shell: A One-Byte Overflow to RCE

DevFeed: [Ruby2Shell: A One-Byte Overflow to RCE](<https://devfeed.tech/articles/ruby2shell-a-one-byte-overflow-to-rce-147237.md>)

Original publisher: [Read original article](<https://thecyberthrone.in/2026/11/21/ruby2shell-a-one-byte-overflow-to-rce/>)

Author: PravinKarthik

Published: 2026-11-21T09:48:58Z

Content type: article

Language: en

Sources: [Cyber Newsroom](<https://devfeed.tech/sources/cyber-newsroom.md>)

Topics: [heap overflow](<https://devfeed.tech/topics/heap-overflow.md>), [Ruby](<https://devfeed.tech/topics/ruby.md>), [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>)

Tags: [application-servers](<https://devfeed.tech/tags/application-servers.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [buffer-overflow](<https://devfeed.tech/tags/buffer-overflow.md>), [business-logic](<https://devfeed.tech/tags/business-logic.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [code-execution](<https://devfeed.tech/tags/code-execution.md>), [containers](<https://devfeed.tech/tags/containers.md>), [crashes](<https://devfeed.tech/tags/crashes.md>), [discourse](<https://devfeed.tech/tags/discourse.md>), [encoding](<https://devfeed.tech/tags/encoding.md>), [end-of-life](<https://devfeed.tech/tags/end-of-life.md>), [exploitation](<https://devfeed.tech/tags/exploitation.md>), [github-enterprise-server](<https://devfeed.tech/tags/github-enterprise-server.md>), [gitlab](<https://devfeed.tech/tags/gitlab.md>), [heap-buffer-overflow](<https://devfeed.tech/tags/heap-buffer-overflow.md>), [rce](<https://devfeed.tech/tags/rce.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [ruby2shell](<https://devfeed.tech/tags/ruby2shell.md>), [security](<https://devfeed.tech/tags/security.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>)

## AI overview

Ruby2Shell (CVE-2026-132825) is a one-byte heap overflow in Ruby string case conversion: under specific non-UTF-8 encoding conditions, Ruby can miscalculate space for expanded uppercase output, potentially causing crashes, memory corruption or code execution. Rack method-override processing may expose the path before application authentication in Rails and classic-style Sinatra, but exposure depends on runtime, request path and attacker-controlled encoding. Affected releases are Ruby 3.3.13 and earlier, 3.4.0-3.4.12, and 4.0.0-4.0.9; fixes are 3.3.14, 3.4.13 and 4.0.10. Teams should inventory runtimes in servers, containers, CI/CD and self-hosted platforms, verify product versions and reachable middleware paths, and upgrade. Restrict networks and avoid untrusted legacy-encoded input if upgrades are delayed; UTF-8 normalization may reduce exposure in specific cases but does not replace patching.

## Source excerpt

Ruby2Shell: A One-Byte Overflow to RCE Ruby has become the latest programming language to attract serious security attention with the disclosure of Ruby2Shell, a heap-based buffer overflow vulnerability that could potentially allow remote ... Read more Published Date: Nov 21, 2026 (2 hours, 12 minutes ago) Vulnerabilities has been mentioned in this article. CVE-2026-126714 CVE-2026-132825