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

    Threat Intelligence

    EPSS
    0.07% (30th 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 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.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
8.1 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High
Expand this section

NVD

7 high
Expand this section

SUSE

7.8 high
Expand this section

Red Hat

7 high