Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
💎
💎 RubyGems
Not in CISA KEV
HIGH severity

GHSA-ggxm-pgc9-g7fp

HIGHFix: ruby/rdoc@a7f5d6a

GHSA-ggxm-pgc9-g7fp is a high-severity (CVSS 7) OS Command Injection vulnerability in rdoc. O3 Security confirms whether GHSA-ggxm-pgc9-g7fp is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.

Arbitrary Code Execution in Rdoc

Also known asCVE-2021-31799
Published
Sep 1, 2021
Updated
Nov 14, 2024
Affected
3 pkgs
Patched
3 / 3
Exploits
None indexed
Exploitation data as of Nov 14, 2024 · OSV.dev, NVD, FIRST.org (EPSS)

Real-World Exposure

3 pkgs affected
💎rdoc💎rdoc💎rdoc

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects RubyGems packages — download data is not available via public APIs for these ecosystems.

Description

In RDoc 3.11 through 6.x before 6.3.1, as distributed with Ruby through 3.0.1, it is possible to execute arbitrary code via | and tags in a filename.

Affected Packages

3 total 3 fixed
EcosystemPackageVulnerable rangeFix
💎RubyGemsrdoc3.11&&< 6.1.2.16.1.2.1
💎RubyGemsrdoc6.2.0&&< 6.2.1.16.2.1.1
💎RubyGemsrdoc6.3.0&&< 6.3.16.3.1

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for rdoc. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    Update rdoc to 6.1.2.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-ggxm-pgc9-g7fp is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether GHSA-ggxm-pgc9-g7fp is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to GHSA-ggxm-pgc9-g7fp. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

In RDoc 3.11 through 6.x before 6.3.1, as distributed with Ruby through 3.0.1, it is possible to execute arbitrary code via | and tags in a filename.
O3 Security · Impact-Aware SCA

Is GHSA-ggxm-pgc9-g7fp in your dependencies?

O3 detects GHSA-ggxm-pgc9-g7fp across RubyGems dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.

GHSA-ggxm-pgc9-g7fp: Arbitrary Code… | O3 Security