High 7.4
Ruby · Ruby (and software built on it, including Ruby on Rails) · CVE-2026-132825
Ruby2Shell: a Ruby flaw could let attackers run code on Rails sites, GitLab and Mastodon without a login
Ruby is the programming language behind Ruby on Rails and a lot of web software, including GitLab, Mastodon and Discourse. On 18 November the Ruby team fixed seven memory flaws in how it handles text and search patterns, and said working demonstrations exist that turn several of them into running code on the server. Veria Labs, which named the worst one Ruby2Shell, says it can be reached without a login in Rails and classic Sinatra applications in their default set-up. No attacks have been reported, but Veria Labs plans to publish its demonstration from 25 November, so the time to update is now.
- Affected
- Ruby 3.3.13 and earlier, 3.4.0 to 3.4.12 and 4.0.0 to 4.0.9. Ruby 3.2 and older are out of support and will not be fixed. Products that ship their own copy of Ruby are affected until their supplier updates: Veria Labs lists GitLab 19.6.0 and earlier, Mastodon 4.7.5 and earlier, OpenProject 17.9.7 and earlier, Chatwoot 4.20.0 and earlier, older Discourse base images, and GitHub Enterprise Server 3.22.5 and earlier (no fix when it last updated its report on 21 November). Updating the Rails gem alone does not fix it: the flaw is in Ruby itself.
- What to do
- Update Ruby to 4.0.10, 3.4.13 or 3.3.14 and restart the application; anything on Ruby 3.2 or older needs moving to a supported release. The Ruby advisory gives no workaround. For self-hosted products, install the supplier's fixed release: Veria Labs lists GitLab 19.6.1, 19.5.8 and 19.4.10, Mastodon 4.7.6, 4.6.12, 4.5.22 and 4.4.29, OpenProject 17.9.8 and 17.8.3, Chatwoot 4.20.1 and Discourse base image 2.0.20261119-0203. Rebuild container images so they pick up the new Ruby. If an agency or host runs a Ruby application for you, ask them to confirm which Ruby version it is on.General information summarised from the vendor's advisory at the time of writing, not professional advice. Check the vendor's current advisory before acting.
- Why it’s here
- Reachable without a login in default Rails applications, with a public demonstration expected within days.
