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


0.0
medium

Snyk CVSS

    Attack Complexity High
    User Interaction Required
Expand this section
Red Hat
4.5 medium

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.