{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-31799","id":"CVE-2021-31799","title":"Arbitrary Code Execution in Rdoc","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.","descriptionLong":"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-29T00:00:00.000Z","updated":"2026-10-24T10:30:29.277126119Z","reserved":"2021-04-25T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":4.4,"vector":"AV:L/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"rdoc","purl":"pkg:gem/rdoc","ranges":[">=3.11 <6.1.2.1",">=6.2.0 <6.2.1.1",">=6.3.0 <6.3.1"],"fixed":["6.1.2.1","6.2.1.1","6.3.1"],"advisory":"GHSA-ggxm-pgc9-g7fp"}],"cwes":["CWE-78","CWE-74","CWE-77"],"aliases":["GHSA-ggxm-pgc9-g7fp"],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00009.html","tags":["mailing-list","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc/","tags":["x_transferred","Patch","Vendor Advisory","fix"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-31799","tags":["x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://security.netapp.com/advisory/ntap-20210902-0004/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://security.gentoo.org/glsa/202401-05","tags":["vendor-advisory","x_transferred","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31799","tags":["advisory"]},{"url":"https://github.com/ruby/rdoc/commit/a7f5d6ab88632b3b482fe10611382ff73d14eed7","tags":["web"]},{"url":"https://github.com/ruby/rdoc","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rdoc/CVE-2021-31799.yml","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20210902-0004","tags":["web"]},{"url":"https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.0148,"epssPercentile":0.74473,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-31799","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31799","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-31799","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-ggxm-pgc9-g7fp","ok":true,"note":"GHSA-ggxm-pgc9-g7fp"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-31799","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}