Loading...
Skip to main content

CVE-2021-31799 — Arbitrary Code Execution in rdoc — CVE Details

HIGH

Arbitrary Code Execution in Rdoc

Published September 1, 2021Updated November 14, 2024Source: osv

Summary

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.

Advisory Timeline

  • First published September 1, 2021 (1867 days ago).
  • Last revised November 14, 2024 — 1169 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update rdoc to 6.3.1 or later
gem install rdoc -v 6.3.1
Bundler
Update rdoc to 6.1.2.1 or later
gem install rdoc -v 6.1.2.1
Bundler
Update rdoc to 6.2.1.1 or later
gem install rdoc -v 6.2.1.1

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
rdoc
rubygems
6.3.06.3.1
rdoc
rubygems
3.11, 3.12, 3.12.1, 3.12.2 (+35 more)6.1.2.1
rdoc
rubygems
6.2.0, 6.2.16.2.1.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.0 score means for each attack dimension.

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2021-31799?
Arbitrary Code Execution in Rdoc This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.0/10).
How do I check if my project is affected by CVE-2021-31799?
CVE-2021-31799 affects rdoc. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-31799 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.0

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-ggxm-pgc9-g7fp

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies