Skip to content
Veria Labs·Indexed by this site · Originally published· Event →· Its place in the scan record →

Ruby2Shell (CVE-2026-132825): case-conversion heap overflow, Rails default configuration affected

Ruby2Shell (CVE-2026-132825)

AI summary

Veria Labs disclosed the Ruby vulnerability CVE-2026-132825 (Ruby2Shell): Ruby has a one-byte heap overflow when performing case conversion under multiple legacy single-byte encodings, present since 2.4.0. Converting ß to uppercase writes two bytes while the loop checks the boundary only once, and the output buffer is allocated as input length plus 20 bytes, so input containing 21 ß characters overflows by one byte; upcase, swapcase, downcase(:fold), and casecmp? can reach it, and UTF-8 is unaffected. Rails and classic-style Sinatra default configurations can reach it; fixed versions are 4.0.10, 3.4.13, and 3.3.14, and 3.2 and earlier are no longer supported; GitHub Enterprise Server 3.22.5 and earlier and Chatwoot 4.20.0 and earlier have no fixed version yet, while GitLab, Mastodon, OpenProject, and Discourse have released fixes.

Read originalverialabs.com