VDB

CVE-2024-27281

CVE-2024-27281 PUBLISHED CVSS 9.300000190734863 CRITICAL

RDoc RCE vulnerability with .rdoc_options

Reported by mitre · Published May 8, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ruby3.2-rubygem-rssAmazon Linux0.2.9-180.amzn2023.0.3
ruby3.2-rubygem-bundlerAmazon Linux2.4.10-180.amzn2023.0.3
ruby3.2-rubygem-irbAmazon Linux1.6.2-180.amzn2023.0.3
ruby3.2-bundled-gemsAmazon Linux3.2.2-180.amzn2023.0.3
ruby-3.1Wolfi3.1.4-r6
rubyAmazon Linux2.0.0.648-36.amzn2.0.11
ruby3.2-rubygem-bigdecimalAmazon Linux3.1.3-180.amzn2023.0.3
ruby-docAmazon Linux2.0.0.648-36.amzn2.0.11

Risk scores

CVSS 4.0
9.300000190734863
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected products

VendorProductVersions
n/an/an/a
amazon:2023ruby3.2-rubygem-rss0
amazon:2023ruby3.2-rubygem-bundler0
amazon:2023ruby3.2-rubygem-irb0
amazon:2023ruby3.2-bundled-gems0
wolfiruby-3.10
amazon:2ruby0
amazon:2023ruby3.2-rubygem-bigdecimal0
amazon:2ruby-doc0
n/an/a*
wolfiruby-3.30
amazon:2rubygems-devel0
amazon:2023ruby3.2-rubygem-power_assert0
RubyGemsrdoc6.5.0, 6.6.0, 6.4.0
amazon:2023ruby3.2-devel0
amazon:2rubygem-rake0
amazon:2rubygem-rdoc0
amazon:2023ruby3.2-rubygem-typeprof0
amazon:2023ruby3.2-rubygem-rbs0
amazon:2023ruby3.2-rubygem-psych0

…and 36 more

Timeline

  • Mar 29, 2024 PoC Published (2 in total, the first dated here)
  • May 8, 2024 CVE Published
  • Oct 4, 2024 Coalition ESS Score (18 in total, the first dated here)
  • Feb 14, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 17, 2026 Security Advisory (14 in total, the first dated here)
  • Oct 13, 2026 Distribution Patch (12 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-27281
vulnetix vdb fixes CVE-2024-27281

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-27281/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›