> ## Content Index
> Fetch the complete content index at: https://stackurity.ai/blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# Ruby fixes CVE-2026-132825 heap overflow: upgrade to 3.4.13
- URL: https://stackurity.ai/blog/ruby-cve-2026-132825-heap-overflow-ruby2shell-upgrade/
- Published: 2026-11-22T03:35:05.000Z
- Updated: 2026-11-22T03:35:05.000Z
- Description: Ruby patched a heap buffer overflow in case conversion that could lead to code execution. Which versions are fixed and how to find every Ruby you run.
- Author: Stackurity Research Team
- Tags: Linux Servers, News, #noindex

**TL;DR:** Ruby has fixed a heap buffer overflow in its string case conversion, tracked as CVE-2026-132825 and nicknamed Ruby2Shell. Upgrade to Ruby 3.3.14, 3.4.13 or 4.0.10, or a later release of your line, and rebuild anything that bundles its own Ruby.

## What happened

[SecurityWeek](https://www.securityweek.com/ruby-patches-ruby2shell-vulnerability-that-could-lead-to-rce/) reports that the Ruby maintainers fixed a memory-corruption bug on the heap that an attacker might turn into remote code execution. The [NVD entry for CVE-2026-132825](https://nvd.nist.gov/vuln/detail/CVE-2026-132825) explains the mechanism: when Ruby changes the case of a string in certain single-byte encodings, it can write one byte past the end of its buffer.

NVD lists a CVSS v3.1 score of 7.4 (high) from cve@mitre.org, with a local attack vector and high attack complexity. Each supported release line got its own fix, listed in the summary above, so any older release in those lines is affected. The reporting we reviewed does not say the flaw is exploited in the wild, and it is not in the CISA Known Exploited Vulnerabilities catalogue today, so this is a prompt-patching job rather than an emergency.

## Am I affected?

You are in scope if any server, container image or application runs a Ruby older than the fixed releases for its line. That includes web apps, background workers, build agents and tools that ship their own Ruby. Software that bundles Ruby, such as some self-hosted developer platforms, needs the vendor's rebuilt package, not just a system update.

On one server, run `ruby --version` and compare the result with the fixed releases above. Linux distributions often backport the fix without changing the upstream version number, so also read your distribution's security notice for CVE-2026-132825 before you decide a package is still vulnerable.

## How to check with Stackurity

Stackurity keeps one live inventory of the software on your servers, repositories and container images, and matches it against new vulnerability advisories every hour. Ruby installed from a distribution package is matched using that distribution's own version rules, so backported fixes are not reported as false alarms. Ruby installed by hand outside a package manager is checked for end of life only, not for this vulnerability, so check those machines manually. Appliance firmware and libraries copied into an application are also outside what Stackurity covers.

After you upgrade, Stackurity checks again and records whether the issue is really gone. The [remediation guide](https://stackurity.ai/docs/remediation) shows how the upgrade list is ordered and verified.

[Start a free Stackurity trial](https://app.stackurity.dev/signup?utm%5Fsource=blog&utm%5Fmedium=referral&utm%5Fcampaign=linux-servers&utm%5Fcontent=ruby-cve-2026-132825-heap-overflow-ruby2shell-upgrade)