{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-31799","published":"2021-07-30T14:15:16.620000Z","last_modified":"2026-06-17T03:52:15.297000Z","status":"Modified","cvss":{"version":"3.1","score":7.0,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-78"],"cpes":[{"criteria":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"9.0"},{"criteria":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"10.0"},{"criteria":"cpe:2.3:a:ruby-lang:rdoc:*:*:*:*:*:ruby:*:*","part":"a","vendor":"ruby-lang","product":"rdoc","version_start_including":"3.11","version_end_excluding":"6.3.1"},{"criteria":"cpe:2.3:a:oracle:jd_edwards_enterpriseone_tools:*:*:*:*:*:*:*:*","part":"a","vendor":"oracle","product":"jd_edwards_enterpriseone_tools","version_end_excluding":"9.2.6.1"}],"cpes_truncated":false,"vendors":["debian","ruby-lang","oracle"],"products":["debian/debian_linux","ruby-lang/rdoc","oracle/jd_edwards_enterpriseone_tools"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"epss":{"score":0.0148,"percentile":0.74228,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"os","platform":"linux","eol":false,"packages":[{"advisory":"GHSA-ggxm-pgc9-g7fp","ecosystem":"RubyGems","name":"rdoc","purl":"pkg:gem/rdoc","ranges":[{"introduced":"3.11","fixed":"6.1.2.1"}],"versions":["3.11","3.12","3.12.1","3.12.2","4.0.0","4.0.0.preview2","4.0.0.preview2.1","4.0.0.rc.2","4.0.0.rc.2.1","4.0.1","4.1.0","4.1.0.preview.3","4.1.1","4.1.2","4.2.0","4.2.1","4.2.2","4.3.0","5.0.0","5.0.0.beta1","5.0.0.beta2","5.0.1","5.1.0","6.0.0","6.0.0.beta1","6.0.0.beta2","6.0.0.beta3","6.0.0.beta4","6.0.1","6.0.1.1","6.0.2","6.0.3","6.0.4","6.1.0","6.1.0.beta1","6.1.0.beta2","6.1.0.beta3","6.1.1","6.1.2"],"versions_truncated":false},{"advisory":"GHSA-ggxm-pgc9-g7fp","ecosystem":"RubyGems","name":"rdoc","purl":"pkg:gem/rdoc","ranges":[{"introduced":"6.2.0","fixed":"6.2.1.1"}],"versions":["6.2.0","6.2.1"],"versions_truncated":false},{"advisory":"GHSA-ggxm-pgc9-g7fp","ecosystem":"RubyGems","name":"rdoc","purl":"pkg:gem/rdoc","ranges":[{"introduced":"6.3.0","fixed":"6.3.1"}],"versions":["6.3.0"],"versions_truncated":false}],"severity":"high","priority_score":42,"links":{"html_es":"/es/cve/CVE-2021-31799/","html_en":"/en/cve/CVE-2021-31799/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-31799","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-31799"},"untrusted":{"vendor_name":"Debian","product_name":"Debian Linux","desc_en":"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.","affected":[],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00009.html","tags":["Third Party Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-31799","tags":["Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/202401-05","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20210902-0004/","tags":["Third Party Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["Patch","Third Party Advisory"]},{"url":"https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc/","tags":["Patch","Vendor Advisory"]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2025:15819-1","url":"https://www.suse.com/support/update/","published":"2025-12-12T00:00:00+00:00","severity":"critical","exploited":false,"untrusted":{"title":"libruby4_0-4_0-4.0.0~preview2-1.1 on GA media"}}]}