CVE-2024-27281
ruby: RCE vulnerability with .rdoc_options in RDoc
A public proof of concept exists; no exploitation attested.
- Published2024-05-14
- Fixed in6.6.3.1 · 6.5.1.1 · 6.4.1.1 · 6.3.4.1
- WeaknessCWE-502
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2024-05-1415:11CVE publishedNVD
Versions per branch
OSV · CISA-ADP| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 6.6 | ≥ 6.6.0, < 6.6.3.1 | 6.6.3.1 | OSV |
| 6.5 | ≥ 6.5.0, < 6.5.1.1 | 6.5.1.1 | OSV |
| 6.4 | ≥ 6.4.0, < 6.4.1.1 | 6.4.1.1 | OSV |
| 6.3 | ≥ 6.3.3, < 6.3.4.1 | 6.3.4.1 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 6.x | ≥ 6.3.3, ≤ 6.6.2 | no fix published | CISA-ADP |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- jrubyUbuntu:Pro:14.04:LTSall versions · no fixed version listed
- jrubyUbuntu:26.10all versions · no fixed version listed
- jrubyUbuntu:26.04:LTSall versions · no fixed version listed
- jrubyUbuntu:25.10all versions · no fixed version listed
- jrubyUbuntu:24.04:LTSall versions · no fixed version listed
- jrubyUbuntu:20.04:LTSall versions · no fixed version listed
- jrubyUbuntu:18.04:LTSall versions · no fixed version listed
- jrubyUbuntu:16.04:LTSall versions · no fixed version listed
355 more package ranges on OSV.dev
Vendor advisories
ruby: RCE vulnerability with .rdoc_options in RDoc
ruby as a component of Red Hat Enterprise Linux 6 · ruby-devel as a component of Red Hat Enterprise Linux 6 · ruby-docs as a component of Red Hat Enterprise Linux 6 · +68 more
Red Hat Security Advisory: ruby security update
Red Hat Security Advisory: ruby security update
Red Hat Security Advisory: ruby:3.3 security, bug fix, and enhancement update
Red Hat Security Advisory: ruby:3.3 security, bug fix, and enhancement update
Red Hat Security Advisory: ruby:3.1 security, bug fix, and enhancement update
2 more advisories
Fix
- Update rdoc to 6.6.3.1 · 6.5.1.1 · 6.4.1.1 · 6.3.4.1
- Vendor fix Red Hat Product Security RHSA-2024:4499 · 144 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2024:3671 · 143 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2024:3500 · 117 productsFor details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Workaround from the vendor Red Hat Product Security RHSA-2024:4499 · 144 productsMitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- No fix planned, says the vendor Red Hat Product Security CVE-2024-27281 · 69 productsOut of support scope
- No fix planned, says the vendor Red Hat Product Security CVE-2024-27281 · 2 productsWill not fix
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2024-08-20
- PoC-in-GitHubno public repository identifiedread 2026-11-19
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-10-23
- CISA-ADPSSVC decisionpoc2024-08-20
- CISA-ADPCVSS 3.14.52024-08-20
- CISA-ADPweakness (CWE)CWE-5022024-08-20
- FIRST EPSSEPSS score1.6 %2026-11-18
- OSVaffected packages—
- GitHub AdvisoriesadvisoryLOW2024-03-25
Identifiers
- AZL-40523same flawAzure Linux · MIT
- AZL-40675same flawAzure Linux · MIT
- CGA-2c9w-3x8c-4xhhsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2f96-8vrv-68c3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2q26-gh5g-g342same flawChainguard · CC-BY-NC-ND-4.0
- CGA-36m6-wc83-h267same flawChainguard · CC-BY-NC-ND-4.0
- CGA-38fq-v7jw-795psame flawChainguard · CC-BY-NC-ND-4.0
- CGA-47jh-4vx7-fpjjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4pvh-rxx2-w9qpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-55cc-9gwv-gjhfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-65mw-c2v2-3gq3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-66mv-hxc2-hpvcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6g3w-h6r2-qjh2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-cm5j-8pjj-c5w4same flawChainguard · CC-BY-NC-ND-4.0
- CGA-fx3v-qf6c-hxmjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-gcpj-jmxp-8mwmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-hmmf-9w7c-9q45same flawChainguard · CC-BY-NC-ND-4.0
- CGA-pqg3-wfx5-68f9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-q749-r5qw-6895same flawChainguard · CC-BY-NC-ND-4.0
- CGA-rcvg-5vr2-4x3xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-v576-2rqj-3vhxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-v74g-5543-mxjfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-v78f-2v4v-6g7fsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-wfhv-wpgw-gwp7same flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2024-0826same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-592j-995h-p23jsame flawGitHub Advisory Database · CC-BY-4.0
- ALSA-2024:3500advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:3546advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:3668advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:3670advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:3671advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:3838advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:4499advisory covering several CVEsAlmaLinux · MIT
- DLA-3858-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5677-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2024-0160advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2024-1433advisory covering several CVEsopenEuler · LicenseRef-unstated
- RHSA-2024:3500advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:3546advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:3668advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:3670advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:3671advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:3838advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:4499advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2024:3546advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2024:3668advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2024:3670advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2024:3671advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2024:4499advisory covering several CVEsRocky Linux · BSD-3-Clause
- USN-6838-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
- Published
- 2024-05-14
- Last Modified
- 2026-06-17
- NVD status
- Deferred
- GitHub Advisory
- GHSA-592j-995h-p23j
Frequently asked questions
What is CVE-2024-27281?
Is CVE-2024-27281 actively exploited?
What is the CVSS score for CVE-2024-27281?
Running rdoc? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-592j-995h-p23j
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0