{"id":"ALPINE-CVE-2024-27281","details":"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.","modified":"2025-12-03T22:55:40.211815Z","published":"2024-05-14T15:11:57.250Z","upstream":["CVE-2024-27281"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2024-27281"}],"affected":[{"package":{"name":"ruby","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/ruby?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.5-r0"}]}],"versions":["1.8.7_p160-r2","1.8.7_p160-r3","1.8.7_p174-r0","1.8.7_p174-r1","1.8.7_p174-r2","1.8.7_p174-r3","1.8.7_p174-r4","1.8.7_p174-r6","1.8.7_p174-r7","1.8.7_p299-r0","1.8.7_p299-r1","1.8.7_p299-r2","1.8.7_p352-r0","1.8.7_p352-r1","1.8.7_p358-r1","1.8.7_p72-r1","1.8.7_p72-r2","1.9.3_p194-r0","1.9.3_p286-r0","1.9.3_p286-r1","1.9.3_p286-r2","1.9.3_p327-r0","1.9.3_p362-r0","1.9.3_p374-r0","1.9.3_p385-r0","1.9.3_p392-r0","2.0.0_p0-r0","2.0.0_p0-r1","2.0.0_p195-r0","2.0.0_p247-r0","2.0.0_p247-r1","2.0.0_p247-r2","2.0.0_p247-r3","2.0.0_p353-r0","2.0.0_p353-r1","2.0.0_p353-r2","2.0.0_p481-r0","2.1.5-r0","2.1.5-r1","2.2.1-r0","2.2.2-r0","2.2.2-r1","2.2.3-r0","2.2.3-r1","2.2.4-r0","2.3.1-r0","2.3.1-r1","2.3.1-r2","2.3.2-r0","2.3.3-r0","2.3.3-r1","2.3.3-r2","2.3.3-r3","2.4.0-r3","2.4.1-r1","2.4.1-r2","2.4.1-r3","2.4.1-r4","2.4.1-r5","2.4.2-r0","2.4.2-r1","2.4.3-r0","2.5.0-r0","2.5.0-r1","2.5.1-r0","2.5.1-r1","2.5.1-r2","2.5.2-r0","2.5.3-r0","2.5.3-r1","2.5.3-r2","2.5.5-r0","2.6.3-r0","2.6.3-r1","2.6.3-r2","2.6.4-r0","2.6.5-r0","2.6.5-r1","2.6.5-r2","2.6.6-r2","2.6.6-r3","2.6.6-r4","2.7.1-r0","2.7.1-r1","2.7.1-r2","2.7.1-r3","2.7.1-r4","2.7.1-r5","2.7.2-r0","2.7.2-r1","2.7.2-r2","2.7.2-r3","2.7.2-r4","2.7.3-r0","2.7.3-r1","2.7.4-r0","2.7.4-r1","2.7.4-r2","3.0.2-r0","3.0.3-r0","3.1.1-r0","3.1.2-r0","3.1.3-r0","3.1.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2024-27281.json"}},{"package":{"name":"ruby","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/ruby?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.5-r0"}]}],"versions":["1.8.7_p160-r2","1.8.7_p160-r3","1.8.7_p174-r0","1.8.7_p174-r1","1.8.7_p174-r2","1.8.7_p174-r3","1.8.7_p174-r4","1.8.7_p174-r6","1.8.7_p174-r7","1.8.7_p299-r0","1.8.7_p299-r1","1.8.7_p299-r2","1.8.7_p352-r0","1.8.7_p352-r1","1.8.7_p358-r1","1.8.7_p72-r1","1.8.7_p72-r2","1.9.3_p194-r0","1.9.3_p286-r0","1.9.3_p286-r1","1.9.3_p286-r2","1.9.3_p327-r0","1.9.3_p362-r0","1.9.3_p374-r0","1.9.3_p385-r0","1.9.3_p392-r0","2.0.0_p0-r0","2.0.0_p0-r1","2.0.0_p195-r0","2.0.0_p247-r0","2.0.0_p247-r1","2.0.0_p247-r2","2.0.0_p247-r3","2.0.0_p353-r0","2.0.0_p353-r1","2.0.0_p353-r2","2.0.0_p481-r0","2.1.5-r0","2.1.5-r1","2.2.1-r0","2.2.2-r0","2.2.2-r1","2.2.3-r0","2.2.3-r1","2.2.4-r0","2.3.1-r0","2.3.1-r1","2.3.1-r2","2.3.2-r0","2.3.3-r0","2.3.3-r1","2.3.3-r2","2.3.3-r3","2.4.0-r3","2.4.1-r1","2.4.1-r2","2.4.1-r3","2.4.1-r4","2.4.1-r5","2.4.2-r0","2.4.2-r1","2.4.3-r0","2.5.0-r0","2.5.0-r1","2.5.1-r0","2.5.1-r1","2.5.1-r2","2.5.2-r0","2.5.3-r0","2.5.3-r1","2.5.3-r2","2.5.5-r0","2.6.3-r0","2.6.3-r1","2.6.3-r2","2.6.4-r0","2.6.5-r0","2.6.5-r1","2.6.5-r2","2.6.6-r2","2.6.6-r3","2.6.6-r4","2.7.1-r0","2.7.1-r1","2.7.1-r2","2.7.1-r3","2.7.1-r4","2.7.1-r5","2.7.2-r0","2.7.2-r1","2.7.2-r2","2.7.2-r3","2.7.2-r4","2.7.3-r0","2.7.3-r1","2.7.4-r0","2.7.4-r1","2.7.4-r2","3.0.2-r0","3.0.3-r0","3.1.1-r0","3.1.2-r0","3.1.2-r1","3.1.3-r0","3.1.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2024-27281.json"}},{"package":{"name":"ruby","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/ruby?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.4-r0"}]}],"versions":["1.8.7_p160-r2","1.8.7_p160-r3","1.8.7_p174-r0","1.8.7_p174-r1","1.8.7_p174-r2","1.8.7_p174-r3","1.8.7_p174-r4","1.8.7_p174-r6","1.8.7_p174-r7","1.8.7_p299-r0","1.8.7_p299-r1","1.8.7_p299-r2","1.8.7_p352-r0","1.8.7_p352-r1","1.8.7_p358-r1","1.8.7_p72-r1","1.8.7_p72-r2","1.9.3_p194-r0","1.9.3_p286-r0","1.9.3_p286-r1","1.9.3_p286-r2","1.9.3_p327-r0","1.9.3_p362-r0","1.9.3_p374-r0","1.9.3_p385-r0","1.9.3_p392-r0","2.0.0_p0-r0","2.0.0_p0-r1","2.0.0_p195-r0","2.0.0_p247-r0","2.0.0_p247-r1","2.0.0_p247-r2","2.0.0_p247-r3","2.0.0_p353-r0","2.0.0_p353-r1","2.0.0_p353-r2","2.0.0_p481-r0","2.1.5-r0","2.1.5-r1","2.2.1-r0","2.2.2-r0","2.2.2-r1","2.2.3-r0","2.2.3-r1","2.2.4-r0","2.3.1-r0","2.3.1-r1","2.3.1-r2","2.3.2-r0","2.3.3-r0","2.3.3-r1","2.3.3-r2","2.3.3-r3","2.4.0-r3","2.4.1-r1","2.4.1-r2","2.4.1-r3","2.4.1-r4","2.4.1-r5","2.4.2-r0","2.4.2-r1","2.4.3-r0","2.5.0-r0","2.5.0-r1","2.5.1-r0","2.5.1-r1","2.5.1-r2","2.5.2-r0","2.5.3-r0","2.5.3-r1","2.5.3-r2","2.5.5-r0","2.6.3-r0","2.6.3-r1","2.6.3-r2","2.6.4-r0","2.6.5-r0","2.6.5-r1","2.6.5-r2","2.6.6-r2","2.6.6-r3","2.6.6-r4","2.7.1-r0","2.7.1-r1","2.7.1-r2","2.7.1-r3","2.7.1-r4","2.7.1-r5","2.7.2-r0","2.7.2-r1","2.7.2-r2","2.7.2-r3","2.7.2-r4","2.7.3-r0","2.7.3-r1","2.7.4-r0","2.7.4-r1","2.7.4-r2","3.0.2-r0","3.0.3-r0","3.1.1-r0","3.1.2-r0","3.1.2-r1","3.1.3-r0","3.1.4-r0","3.1.4-r1","3.2.2-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2024-27281.json"}},{"package":{"name":"ruby","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/ruby?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.4-r0"}]}],"versions":["1.8.7_p160-r2","1.8.7_p160-r3","1.8.7_p174-r0","1.8.7_p174-r1","1.8.7_p174-r2","1.8.7_p174-r3","1.8.7_p174-r4","1.8.7_p174-r6","1.8.7_p174-r7","1.8.7_p299-r0","1.8.7_p299-r1","1.8.7_p299-r2","1.8.7_p352-r0","1.8.7_p352-r1","1.8.7_p358-r1","1.8.7_p72-r1","1.8.7_p72-r2","1.9.3_p194-r0","1.9.3_p286-r0","1.9.3_p286-r1","1.9.3_p286-r2","1.9.3_p327-r0","1.9.3_p362-r0","1.9.3_p374-r0","1.9.3_p385-r0","1.9.3_p392-r0","2.0.0_p0-r0","2.0.0_p0-r1","2.0.0_p195-r0","2.0.0_p247-r0","2.0.0_p247-r1","2.0.0_p247-r2","2.0.0_p247-r3","2.0.0_p353-r0","2.0.0_p353-r1","2.0.0_p353-r2","2.0.0_p481-r0","2.1.5-r0","2.1.5-r1","2.2.1-r0","2.2.2-r0","2.2.2-r1","2.2.3-r0","2.2.3-r1","2.2.4-r0","2.3.1-r0","2.3.1-r1","2.3.1-r2","2.3.2-r0","2.3.3-r0","2.3.3-r1","2.3.3-r2","2.3.3-r3","2.4.0-r3","2.4.1-r1","2.4.1-r2","2.4.1-r3","2.4.1-r4","2.4.1-r5","2.4.2-r0","2.4.2-r1","2.4.3-r0","2.5.0-r0","2.5.0-r1","2.5.1-r0","2.5.1-r1","2.5.1-r2","2.5.2-r0","2.5.3-r0","2.5.3-r1","2.5.3-r2","2.5.5-r0","2.6.3-r0","2.6.3-r1","2.6.3-r2","2.6.4-r0","2.6.5-r0","2.6.5-r1","2.6.5-r2","2.6.6-r2","2.6.6-r3","2.6.6-r4","2.7.1-r0","2.7.1-r1","2.7.1-r2","2.7.1-r3","2.7.1-r4","2.7.1-r5","2.7.2-r0","2.7.2-r1","2.7.2-r2","2.7.2-r3","2.7.2-r4","2.7.3-r0","2.7.3-r1","2.7.4-r0","2.7.4-r1","2.7.4-r2","3.0.2-r0","3.0.3-r0","3.1.1-r0","3.1.2-r0","3.1.2-r1","3.1.3-r0","3.1.4-r0","3.1.4-r1","3.2.2-r0","3.2.2-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2024-27281.json"}},{"package":{"name":"ruby","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/ruby?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.1-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2024-27281.json"}},{"package":{"name":"ruby","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/ruby?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.1-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2024-27281.json"}},{"package":{"name":"ruby","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/ruby?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.1-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2024-27281.json"}},{"package":{"name":"ruby","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/ruby?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.1-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2024-27281.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L"}]}