{"id":"CVE-2021-31799","aliases":["GHSA-ggxm-pgc9-g7fp"],"url":"https://o3.security/vulnerability/CVE-2021-31799","summary":"Arbitrary Code Execution in Rdoc","details":"In RDoc 3.11 through 6.x before 6.3.1, as distributed with Ruby through 3.0.1, it is possible to execute arbitrary code via | and tags in a filename.","published":"2021-07-30T14:15:16.620Z","modified":"2026-07-08T05:59:48.733689456Z","cvss":{"score":7,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"RubyGems","name":"rdoc","fixedVersion":"6.1.2.1"},{"ecosystem":"RubyGems","name":"rdoc","fixedVersion":"6.2.1.1"},{"ecosystem":"RubyGems","name":"rdoc","fixedVersion":"6.3.1"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00009.html"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2021-31799"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202401-05"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20210902-0004/"},{"type":"FIX","url":"https://www.oracle.com/security-alerts/cpuapr2022.html"},{"type":"FIX","url":"https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc/"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T05:59:48.733689456Z"}}