Code Injection Affecting rdoc package, versions <6.3.4.1 >=6.4.0, <6.4.1.1 >=6.5.0, <6.5.1.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

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-6476871
  • published 22 Mar 2024
  • disclosed 21 Mar 2024
  • credit ooooooo_q

How to fix?

Upgrade rdoc to version 6.3.4.1, 6.4.1.1, 6.5.1.1 or higher.

Overview

Affected versions of this package are vulnerable to Code Injection due to the parsing of .rdoc_options as a YAML file without restrictions on the classes that can be restored. An attacker can execute arbitrary code remotely by crafting malicious .rdoc_options files.

CVSS Scores

version 3.1
Expand this section

Snyk

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

Red Hat

4.5 medium