CVE-2021-31799
7.0high
Arbitrary Code Execution in Rdoc
- Severity
- 7.0high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.48% (higher than 74% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-ggxm-pgc9-g7fp
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| rdoc (RubyGems) | from 3.11 before 6.1.2.1, from 6.2.0 before 6.2.1.1, from 6.3.0 before 6.3.1 | GitHub Advisory Database |
| debian debian_linux | 9.0, 10.0 | NVD |
| ruby-lang rdoc | from 3.11 before 6.3.1 | NVD |
| oracle jd_edwards_enterpriseone_tools | before 9.2.6.1 | NVD |
All scores
| CISA-ADP | 7.0high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 7.0high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.0high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 4.4medium CVSS:2.0 | AV:L/AC:M/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
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
References
| https://lists.debian.org/debian-lts-announce/2021/10/msg00009.html | mailing-list, third-party-advisory, web | |
| https://www.oracle.com/security-alerts/cpuapr2022.html | patch, third-party-advisory, web | |
| https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc/ | patch, vendor-advisory | |
| https://security-tracker.debian.org/tracker/CVE-2021-31799 | third-party-advisory, web | |
| https://security.netapp.com/advisory/ntap-20210902-0004/ | third-party-advisory | |
| https://security.gentoo.org/glsa/202401-05 | vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-31799 | advisory | |
| https://github.com/ruby/rdoc/commit/a7f5d6ab88632b3b482fe10611382ff73d14eed7 | web | |
| https://github.com/ruby/rdoc | package | |
| https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rdoc/CVE-2021-31799.yml | web | |
| https://security.netapp.com/advisory/ntap-20210902-0004 | web | |
| https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-31799 changed 2024-10-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-ggxm-pgc9-g7fp changed 2024-11-14 | CC-BY-4.0 |
| NVD | CVE-2021-31799 changed 2026-06-17 | Public domain |