Command Injection Affecting rdoc package, versions >=3.11, <6.3.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-RDOC-1279617
  • published5 May 2021
  • disclosed5 May 2021
  • creditAlexandr Savca

Introduced: 5 May 2021

CVE-2021-31799  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade rdoc to version 6.3.0 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection. It used to call Kernel#open to open a local file. If a Ruby project hasa file whose name starts with | and ends with tags, the command followingthe pipe character is executed. A malicious Ruby project could exploit it torun an arbitrary command execution against a user who attempts to run rdoccommand.

CVSS Scores

version 3.1