High severity · published Jul 30, 2021
CVE-2021-31799
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
7.0
CVSS
1.5%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
High
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.5% · higher than 74% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DL
Debian Linux · Debian
9.0; 10.0 · source: NVD
JE
JD Edwards Enterpriseone Tools · Oracle
before 9.2.6.1 · source: NVD
RD
Rdoc · Ruby-lang
3.11 before 6.3.1 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-31799
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-31799
Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/10/msg00009.html
Third Party Advisory
https://security-tracker.debian.org/tracker/CVE-2021-31799
security.gentoo.org
https://security.gentoo.org/glsa/202401-05
Third Party Advisory
https://security.netapp.com/advisory/ntap-20210902-0004/
Patch
https://www.oracle.com/security-alerts/cpuapr2022.html
Patch
https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc/
More from Debian Linux
10.0
CVE-2025-32433
Erlang/OTP SSH Vulnerable to Pre-Authentication RCE
10.0
CVE-2025-24201
Apple Multiple Products WebKit Out-of-Bounds Write Vulnerability
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2015-3306
ProFTPD Improper Access Control Vulnerability
9.8
CVE-2026-24061
GNU InetUtils Argument Injection Vulnerability
