Skip to main content
← All vulnerabilities
CVE-2024-27281GHSA-592J-995H-P23J

An issue was discovered in RDoc 6.3.3 through 6.6.2, as distributed in Ruby 3.x through 3.3.0.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.3.4.1, 6.4.1.1, 6.5.1.1, 6.6.3.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • rdocRubyGems

    From 6.3.3 · fixed in 6.3.4.1

  • rdocRubyGems

    From 6.4.0 · fixed in 6.4.1.1

  • rdocRubyGems

    From 6.5.0 · fixed in 6.5.1.1

  • rdocRubyGems

    From 6.6.0 · fixed in 6.6.3.1

References 2

hackerone.com

ruby-lang.org