cve.bz

CVE-2024-27281 Deserialization of Untrusted Data

4.5 mediumEPSS 1.6%Fix available

Medium (4.5). EPSS 1.6% estimated probability of exploitation activity in the next 30 days. Fixed in rdoc 6.3.4.1, 6.4.1.1, 6.5.1.1.

On this page
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.

Severity

CVSS 3.1

4.5 medium
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
EPSS
1.6% (unchanged from 1.6% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 76th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-08-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-27281 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-27281?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-27281?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-27281 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-592j-995h-p23jRubyGemsrdoc>=6.3.3 <6.3.4.16.3.4.1
GHSA-592j-995h-p23jRubyGemsrdoc>=6.4.0 <6.4.1.16.4.1.1
GHSA-592j-995h-p23jRubyGemsrdoc>=6.5.0 <6.5.1.16.5.1.1
GHSA-592j-995h-p23jRubyGemsrdoc>=6.6.0 <6.6.3.16.6.3.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ruby2.72.7.4-1+deb11u2DLA-3858-1
Debian12ruby3.13.1.2-7+deb12u1DEBIAN-CVE-2024-27281 DSA-5677-1
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morejrubyno fix listedUBUNTU-CVE-2024-27281
Ubuntu20.04:LTSruby2.72.7.0-5ubuntu1.13UBUNTU-CVE-2024-27281 USN-6838-1
Ubuntu22.04:LTSruby3.03.0.2-7ubuntu2.6UBUNTU-CVE-2024-27281 USN-6838-1
Ubuntu24.04:LTSruby3.23.2.3-1ubuntu0.24.04.1UBUNTU-CVE-2024-27281 USN-6838-1
UbuntuPro:16.04:LTSruby2.32.3.1-2~ubuntu16.04.16+esm9UBUNTU-CVE-2024-27281 USN-6838-2
UbuntuPro:18.04:LTSruby2.52.5.1-1ubuntu1.16+esm3UBUNTU-CVE-2024-27281 USN-6838-2
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-irb and 5 more0:2.5.9-112.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 7 more0:3.1.5-143.module+el8.10.0+21792+e2f63d26RHSA-2024:3546
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 7 more0:3.3.1-2.module+el8.10.0+21860+47fbda2aRHSA-2024:3670
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 5 more0:3.0.7-143.module+el8.10.0+21858+d19f3934RHSA-2024:3500
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.3.0-4.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21226+b78a28c4RHSA-2024:3670
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21470+43ec8058RHSA-2024:3546
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21858+d19f3934RHSA-2024:3500
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:1.3.4-112.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.0.0-143.module+el8.10.0+21858+d19f3934RHSA-2024:3500
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.1-143.module+el8.10.0+21792+e2f63d26RHSA-2024:3546
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.5-2.module+el8.10.0+21860+47fbda2aRHSA-2024:3670
127 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8ruby, ruby-doc, ruby-irb and 2 more2.5.9-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux8ruby, ruby-doc, ruby-libs and 3 more3.1.5-143.module_el8.10.0+3854+02eaa59aALSA-2024:3546
AlmaLinux8ruby, ruby-doc, ruby-libs and 3 more3.3.1-2.module_el8.10.0+3855+767cb125ALSA-2024:3670
AlmaLinux8ruby, ruby-doc, ruby-libs and 2 more3.0.7-143.module_el8.10.0+3852+ce828b19ALSA-2024:3500
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.10.0+3799+191214ccALSA-2024:3670
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.10.0+3852+ce828b19ALSA-2024:3500
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.9.0+3746+91b8233aALSA-2024:3546
AlmaLinux8rubygem-bigdecimal1.3.4-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux8rubygem-bigdecimal3.0.0-143.module_el8.10.0+3852+ce828b19ALSA-2024:3500
AlmaLinux8rubygem-bigdecimal3.1.1-143.module_el8.10.0+3854+02eaa59aALSA-2024:3546
AlmaLinux8rubygem-bigdecimal3.1.5-2.module_el8.10.0+3855+767cb125ALSA-2024:3670
133 more for AlmaLinux in the JSON.
Rocky Linux8ruby0:2.5.9-112.module+el8.10.0+1839+f1f156aeRLSA-2024:4499
Rocky Linux8ruby0:3.3.1-2.module+el8.10.0+1827+16ecb9d2RLSA-2024:3670
Rocky Linux8rubygem-abrt0:0.3.0-4.module+el8.5.0+738+032c9c02RLSA-2024:4499
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1679+61871737RLSA-2024:3670
Rocky Linux8rubygem-bson0:4.3.0-2.module+el8.9.0+1536+5f79634eRLSA-2024:4499
Rocky Linux8rubygem-bundler0:1.16.1-4.module+el8.9.0+1536+5f79634eRLSA-2024:4499
Rocky Linux8rubygem-mongo0:2.5.1-2.module+el8.9.0+1536+5f79634eRLSA-2024:4499
Rocky Linux8rubygem-mysql20:0.4.10-4.module+el8.9.0+1536+5f79634eRLSA-2024:4499

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

An attacker would need to provide a maliciously crafted configuration file or documentation cache to a user in order to trigger this vulnerability.

Red Hat's mitigation

Mitigation 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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8ruby:3.0-8100020240522072634.489197e6Fixed 2024-05-30RHSA-2024:3500
Red Hat Enterprise Linux 8ruby:3.1-8100020240510101534.489197e6Fixed 2024-06-03RHSA-2024:3546
Red Hat Enterprise Linux 8ruby:3.3-8100020240522151542.489197e6Fixed 2024-06-06RHSA-2024:3670
Red Hat Enterprise Linux 8ruby:2.5-8100020240627152904.489197e6Fixed 2024-07-11RHSA-2024:4499
Red Hat Enterprise Linux 9ruby:3.1-9040020240503183840.9Fixed 2024-06-06RHSA-2024:3668
Red Hat Enterprise Linux 9ruby:3.3-9040020240522171337.9Fixed 2024-06-06RHSA-2024:3671
Red Hat Enterprise Linux 9ruby-0:3.0.7-162.el9_4Fixed 2024-06-11RHSA-2024:3838
Red Hat Enterprise Linux 10rubyNot affected
Red Hat Enterprise Linux 6rubyOut of support scope
Red Hat Enterprise Linux 7rubyOut of support scope
Red Hat OpenStack Platform 16.1puppet-dnsNot affected
Red Hat OpenStack Platform 16.2puppet-dnsNot affected
Red Hat OpenStack Platform 16.2puppet-memcachedNot affected
Red Hat OpenStack Platform 17.1puppet-memcachedNot affected
Red Hat Satellite 6satellite-installerWill not fix
Red Hat Software Collectionsrh-ruby30-rubyOut of support scope
Red Hat Storage 3rubyOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-27281.

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON