Vulnerability
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.
42 advisories report this vulnerability, across 12 ecosystems.
Advisories
-
ALAS2-2021-1641
Amazon Linux 2 2017.12 - ALAS2-2021-1641: medium priority package update for ruby
-
ALPINE-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.
- ALPINE-EDGE-CVE-2021-31799
-
ALSA-2021:3020
Important: ruby:2.7 security update
-
ALSA-2022:0543
Important: ruby:2.6 security update
-
ALSA-2022:0672
Moderate: ruby:2.5 security update
-
DEBIAN-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.
-
DLA-2780-1
ruby2.3 - security update
-
DSA-5066-1
ruby2.5 - security update
-
ELSA-2021-3020
ELSA-2021-3020: ruby:2.7 security update (IMPORTANT)
-
ELSA-2022-0543
ELSA-2022-0543: ruby:2.6 security update (IMPORTANT)
-
ELSA-2022-0672
ELSA-2022-0672: ruby:2.5 security update (MODERATE)
-
ELSA-2022-0672-1
ELSA-2022-0672-1: ruby:2.5 security update (MODERATE)
-
GHSA-ggxm-pgc9-g7fp
Arbitrary Code Execution in Rdoc
-
OESA-2021-1306
ruby security update
-
RHSA-2021:3020
Red Hat Security Advisory: ruby:2.7 security update
-
RHSA-2021:3559
Red Hat Security Advisory: rh-ruby27-ruby security update
-
RHSA-2021:3982
Red Hat Security Advisory: rh-ruby30-ruby security update
-
RHSA-2022:0543
Red Hat Security Advisory: ruby:2.6 security update
-
RHSA-2022:0544
Red Hat Security Advisory: ruby:2.6 security update
-
RHSA-2022:0581
Red Hat Security Advisory: ruby:2.6 security update
-
RHSA-2022:0582
Red Hat Security Advisory: ruby:2.6 security update
-
RHSA-2022:0672
Red Hat Security Advisory: ruby:2.5 security update
-
RHSA-2022:0708
Red Hat Security Advisory: rh-ruby26-ruby security, bug fix, and enhancement update
-
RHVEX-CVE-2021-31799
rubygem-rdoc: Command injection vulnerability in RDoc
-
RLSA-2021:3020
Important: ruby:2.7 security update
-
RLSA-2022:0543
Important: ruby:2.6 security update
-
RLSA-2022:0672
Moderate: ruby:2.5 security update
-
SUSE-SU-2021:3837-1
Security update for ruby2.1
-
SUSE-SU-2021:3838-1
Security update for ruby2.5
-
SUSE-SU-2022:1512-1
Security update for ruby2.5
-
UBUNTU-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.
-
USN-5020-1
ruby2.3, ruby2.5, ruby2.7 vulnerabilities
-
openSUSE-SU-2021:1535-1
Security update for ruby2.5
-
openSUSE-SU-2021:3838-1
Security update for ruby2.5
-
openSUSE-SU-2024:11622-1
libruby2_7-2_7-2.7.4-1.1 on GA media
-
openSUSE-SU-2024:11623-1
libruby3_0-3_0-3.0.2-1.1 on GA media
-
openSUSE-SU-2024:11786-1
libruby3_1-3_1-3.1.0-1.1 on GA media
-
openSUSE-SU-2024:12712-1
libruby3_2-3_2-3.2.1-1.1 on GA media
-
openSUSE-SU-2024:13623-1
libruby3_3-3_3-3.3.0-1.2 on GA media
-
openSUSE-SU-2025:14621-1
libruby3_4-3_4-3.4.1-1.1 on GA media
-
openSUSE-SU-2025:15819-1
libruby4_0-4_0-4.0.0~preview2-1.1 on GA media
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
- https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc/