CVE-2024-27281
Ruby vulnerability analysis and mitigation

Overview

A remote code execution (RCE) vulnerability was discovered in RDoc versions 6.3.3 through 6.6.2, as distributed in Ruby 3.x through 3.3.0. The vulnerability was assigned identifier CVE-2024-27281 and was publicly disclosed on March 21, 2024. The issue affects the parsing of .rdoc_options configuration files and documentation cache loading functionality (Ruby Lang).

Technical details

The vulnerability stems from unrestricted class restoration when parsing .rdoc_options as YAML files and when loading documentation cache. This lack of restrictions on classes that can be restored enables object injection attacks that can lead to remote code execution. The vulnerability has been assigned a CVSS v3.1 base score of 4.5 (Medium) with vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L (NVD).

Impact

If successfully exploited, this vulnerability could allow attackers to execute arbitrary code through crafted .rdoc_options files or manipulated documentation cache. This affects the confidentiality, integrity, and availability of systems using vulnerable RDoc versions (Ruby Lang).

Mitigation and workarounds

Users are recommended to update to fixed versions: RDoc 6.6.3.1 for the latest version, 6.3.4.1 for Ruby 3.0 users, 6.4.1.1 for Ruby 3.1 users, and 6.5.1.1 for Ruby 3.2 users. The update can be performed using 'gem update rdoc' or by adding 'gem "rdoc", ">= 6.6.3.1"' to the Gemfile for bundler users. Note that versions 6.3.4, 6.4.1, 6.5.1, and 6.6.3 contain an incorrect fix and should be avoided (Ruby Lang).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management