Back to Feed
VulnerabilitiesNov 19, 2026

Ruby2Shell: critical Ruby RCE, affected versions and how to fix it (GHSA-34m4-m9fh-gqp5)

Critical Ruby RCE vulnerability Ruby2Shell affects multiple popular self-hosted applications.

A critical Ruby RCE vulnerability named Ruby2Shell (GHSA-34m4-m9fh-gqp5) allows unauthenticated attackers to execute code on servers. The flaw affects Ruby versions 2.4.0 to 3.3.13, 3.4.0 to 3.4.12, and 4.0.0 to 4.0.9 when handling specific legacy encodings. Popular self-hosted applications like GitLab, GitHub Enterprise Server, Mastodon, OpenProject, Discourse, and Chatwoot bundle vulnerable Ruby versions, with vendors planning fixes.

AI summary of the linked source. Not reviewed by an editor. How this works

Vendor Watch

Run Ruby?

Get an email when a new story names Ruby, usually within the hour.

Free. Your list stays private and never appears in a subject line. One click stops it. How Vendor Watch worksPrivacy

The lesson from this incident

Full lesson

A critical remote code execution vulnerability (Ruby2Shell, GHSA-34m4-m9fh-gqp5) affects a wide range of Ruby versions and allows unauthenticated attackers to execute arbitrary code on servers processing certain legacy character encodings. The severity is compounded by the fact that popular self-hosted platforms — including GitLab, GitHub Enterprise Server, Mastodon, and others — bundle vulnerable Ruby versions, dramatically widening the attack surface. Because exploitation requires no credentials, any internet-facing application running an unpatched Ruby runtime is at immediate risk. This incident underscores the importance of tracking runtime and language-level dependencies, not just application-layer software, as vulnerabilities in underlying interpreters can silently affect entire ecosystems of applications.

What helps against this

How we list vendors
Get GitHub news in your morning briefingA few minutes of audio on the vendors you pick, every morning. Free to try.

Entities

Ruby (product)GitLab (product)GitHub Enterprise Server (product)Mastodon (product)OpenProject (product)Discourse (product)