{"id":"CVE-2021-31799","published":"2021-07-29T00:00:00Z","modified":"2024-10-15T20:28:31Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.0148,"percentile":0.74554,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00009.html","tags":["mailing-list"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":[]},{"url":"https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc/","tags":[]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-31799","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20210902-0004/","tags":[]},{"url":"https://security.gentoo.org/glsa/202401-05","tags":["vendor-advisory"]}],"priority":{"score":19.8,"factors":[{"name":"EPSS percentile","points":14.91},{"name":"CVSS severity","points":4.9}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-10-15T17:16:06.341905Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rdoc","vulnerableRanges":[">=3.11, <6.1.2.1",">=6.2.0, <6.2.1.1",">=6.3.0, <6.3.1"],"patched":["6.1.2.1","6.2.1.1","6.3.1"],"from":["GHSA-ggxm-pgc9-g7fp"],"provenance":"source"}],"summary":{"text":"The flaw is an OS command injection weakness in RDoc, the Ruby documentation generator, affecting versions 3.11 through 6.x before 6.3.1 as distributed with Ruby through 3.0.1; it lies in how RDoc handles filenames containing pipe and tag characters. An attacker who can supply a file with a crafted name to a system processing it with RDoc can execute arbitrary code, and the attack requires local access, low privileges, and a user to take an action that triggers RDoc processing.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:24Z"},"euvd":{"id":"EUVD-2021-2060","exploited":false,"provenance":"source"}}