{"id":"ALPINE-CVE-2019-8324","details":"An issue was discovered in RubyGems 2.6 and later through 3.0.2. A crafted gem with a multi-line name is not handled correctly. Therefore, an attacker could inject arbitrary code to the stub line of gemspec, which is eval-ed by code in ensure_loadable_spec during the preinstall check.","modified":"2025-11-19T06:04:00.123557Z","published":"2019-06-17T19:15:11.843Z","upstream":["CVE-2019-8324"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2019-8324"}],"affected":[{"package":{"name":"ruby","ecosystem":"Alpine:v3.6","purl":"pkg:apk/alpine/ruby?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.6-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.2-r0","2.4.3-r0","2.4.4-r0","2.4.5-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2019-8324.json"}},{"package":{"name":"ruby","ecosystem":"Alpine:v3.7","purl":"pkg:apk/alpine/ruby?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.6-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.4.4-r0","2.4.5-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2019-8324.json"}},{"package":{"name":"ruby","ecosystem":"Alpine:v3.8","purl":"pkg:apk/alpine/ruby?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.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"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2019-8324.json"}},{"package":{"name":"ruby","ecosystem":"Alpine:v3.9","purl":"pkg:apk/alpine/ruby?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.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"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2019-8324.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}