AI NewsInfrastructureReported

Ruby2Shell is a critical heap overflow reaching Rails and Sinatra without login

Veria Labs disclosed Ruby2Shell on 19 November. It is a heap overflow in Ruby's string case conversion. A plain Rails or Sinatra app exposes it.

AI News

Editorial2 min read

LinkedInX
Veria Labs Ruby2Shell disclosure page banner

Image: Veria Labs

Why it mattersDefault Rails and Sinatra apps are vulnerable without a login. Upgrade Ruby now, because Veria Labs plans to publish the proof of concept on 25 November.

Default Rails and Sinatra apps are reachable by an attacker with no password. Veria Labs disclosed the flaw on 19 November 2026. It is called Ruby2Shell, and it is tracked as CVE-2026-132825. The firm says the flaw is a one-byte heap overflow. It sits in Ruby's string case conversion code. An attacker reaches it through common Ruby web frameworks, with no sign-in. Veria Labs says it was the first to show remote code execution against the flaw.

What is affected

Ruby 2.4 through 3.2 are vulnerable and no longer supported by the Ruby core team. Ruby 3.3.0 to 3.3.13, 3.4.0 to 3.4.12 and 4.0.0 to 4.0.9 are also vulnerable, Veria Labs says. The Ruby security team released fixes on 18 November 2026 in Ruby 3.3.14, Ruby 3.4.13 and Ruby 4.0.10. Ruby's advisory lists seven separate security problems patched in the same release. This heap overflow is one of them.

Who found it

Ruby credits the reporters in its advisory. The list includes Stephan Lipp at Ada Logics, Anthropic, aphantom, baba__yaga, Hiroya Fujinami and Hiroshi Shibata. Veria Labs names itself, Stephan Lipp, Anthropic and Moritz Sanft with OpenAI collaboration on its own page. Anthropic's name shows that a model vendor is now doing security research against open source dependencies.

When the exploit goes public

Veria Labs says it will publish the full proof of concept on 25 November 2026. It may wait longer if patches have not reached most servers by then. That gives teams about four days from the disclosure to upgrade. Public code will shorten the time before mass scanning starts. Sourcegraph published a code search post on 20 November. The post walks through finding vulnerable Ruby pins across a company's repositories. The search covers Dockerfiles, Gemfiles and version files. Sourcegraph also offers an agent-driven batch change that opens upgrade pull requests on each matching repository.

Patch Ruby to one of the three fixed versions in every image, lock file and CI pipeline. A build-stage pin on an old version is still a problem if that build runs untrusted input. Teams running Ruby 3.2 or older face a bigger job. The core team is not releasing a fix for those lines, so the move is to a supported series. A production Rails or Sinatra service that takes public traffic has only one safe answer. Upgrade before 25 November.

An AI engineering team has a second task after the patch. Check every model-facing service that handles user text. Does it lowercase or uppercase a user string before storing or returning it? A chat endpoint that writes a case-insensitive log line fits that shape. A retrieval pipeline that normalises the case of a user query fits it too. Deploy the patched Ruby first. Then audit the paths that handle text from a model or a user.

Source

Veria Labs: Ruby2Shell. Ruby security release: multiple vulnerabilities in Regexp and String. Sourcegraph: find vulnerable Ruby across your repos.

Reported byVeria Labs

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project