
CVE catalog
CVE-2024-27281
Ruby vulnerabilities
- Severity
- Medium · CVSS 4.5
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.57% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby3.1 | bookworm | 3.1.2-7+deb12u1 | fixed |
| Debian | ruby3.1 | bookworm-security | 3.1.2-7+deb12u1 | fixed |
| Ubuntu | ruby3.2 | noble | 3.2.3-1ubuntu0.24.04.1 | fixed |
| Ubuntu | libruby3.2 | noble | 3.2.3-1ubuntu0.24.04.1 | fixed |
| Ubuntu | ruby3.2-dev | noble | 3.2.3-1ubuntu0.24.04.1 | fixed |
| Ubuntu | ruby3.2-doc | noble | 3.2.3-1ubuntu0.24.04.1 | fixed |
| Alpine | ruby | 3.16 | 3.1.5-r0 | fixed |
| Alpine | ruby | 3.17 | 3.1.5-r0 | fixed |
| Alpine | ruby | 3.18 | 3.2.4-r0 | fixed |
| Alpine | ruby | 3.19 | 3.2.4-r0 | fixed |
| Alpine | ruby | 3.20 | 3.3.1-r0 | fixed |
| Alpine | ruby | 3.21 | 3.3.1-r0 | fixed |
| Alpine | ruby | 3.22 | 3.3.1-r0 | fixed |
| Alpine | ruby | 3.23 | 3.3.1-r0 | fixed |
| Alpine | ruby | 3.24 | 3.3.1-r0 | fixed |
| Ubuntu | ruby2.3 | pro | 2.3.0-1 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.0-2 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.0-4ubuntu2 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.0-4ubuntu3 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.0-5ubuntu1 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~16.04 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~16.04.2 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~16.04.4 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~16.04.5 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~16.04.6 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~16.04.7 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~16.04.9 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~16.04.10 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~16.04.11 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~16.04.12 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~ubuntu16.04.13 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~ubuntu16.04.14 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~ubuntu16.04.15 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~ubuntu16.04.16 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~ubuntu16.04.16+esm1 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~ubuntu16.04.16+esm2 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~ubuntu16.04.16+esm3 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~ubuntu16.04.16+esm4 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~ubuntu16.04.16+esm5 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~ubuntu16.04.16+esm6 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~ubuntu16.04.16+esm7 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~ubuntu16.04.16+esm8 | vulnerable |
| Ubuntu | ruby2.3 | pro | 2.3.1-2~ubuntu16.04.16+esm9 | fixed |
| Ubuntu | ruby2.5 | pro | 2.5.0~preview1-1ubuntu2 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.0-4ubuntu1 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.0-4ubuntu4 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.0-5ubuntu1 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.0-6ubuntu1 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.1 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.2 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.4 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.5 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.6 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.7 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.8 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.9 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.10 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.11 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.12 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.13 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.14 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.15 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.16 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.16+esm1 | vulnerable |
| Ubuntu | ruby2.5 | pro | 2.5.1-1ubuntu1.16+esm3 | fixed |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-1 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-2 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-3 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-4 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-4ubuntu1 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.1 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.2 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.3 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.4 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.5 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.6 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.7 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.8 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.9 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.10 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.11 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.12 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.13 | fixed |
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-5ubuntu1 | vulnerable |
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-7 | vulnerable |
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-7ubuntu2 | vulnerable |
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-7ubuntu2.1 | vulnerable |
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-7ubuntu2.2 | vulnerable |
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-7ubuntu2.3 | vulnerable |
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-7ubuntu2.4 | vulnerable |
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-7ubuntu2.5 | vulnerable |
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-7ubuntu2.6 | fixed |
| Ubuntu | ruby3.2 | 24.04 | 3.2.3-1 | vulnerable |
| Ubuntu | ruby3.2 | 24.04 | 3.2.3-1build2 | vulnerable |
| Ubuntu | ruby3.2 | 24.04 | 3.2.3-1build3 | vulnerable |
| Ubuntu | ruby3.2 | 24.04 | 3.2.3-1ubuntu0.24.04.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby3.1 | source | bookworm | 3.1.2-7+deb12u1 | not yet assigned | Not reported | [1067803] |
| Ubuntu | ruby3.2 | deb | noble | 3.2.3-1ubuntu0.24.04.1 | Not reported | Not reported | Not reported |
| Ubuntu | libruby3.2 | deb | noble | 3.2.3-1ubuntu0.24.04.1 | Not reported | Not reported | Not reported |
| Ubuntu | ruby3.2-dev | deb | noble | 3.2.3-1ubuntu0.24.04.1 | Not reported | Not reported | Not reported |
| Ubuntu | ruby3.2-doc | deb | noble | 3.2.3-1ubuntu0.24.04.1 | Not reported | Not reported | Not reported |
| Alpine | ruby | apk | 3.16 | 3.1.5-r0 | Not reported | ALPINE-CVE-2024-27281 | Not reported |
| Alpine | ruby | apk | 3.17 | 3.1.5-r0 | Not reported | ALPINE-CVE-2024-27281 | Not reported |
| Alpine | ruby | apk | 3.18 | 3.2.4-r0 | Not reported | ALPINE-CVE-2024-27281 | Not reported |
| Alpine | ruby | apk | 3.19 | 3.2.4-r0 | Not reported | ALPINE-CVE-2024-27281 | Not reported |
| Alpine | ruby | apk | 3.20 | 3.3.1-r0 | Not reported | ALPINE-CVE-2024-27281 | Not reported |
| Alpine | ruby | apk | 3.21 | 3.3.1-r0 | Not reported | ALPINE-CVE-2024-27281 | Not reported |
| Alpine | ruby | apk | 3.22 | 3.3.1-r0 | Not reported | ALPINE-CVE-2024-27281 | Not reported |
| Alpine | ruby | apk | 3.23 | 3.3.1-r0 | Not reported | ALPINE-CVE-2024-27281 | Not reported |
| Alpine | ruby | apk | 3.24 | 3.3.1-r0 | Not reported | ALPINE-CVE-2024-27281 | Not reported |
| Ubuntu | ruby2.3 | deb | pro | 2.3.1-2~ubuntu16.04.16+esm9 | Not reported | USN-6838-2 | Not reported |
| Ubuntu | ruby2.5 | deb | pro | 2.5.1-1ubuntu1.16+esm3 | Not reported | USN-6838-2 | Not reported |
| Ubuntu | ruby2.7 | deb | 20.04 | 2.7.0-5ubuntu1.13 | Not reported | USN-6838-1 | Not reported |
| Ubuntu | ruby3.0 | deb | 22.04 | 3.0.2-7ubuntu2.6 | Not reported | USN-6838-1 | Not reported |
| Ubuntu | ruby3.2 | deb | 24.04 | 3.2.3-1ubuntu0.24.04.1 | Not reported | USN-6838-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2024_3500.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2024-27281]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-27281]
- [https://osv.dev/vulnerability/USN-6838-1]
- [https://osv.dev/vulnerability/USN-6838-2]
- [https://security-tracker.debian.org/tracker/CVE-2024-27281]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-27281.json]
- [https://ubuntu.com/security/notices/USN-6838-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-0682.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]