Proactive Threat Intelligence from the team that finds the vulnerabilities. We publish what is being exploited right now, who is doing it, and whether it reaches you. No vendor summaries written a week late.

Updated Nov 19, 2026

Frequently Asked Questions About the Ruby Remote Code Execution (Ruby2Shell CVE-2026-132825)

CVE-2026-132825, called Ruby2Shell, is a buffer overflow in Ruby that can let attackers run commands on affected systems. This FAQ covers affected versions, the fix, and is updated as details emerge.

Status

CVE

CVE-2026-132825

CVSS

7.4 (v3.1)

Exploitation

None reported

CISA KEV

Not listed

Vendor patch

Available

Questions

Updates

Key takeaways

What is Ruby2Shell?

CVE-2026-132825, known as Ruby2Shell, is a vulnerability in Ruby, a programming language runtime used to build and run web applications. It sits in the code that changes the case of a string, for example turning it to uppercase, when that text uses a single-byte encoding such as ISO-8859-1 or Windows-1252. Converting certain characters can write one byte past the end of a memory buffer that Ruby allocated for the result.

An attacker who can get such a string into an affected application may be able to use that one-byte overwrite as a starting point to run commands on the server where Ruby is running. Reaching that outcome takes further work specific to each application, but the vulnerability gives an attacker a foothold in memory that the application did not intend to expose.

CVEDescriptionCVSSExploited in the wild
CVE-2026-132825Remote Code Execution in Ruby7.4 High (CVSS 3.1)Not reported

Is Ruby2Shell being exploited in the wild?

As of November 19, 2026, no exploitation in the wild has been reported.

How did Ruby2Shell come to light?

Researchers at Veria Labs found the vulnerability and named it Ruby2Shell, echoing the earlier php2shell naming, according to heise online. Ruby published its security announcement and released fixed versions on November 18, 2026, and the CVE record, CVE-2026-132825, followed on November 19, 2026.

How is watchTowr helping Ruby customers?

  • Adversary Sight engine identified Ruby instances across client environments and assessed exposure.
  • Rapid Reaction identified exposure to this vulnerability across the watchTowr client base, giving teams the time they need to act.


What is Ruby?

Ruby is a general-purpose programming language used to build web applications and the servers, background workers, and automation tools that run them. Organizations often run Ruby applications, including those built on the Rails or Sinatra frameworks, to power customer-facing services and internal tools inside enterprise networks.

Which Ruby versions are affected?

ProductAffected VersionsFixed Version
Ruby 3.3 branchBefore 3.3.143.3.14
Ruby 3.4 branch3.4.0 before 3.4.133.4.13
Ruby 4.0 branch4.0.0 before 4.0.104.0.10
Ruby 3.2 and earlier3.2 and earlierNot yet available
  • The application must process text in a single-byte encoding such as ISO-8859-1 or Windows-1252, rather than Ruby’s default UTF-8.
  • The application must run a function that changes the case of a string, such as converting it to uppercase, on text an attacker controls.
  • Ruby applications built with Rails or with Sinatra in its classic style are affected in their default configuration.

Rails applications and Sinatra applications running in their default configuration face the earliest exposure, along with any Ruby application that changes the case of external text in a single-byte encoding.

How do I fix Ruby2Shell?

Apply the fix by updating Ruby to 4.0.10, 3.4.13, or 3.3.14, depending on the branch in use, since the vulnerability lives in the interpreter itself. Updating application gems or frameworks alone does not fix it. No workaround has been published, so systems on Ruby 3.2 or earlier should move to a supported release line.

  1. Identify every Ruby interpreter version running on application servers, background workers, and container images.
  2. Update affected systems to Ruby 4.0.10, 3.4.13, or 3.3.14, matching the branch in use.
  3. Rebuild container images and restart application servers and workers after the update.
  4. Move any system running Ruby 3.2 or earlier to a supported release line, since no fix exists for it.
  5. Review application code for functions that change the case of text coming from outside the application.

Is Ruby2Shell related to earlier vulnerabilities?

Ruby fixed three different bugs in its regular expression engine in October 2026, which were linked to vulnerabilities in GitLab that compiled patterns from attacker-controlled text. Those earlier bugs are unrelated to the case-conversion issue behind CVE-2026-132825, which involves no regular expressions at all.

What types of threat actors typically exploit this vulnerability?

No attribution has been made public.

If you are a watchTowr client

Adversary Sight engine identified Ruby instances across client environments and assessed exposure. Rapid Reaction identified exposure to this vulnerability across the watchTowr client base, giving teams the time they need to act. Contact your watchTowr team with any questions.

Want to know if this reaches you, before the next one?

watchTowr validates exposure and mitigates at the edge in under an hour.

Attackers Don't Give Up. Neither Should Your Security Testing.

Zero install. No infrastructure changes. Uplift your security posture within hours of onboarding the watchTowr Platform.

Find Out What an Attacker Can Reach Before They Do.

Point us at a domain. We reconstruct your real external estate and come back with validated exposure, not a theoretical CVE list.

Disclosure to Exploitation Is Four Hours. Patching Is Not.

The watchTowr Platform validates your exposure to an emerging threat and mitigates it at the edge while the vendor patch is still in testing.

We Find the Vulnerabilities. You Hear It From Us First.

watchTowr Labs publishes what is being exploited right now and whether it touches your estate, not vendor summaries written a week late.

Your Exposure Changes Weekly. Annual Testing Cannot Describe It.

Continuous, fully external validation of what an attacker can actually exploit against your estate, at a 0.01% false-positive rate.

See the Estate You Own, Including What No Asset List Holds.

Subsidiaries, forgotten infrastructure, shadow IT. We rebuild your external surface from a single domain, then validate what is exposed.