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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.48% (71st 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 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 Base Scores

version 3.1