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. Learn more

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 Learn

Learn about Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-RDOC-6476871
  • published22 Mar 2024
  • disclosed21 Mar 2024
  • creditooooooo_q

Introduced: 21 Mar 2024

CVE-2024-27281  (opens in a new tab)
CWE-94  (opens in a new tab)

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