superagent_

// products

Ruby2Shell testing for repositories

[ view markdown ]

← Back to attack scenarios

A Ruby application's runtime and source code determine whether Ruby2Shell applies to it. This scenario examines that relationship in a repository, where the report can explain which runtime the application uses and whether the affected behavior is relevant to its code.

Use the report alongside Ruby's advisory when reviewing an upgrade. It separates runtime exposure from confirmed application impact and can explain whether a proposed runtime update addresses the identified issue.

For a deployed service, see Ruby2Shell testing for web applications.

CVE-2026-132825 is the CVE alias for Ruby's GHSA-34m4-m9fh-gqp5. GitLab's November 20, 2026 patch advisory identifies affected GitLab Community Edition and Enterprise Edition release lines as versions before 19.4.10, 19.5 before 19.5.8, and 19.6 before 19.6.1. The fixed releases are 19.4.10, 19.5.8, and 19.6.1. Official Linux packages and container images include patched Ruby. Self-compiled installations must rebuild the Ruby used to run GitLab with 3.3.14 or 3.4.13, or a later release in the same minor series. Updating GitLab source or an unrelated system Ruby does not establish that the running application is fixed.

Verify the actual runtime and any vendor backport, then compare the original reproduction against a healthy corrected application. These version ranges provide exposure and remediation guidance; they do not prove a reachable code-execution path. Keep input encoding, baseline and negative controls, and the existing independent verification requirements. Memory-corruption testing requires explicitly authorized disposable fixtures and supported drivers; missing setup remains blocked and unresolved impact remains inconclusive. This guidance does not authorize testing GitLab.com or other public deployments.

The app lists this scenario as Ruby2Shell — Ruby application code execution (REPO-16) in Repository Red Teaming.

Standards and guidance

Ruby security advisory GHSA-34m4-m9fh-gqp5

GitLab critical patch release and self-compiled Ruby guidance