{"cve":"CVE-2021-31799","nvd":{"published":"2021-07-30T14:15:16.620","modified":"2026-06-17T03:52:15.297","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.0},"cwes":["CWE-78"],"references":["https://lists.debian.org/debian-lts-announce/2021/10/msg00009.html","https://security-tracker.debian.org/tracker/CVE-2021-31799","https://security.gentoo.org/glsa/202401-05","https://security.netapp.com/advisory/ntap-20210902-0004/","https://www.oracle.com/security-alerts/cpuapr2022.html"],"products":["debian:debian_linux","oracle:jd_edwards_enterpriseone_tools","ruby-lang:rdoc"],"source":"nvd","synced_at":"2026-10-19T21:21:13.713336758+00:00"},"epss":{"cve":"CVE-2021-31799","score":0.0148,"percentile":0.73925,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-ggxm-pgc9-g7fp","url":"https://osv.dev/vulnerability/GHSA-ggxm-pgc9-g7fp","summary":"Arbitrary Code Execution in Rdoc","modified":"2024-11-14T01:15:50.703159Z","packages":[{"ecosystem":"RubyGems","name":"rdoc","purl":"pkg:gem/rdoc","ranges":[">=3.11 <6.1.2.1"],"fixed":["6.1.2.1"]},{"ecosystem":"RubyGems","name":"rdoc","purl":"pkg:gem/rdoc","ranges":[">=6.2.0 <6.2.1.1"],"fixed":["6.2.1.1"]},{"ecosystem":"RubyGems","name":"rdoc","purl":"pkg:gem/rdoc","ranges":[">=6.3.0 <6.3.1"],"fixed":["6.3.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}