{"id":"CVE-2021-31799","aliases":["CVE-2021-31799","GHSA-ggxm-pgc9-g7fp"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary Code Execution in Rdoc","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En RDoc versiones 3.11 hasta 6.x versiones anteriores a 6.3.1, como se distribuye con Ruby versiones hasta 3.0.1, es posible ejecutar código arbitrario por medio de | y etiquetas en un nombre de archivo","source":"nvd"}],"published":"2021-07-29T00:00:00.000Z","modified":"2026-06-17T03:52:15.297Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:M/Au:N/C:P/I:P/A:P","score":4.4,"rating":"MEDIUM"}],"cwes":["CWE-74","CWE-77","CWE-78"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.11","status":"affected","fixed":"6.1.2.1"}],"ecosystem":"RubyGems","package":"rdoc","purl":"pkg:gem/rdoc","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.2.0","status":"affected","fixed":"6.2.1.1"}],"ecosystem":"RubyGems","package":"rdoc","purl":"pkg:gem/rdoc","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.3.0","status":"affected","fixed":"6.3.1"}],"ecosystem":"RubyGems","package":"rdoc","purl":"pkg:gem/rdoc","source":"ghsa"},{"ranges":[{"status":"affected","version":"9.0"},{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"3.11","fixed":"6.3.1"}],"vendor":"ruby-lang","product":"rdoc","cpe":"cpe:2.3:a:ruby-lang:rdoc:*:*:*:*:*:ruby:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"9.2.6.1"}],"vendor":"oracle","product":"jd_edwards_enterpriseone_tools","cpe":"cpe:2.3:a:oracle:jd_edwards_enterpriseone_tools:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00009.html","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc/","tags":["patch","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-31799","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20210902-0004/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.gentoo.org/glsa/202401-05","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31799","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ruby/rdoc/commit/a7f5d6ab88632b3b482fe10611382ff73d14eed7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ruby/rdoc","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rdoc/CVE-2021-31799.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210902-0004","tags":["web"],"sources":["ghsa"]},{"url":"https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-10-15T17:16:06.341Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-31799","url":"https://www.cve.org/CVERecord?id=CVE-2021-31799","licence":"CVE Terms of Use","modified":"2024-10-15T20:28:31.276Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ggxm-pgc9-g7fp","url":"https://github.com/advisories/GHSA-ggxm-pgc9-g7fp","licence":"CC-BY-4.0","modified":"2024-11-14T01:15:50.703Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-31799","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31799","licence":"Public domain","modified":"2026-06-17T03:52:15.297Z"}],"updatedAt":"2026-11-25T22:58:02.891Z","epss":{"score":0.0148,"percentile":0.74675,"date":"2026-12-01T12:00:22.000Z"}}