Summary
- Ruby2Shell, tracked as CVE-2026-132825, is a memory handling vulnerability that researchers have demonstrated can lead to remote code execution.
- Ruby released corrected versions 3.3.14, 3.4.13, and 4.0.10 on 18 November.
- GitLab, Mastodon, OpenProject, Chatwoot, and Discourse have issued corrections, while GitHub Enterprise Server had no fixed release in the latest reviewed research.
A newly disclosed vulnerability in the Ruby programming language could allow remote code execution in certain web applications and enterprise software products, prompting security updates across the Ruby ecosystem and additional protections from Cloudflare.
The vulnerability, CVE-2026-132825, is known as Ruby2Shell and affects memory handling during specific string case conversion operations.
Ruby’s maintainers released corrected versions on 18 November 2026, addressing the weakness alongside six other vulnerabilities in regular expression processing and string handling.
Security researchers have demonstrated that the flaw can be exploited to execute code under particular application conditions. However, the public research does not establish that attackers are exploiting Ruby2Shell in widespread malicious activity.
Several enterprise applications include their own copies of the Ruby interpreter, meaning organisations may need updates from individual software vendors rather than relying solely on a system-wide Ruby upgrade.
Memory handling flaw affects string processing
Ruby applications frequently manipulate text while processing user input, displaying information, and handling application requests.
Case conversion functions change text between uppercase and lowercase representations, but some characters require special handling because their converted form may occupy a different number of bytes.
Ruby2Shell involves an error in that handling under particular legacy character encodings. A crafted string can cause the interpreter to write beyond the allocated memory area, creating a heap buffer overflow.
Such memory corruption can cause an application to terminate unexpectedly or, under suitable conditions, permit an attacker to influence execution.
The vulnerability is not triggered by every string conversion. The researchers identified affected processing paths involving particular single-byte encodings, while ordinary UTF-8 strings use different logic.
Nevertheless, security company Veria Labs reports that the vulnerable functionality can be reached without authentication in the default configurations of common Ruby web frameworks.
Its investigation identifies Ruby on Rails and classic-style Sinatra applications as potentially exposed when they use affected interpreter versions. Other frameworks may also be vulnerable where application code processes untrusted strings through the relevant functions.
The Ruby project confirms that proof-of-concept research demonstrates remote code execution for some of the vulnerabilities addressed in the November release.
The corrected runtime versions are 3.3.14, 3.4.13, and 4.0.10. Earlier versions within those branches remain affected, while Ruby 3.2 and older versions have reached end of life and are not covered by the new supported releases.
Application vendors release separate corrections
The vulnerability affects more than applications whose administrators install Ruby directly.
Some enterprise software products bundle an interpreter within their own deployment packages, allowing the application vendor to select and maintain the version used by the product.
Veria Labs identified affected releases of GitLab, GitHub Enterprise Server, Mastodon, OpenProject, Discourse, and Chatwoot during its investigation.
Several suppliers subsequently issued corrected application versions. The researcher’s updated tracking information lists GitLab 19.6.1, 19.5.8, and 19.4.10 among the releases addressing the issue.
It also identifies patched versions for Mastodon, OpenProject, and Chatwoot, alongside an updated Discourse base image.
These corrections allow organisations using the affected products to update the bundled interpreter through the supplier’s normal release process.
GitHub Enterprise Server remained listed without a corrected release in the latest Veria Labs status information reviewed, updated on 21 November. That position is time-sensitive and should be checked against the manufacturer’s release notes before deployment decisions are made.
The differing patch schedules create practical complications for organisations running several Ruby-based applications.
An infrastructure administrator may update the Ruby installation on a server without changing an application that uses its own bundled version. Conversely, a vendor-supplied application update may incorporate a corrected interpreter without requiring a separate system package.
Security inventories must therefore identify the runtime actually used by each deployed application rather than assuming that the presence of an updated Ruby package protects every service on the host.
Cloudflare adds blocking protections
Cloudflare introduced additional web application firewall rules on 19 November covering Ruby2Shell and a related integer overflow vulnerability affecting string case conversion.
The rules are available through its Free and paid Managed Rulesets, with blocking enabled by default.
These protections are designed to recognise suspicious request patterns before they reach a vulnerable web application.
However, Cloudflare’s network filtering does not alter the underlying interpreter or protect application paths that operate outside the traffic inspected by its service.
A vulnerable Ruby application accessible through an internal network, an alternative connection, or another unmonitored route may therefore remain exposed despite the addition of external firewall rules.
The Ruby project’s corrected releases provide the underlying software fix, while application vendors must distribute appropriate updates where their products include affected runtime components.
Red Hat has also published a security bulletin addressing the vulnerability and the relevant packaging considerations for its own supported environments.
Shared dependencies widen the maintenance task
Ruby is used across development platforms, collaboration services, project management applications, and custom business software.
A defect in the language runtime can consequently affect otherwise unrelated products, even where the application vendors have implemented their own authentication and security controls.
The risk differs according to whether an application’s processing can reach the vulnerable code and whether untrusted information can influence the relevant operation.
An affected software version therefore requires assessment, but the presence of Ruby alone does not prove that an attacker can achieve remote code execution against a particular deployment.
The incident also highlights the dependence of enterprise security updates on upstream software projects and downstream vendors. Ruby’s maintainers released fixes on 18 November, while application vendors have been incorporating those changes into separately maintained products.
Veria Labs has said it intends to publish further technical demonstration material on 25 November, or later if major vendors still require time to release fixes.
The currently available evidence establishes a serious memory corruption flaw, demonstrated exploitability under specified conditions, and corrected Ruby releases. The wider application ecosystem remains subject to separate vendor patch schedules and deployment requirements.





