CVE-2021-31799
JSON

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 packageVersionsReported by
Unspecified productn/aCVE 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.1GitHub Advisory Database
debian debian_linux9.0, 10.0NVD
ruby-lang rdocfrom 3.11 before 6.3.1NVD
oracle jd_edwards_enterpriseone_toolsbefore 9.2.6.1NVD

All scores

CISA-ADP7.0high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub7.0high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.0high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD4.4medium CVSS:2.0AV:L/AC:M/Au:N/C:P/I:P/A:P

Classification

CWE-74CWE-77CWE-78

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

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.htmlmailing-list, third-party-advisory, web
https://www.oracle.com/security-alerts/cpuapr2022.htmlpatch, 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-31799third-party-advisory, web
https://security.netapp.com/advisory/ntap-20210902-0004/third-party-advisory
https://security.gentoo.org/glsa/202401-05vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-31799advisory
https://github.com/ruby/rdoc/commit/a7f5d6ab88632b3b482fe10611382ff73d14eed7web
https://github.com/ruby/rdocpackage
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rdoc/CVE-2021-31799.ymlweb
https://security.netapp.com/advisory/ntap-20210902-0004web
https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdocweb

Sources

SourceRecordLicence
CVE ListCVE-2021-31799 changed 2024-10-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-ggxm-pgc9-g7fp changed 2024-11-14CC-BY-4.0
NVDCVE-2021-31799 changed 2026-06-17Public domain