Name | CVE-2024-27281 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3858-1, DSA-5677-1, ELA-1148-1, ELA-1149-1, ELA-1150-1 |
Debian Bugs | 1067802, 1067803 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
ruby2.1 (PTS) | jessie, jessie (lts) | 2.1.5-2+deb8u14 | fixed |
ruby2.3 (PTS) | stretch (security) | 2.3.3-1+deb9u11 | vulnerable |
stretch (lts), stretch | 2.3.3-1+deb9u12 | fixed | |
ruby2.5 (PTS) | buster, buster (lts) | 2.5.5-3+deb10u7 | fixed |
buster (security) | 2.5.5-3+deb10u6 | vulnerable | |
ruby2.7 (PTS) | bullseye | 2.7.4-1+deb11u1 | vulnerable |
bullseye (security) | 2.7.4-1+deb11u2 | fixed | |
ruby3.1 (PTS) | bookworm (security), bookworm | 3.1.2-7+deb12u1 | fixed |
sid, trixie | 3.1.2-8.4 | vulnerable | |
ruby3.2 (PTS) | sid | 3.2.3-1 | vulnerable |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
ruby2.1 | source | jessie | 2.1.5-2+deb8u14 | ELA-1148-1 | ||
ruby2.1 | source | (unstable) | (unfixed) | |||
ruby2.3 | source | stretch | 2.3.3-1+deb9u12 | ELA-1149-1 | ||
ruby2.3 | source | (unstable) | (unfixed) | |||
ruby2.5 | source | buster | 2.5.5-3+deb10u7 | ELA-1150-1 | ||
ruby2.5 | source | (unstable) | (unfixed) | |||
ruby2.7 | source | bullseye | 2.7.4-1+deb11u2 | DLA-3858-1 | ||
ruby2.7 | source | (unstable) | (unfixed) | |||
ruby3.1 | source | bookworm | 3.1.2-7+deb12u1 | DSA-5677-1 | ||
ruby3.1 | source | (unstable) | (unfixed) | 1067803 | ||
ruby3.2 | source | (unstable) | (unfixed) | 1067802 |
https://www.ruby-lang.org/en/news/2024/03/21/rce-rdoc-cve-2024-27281/
https://github.com/ruby/rdoc/commit/da7a0c7553ef7250ca665a3fecdc01dbaacbb43d (v6.6.3)
Follow-up: https://github.com/ruby/rdoc/commit/e4a0e71e6f1032f8b4e5e58b4ef60d702c22ce17 (v6.6.3.1)