CVE-2024-27281

ruby: RCE vulnerability with .rdoc_options in RDoc

Published May 8, 2024 CVSS 3.1 · 4.5 Medium EPSS 1.6% KEV · Not listed
Description
An issue was discovered in RDoc 6.3.3 through 6.6.2, as distributed in Ruby 3.x through 3.3.0. When parsing .rdoc_options (used for configuration in RDoc) as a YAML file, object injection and resultant remote code execution are possible because there are no restrictions on the classes that can be restored. (When loading the documentation cache, object injection and resultant remote code execution are also possible if there were a crafted cache.) The main fixed version is 6.6.3.1. For Ruby 3.0 users, a fixed version is rdoc 6.3.4.1. For Ruby 3.1 users, a fixed version is rdoc 6.4.1.1. For Ruby 3.2 users, a fixed version is rdoc 6.5.1.1.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3858-1 ruby2.7 security update
Debian DSA Debian DSA DSA-5677-1 ruby3.1 security update
EUVD EUVD EUVD-2024-0826 An issue was discovered in RDoc 6.3.3 through 6.6.2, as distributed in Ruby 3.x through 3.3.0. When parsing .rdoc_options (used for configuration in RDoc) as a YAML file, object injection and resultant remote code execution are possible because there are no restrictions on the classes that can be restored. (When loading the documentation cache, object injection and resultant remote code execution are also possible if there were a crafted cache.) The main fixed version is 6.6.3.1. For Ruby 3.0 users, a fixed version is rdoc 6.3.4.1. For Ruby 3.1 users, a fixed version is rdoc 6.4.1.1. For Ruby 3.2 users, a fixed version is rdoc 6.5.1.1.
Github GHSA Github GHSA GHSA-592j-995h-p23j RDoc RCE vulnerability with .rdoc_options
Ubuntu USN Ubuntu USN USN-6838-1 Ruby vulnerabilities
Ubuntu USN Ubuntu USN USN-6838-2 Ruby vulnerability
Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 4, 2025, 5:17 PM
Reserved
Feb 22, 2024, 12:00 AM
Status
Deferred
Published
May 14, 2024, 3:11 PM
Modified
Jun 17, 2026, 7:19 AM
Severity
Moderate
Public date
Mar 21, 2024, 12:00 AM