A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-27281

CVE-2024-27281: RDoc YAML Parsing RCE Vulnerability

CVE-2024-27281 is a remote code execution vulnerability in RDoc 6.3.3 through 6.6.2 caused by unsafe YAML parsing in configuration files. This post covers the technical details, affected Ruby versions, and mitigation steps.

Published: January 28, 2026

CVE-2024-27281 Overview

An insecure deserialization vulnerability was discovered in RDoc versions 6.3.3 through 6.6.2, as distributed with Ruby 3.x through 3.3.0. When parsing .rdoc_options configuration files as YAML, the library fails to restrict the classes that can be restored during deserialization. This allows attackers to inject arbitrary Ruby objects, potentially leading to remote code execution. The vulnerability also affects the documentation cache loading mechanism, where a crafted cache file could similarly achieve code execution.

Critical Impact

Attackers who can place malicious .rdoc_options or cache files in a project directory can achieve remote code execution when RDoc processes these files. This affects Ruby development environments and CI/CD pipelines where RDoc generates documentation.

Affected Products

  • RDoc 6.3.3 through 6.6.2
  • Ruby 3.x through 3.3.0 (bundled RDoc)
  • Ruby development environments using affected RDoc versions

Discovery Timeline

  • 2024-03-21 - Ruby Security Announcement CVE-2024-27281 published
  • 2024-05-14 - CVE CVE-2024-27281 published to NVD
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2024-27281

Vulnerability Analysis

This vulnerability stems from CWE-502: Deserialization of Untrusted Data. RDoc uses YAML for configuration parsing and documentation cache storage. The core issue is that YAML deserialization in Ruby can instantiate arbitrary classes when certain YAML tags are used. Without proper restrictions on allowed classes, an attacker can craft YAML payloads that instantiate dangerous objects, ultimately achieving code execution.

The attack requires local access and user interaction, as the victim must run RDoc in a directory containing the malicious configuration file. However, this scenario is common in development workflows where developers clone repositories and generate documentation. The vulnerability affects both the .rdoc_options configuration file and the documentation cache mechanism.

Root Cause

The root cause is the unrestricted deserialization of YAML content in RDoc's configuration and cache handling. Ruby's YAML parser (Psych) supports arbitrary object instantiation through special YAML tags. RDoc failed to implement safe loading practices that would restrict which classes can be deserialized. This is a classic insecure deserialization pattern where user-controllable input is passed to a deserializer without proper type restrictions.

Attack Vector

The attack vector is local, requiring an attacker to place a malicious .rdoc_options file or crafted cache file in a location where RDoc will process it. Practical attack scenarios include:

  1. Supply Chain Attack: An attacker commits a malicious .rdoc_options file to a public repository. When developers clone the repository and run RDoc for documentation generation, the malicious payload executes.

  2. Cache Poisoning: If an attacker can write to the RDoc cache directory, they can inject a crafted cache file that executes code when RDoc loads the cache.

  3. CI/CD Pipeline Exploitation: Automated documentation builds that process untrusted repositories could execute malicious payloads embedded in configuration files.

The exploitation leverages Ruby's ability to instantiate objects during YAML deserialization. By crafting YAML with specific tags that reference classes with dangerous initialize or callback methods, attackers can achieve arbitrary code execution. For detailed technical analysis, see the HackerOne Report #1187477.

Detection Methods for CVE-2024-27281

Indicators of Compromise

  • Presence of .rdoc_options files containing suspicious YAML tags such as !ruby/object:, !ruby/hash:, or !ruby/struct:
  • Unexpected Ruby process spawning during documentation generation
  • Unusual network connections or file system modifications during RDoc execution
  • Modified or unexpected files in RDoc cache directories

Detection Strategies

  • Implement file integrity monitoring on .rdoc_options files across development environments
  • Audit Git repositories for suspicious YAML files containing Ruby object instantiation tags
  • Monitor RDoc processes for unexpected child process creation or network activity
  • Use static analysis tools to scan YAML files for potentially dangerous deserialization patterns

Monitoring Recommendations

  • Enable logging for documentation generation processes in CI/CD pipelines
  • Implement sandboxing for documentation build processes to limit impact of successful exploitation
  • Review repository contents before running documentation tools on newly cloned projects
  • Monitor for anomalous behavior during automated build processes

How to Mitigate CVE-2024-27281

Immediate Actions Required

  • Update RDoc to version 6.6.3.1 or later immediately
  • For Ruby 3.0 environments, update to RDoc 6.3.4.1
  • For Ruby 3.1 environments, update to RDoc 6.4.1.1
  • For Ruby 3.2 environments, update to RDoc 6.5.1.1
  • Audit existing repositories for suspicious .rdoc_options files before running RDoc

Patch Information

The vulnerability has been fixed in RDoc 6.6.3.1 (main fix) with backports available for earlier Ruby versions. The fix implements safe YAML loading that restricts which classes can be instantiated during deserialization. Updates are available through standard Ruby gem channels and operating system package managers.

Linux distributions have released security updates:

  • Debian LTS Security Announcement
  • Fedora Package Announcement

Workarounds

  • Avoid running RDoc on untrusted or unreviewed repositories
  • Remove or audit .rdoc_options files from third-party repositories before documentation generation
  • Run documentation generation in isolated, sandboxed environments with limited privileges
  • Consider using alternative documentation tools until patching is complete
bash
# Update RDoc to the fixed version
gem update rdoc

# Verify the installed version
gem list rdoc

# For bundler-managed projects, update Gemfile
bundle update rdoc

# Scan for suspicious .rdoc_options files
find /path/to/projects -name ".rdoc_options" -exec grep -l "!ruby/" {} \;

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechRdoc

  • SeverityMEDIUM

  • CVSS Score4.5

  • EPSS Probability2.46%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityLow
  • AvailabilityLow
  • CWE References
  • CWE-502
  • Technical References
  • HackerOne Report #1187477

  • Ruby Security Announcement CVE-2024-27281

  • Debian LTS Security Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement
  • Latest CVEs
  • CVE-2024-8261: Prolizyazilim OBS Auth Bypass Vulnerability

  • CVE-2024-13068: LimonDesk Auth Bypass Vulnerability

  • CVE-2025-53679: Fortinet FortiSandbox RCE Vulnerability

  • CVE-2026-9446: Simple POS Inventory System SQLi Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English