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


0.0
high

Snyk CVSS

    Attack Complexity High
    Confidentiality High
    Integrity High
    Availability High

    Threat Intelligence

    EPSS 0.07% (28th percentile)
Expand this section
NVD
7 high
Expand this section
SUSE
7.8 high
Expand this section
Red Hat
7 high

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 ID SNYK-RUBY-RDOC-1279617
  • published 5 May 2021
  • disclosed 5 May 2021
  • credit Alexandr Savca

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.