CVE-2024-27281: rdoc · n/a
Affects rdocSource CVE Database V5
Not known to be exploited · CVSS 4.5 Medium.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 1.5% chance of exploitation in 30 days – higher than 75% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 8 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
RubyGemsrdocpkg:gem/rdocOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-27281, European organizations should: 1) Upgrade RDoc to the fixed versions corresponding to their Ruby version (6.6.3.1 for Ruby 3.3.0, 6.3.4.1 for Ruby 3.0, 6.4.1.1 for Ruby 3.1, and 6.5.1.1 for Ruby 3.2) as soon as possible. 2) Restrict write permissions on .rdoc_options and documentation cache files to trusted users only, preventing untrusted users from injecting malicious YAML content. 3) Implement strict access controls and monitoring on build servers, CI/CD pipelines, and shared development environments to detect and prevent unauthorized file modifications. 4) Use containerization or sandboxing for documentation generation processes to limit the impact of potential code execution. 5) Audit existing YAML parsing configurations and consider applying safe YAML loading practices that restrict deserialization to known safe classes. 6) Educate developers and DevOps teams about the risks of deserializing untrusted YAML data and enforce secure coding practices. 7) Monitor security advisories for any emerging exploits or additional patches related to this vulnerability.
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.
References
- hackerone.com/reports/1187477 (opens in a new tab)
- ruby-lang.org/en/news/2024/03/21/rce-rdoc-cve-2024-27281/ (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/09/msg00000.html (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XYDHPHEZI7OQXTQKTDZHGZNPIJH7ZV5N/ (opens in a new tab)