Command Injection in RDoc - CVE-2021-31799
Published: May 3, 2021
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary commands on the target system.
The vulnerability exists due to improper input validation. A remote unauthenticated attacker can pass specially crafted data to the application and execute arbitrary commands on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Amazon Linux AMI
Arch Linux
Gentoo Linux
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Linux Enterprise Micro
SUSE MicroOS
SUSE Enterprise Storage
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
HPE Helion Openstack
SUSE OpenStack Cloud
SUSE OpenStack Cloud Crowbar
Anolis OS
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Software Development Kit
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Server for SAP Applications
openSUSE Leap
Ubuntu
openEuler
Fedora
cflinuxfs3
Red Hat Software Collections
ruby2.5 (Debian package)
rh-ruby26-ruby (Red Hat package)
rh-ruby27-ruby (Red Hat package)
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
rubygem-net-telnet
rubygem-abrt-doc
rubygem-abrt
rubygem-xmlrpc
rubygem-io-console
rubygem-mysql2
rubygem-mysql2-doc
rubygem-pg-doc
rubygem-pg
rubygem-irb
rubygem-power_assert
rubygem-did_you_mean
rubygem-bigdecimal
rubygem-bundler-doc
rubygem-bundler
rubygem-json
rubygem-openssl
ruby2.1-stdlib
ruby2.1-devel
ruby2.1-debugsource
ruby2.1-debuginfo
ruby2.1-stdlib-debuginfo
ruby2.1
libruby2_1-2_1-debuginfo
libruby2_1-2_1
ruby2.3 (Ubuntu package)
libruby2.3 (Ubuntu package)
ruby2.5 (Ubuntu package)
libruby2.5 (Ubuntu package)
rubygem-mongo
rubygem-mongo-doc
ruby-help
ruby-irb
ruby-debuginfo
ruby-debugsource
ruby-devel
ruby
ruby2.5-debugsource
ruby2.5
libruby2_5-2_5-debuginfo
libruby2_5-2_5
ruby2.5-devel
ruby2.5-debuginfo
ruby2.5-devel-extra
ruby2.5-stdlib-debuginfo
ruby2.5-stdlib
ruby-libs
ruby-doc
ruby2.5-doc-ri
ruby2.5-doc
ruby2.6
ruby2.7 (Ubuntu package)
libruby2.7 (Ubuntu package)
ruby-default-gems
rubygems
rubygems-devel
rubygem-psych
rh-ruby30-ruby (Red Hat package)
rubygem-test-unit
rubygem-bson
rubygem-bson-doc
rubygem-minitest
rubygem-rdoc
dev-ruby/rdoc
rubygem-rake
Dell Secure Connect Gateway
Dell EMC VxRail Appliance
How to mitigate CVE-2021-31799
cflinuxfs3 - update to 0.250.0
ruby2.5 (Debian package) - update to 2.5.5-3+deb10u4
rh-ruby26-ruby (Red Hat package) - update to 2.6.9-120.el7
rh-ruby27-ruby (Red Hat package) - update to 2.7.4-130.el7
Dell Secure Connect Gateway - update to 5.12.00.10
rubygem-net-telnet - addressed in versions 0.1.1-109.0.1, 0.2.0-108, 0.2.0-137
rubygem-net-telnet - update to 0.1.1-114
rubygem-abrt-doc - addressed in versions 0.3.0-4, 0.4.0-1
rubygem-abrt - addressed in versions 0.3.0-4, 0.4.0-1
rubygem-xmlrpc - addressed in versions 0.3.0-108, 0.3.0-109.0.1, 0.3.0-137
rubygem-xmlrpc - update to 0.3.0-114
rubygem-io-console - addressed in versions 0.4.6-109.0.1, 0.4.7-108, 0.5.6-137
rubygem-io-console - update to 0.4.6-114
rubygem-mysql2 - addressed in versions 0.4.10-4, 0.5.3-1
rubygem-mysql2-doc - addressed in versions 0.4.10-4, 0.5.3-1
rubygem-pg-doc - addressed in versions 1.0.0-2.0.1, 1.1.4-1, 1.2.3-1.0.1
rubygem-pg - addressed in versions 1.0.0-2.0.1, 1.1.4-1, 1.2.3-1.0.1
rubygem-irb - addressed in versions 1.0.0-108, 1.2.6-137
rubygem-power_assert - addressed in versions 1.1.1-109.0.1, 1.1.3-108, 1.1.7-137
rubygem-power_assert - update to 1.1.1-114
rubygem-did_you_mean - addressed in versions 1.2.0-109.0.1, 1.3.0-108
rubygem-did_you_mean - update to 1.2.0-114
rubygem-bigdecimal - addressed in versions 1.3.4-109.0.1, 1.4.1-108, 2.0.0-137
rubygem-bigdecimal - update to 1.3.4-114
rubygem-bundler-doc - update to 1.16.1-4
rubygem-bundler - addressed in versions 1.16.1-4, 1.17.2-108, 2.2.24-137
rubygem-json - addressed in versions 2.1.0-108, 2.1.0-109.0.1, 2.3.0-137
rubygem-json - update to 2.1.0-114
rubygem-openssl - addressed in versions 2.1.2-108, 2.1.2-109.0.1, 2.1.2-137
rubygem-openssl - update to 2.1.2-114
ruby2.1-stdlib - update to 2.1.9-19.6.1
ruby2.1-devel - update to 2.1.9-19.6.1
ruby2.1-debugsource - update to 2.1.9-19.6.1
ruby2.1-debuginfo - update to 2.1.9-19.6.1
ruby2.1-stdlib-debuginfo - update to 2.1.9-19.6.1
ruby2.1 - update to 2.1.9-19.6.1
libruby2_1-2_1-debuginfo - update to 2.1.9-19.6.1
libruby2_1-2_1 - update to 2.1.9-19.6.1
ruby2.3 (Ubuntu package) - update to 2.3.12~ubuntu16.04.16+esm3
libruby2.3 (Ubuntu package) - update to 2.3.12~ubuntu16.04.16+esm3
ruby2.5 (Ubuntu package) - update to 2.5.1-1ubuntu1.10
libruby2.5 (Ubuntu package) - update to 2.5.1-1ubuntu1.10
rubygem-mongo - addressed in versions 2.5.1-2, 2.8.0-1, 2.11.3-1
rubygem-mongo-doc - addressed in versions 2.5.1-2, 2.8.0-1, 2.11.3-1
ruby-help - update to 2.5.8-114
ruby-irb - update to 2.5.8-114
ruby-debuginfo - update to 2.5.8-114
ruby-debugsource - update to 2.5.8-114
ruby-devel - update to 2.5.8-114
ruby - update to 2.5.8-114
ruby2.5-debugsource - addressed in versions 2.5.9-4.20.1, 2.5.9-150000.4.23.1
ruby2.5 - addressed in versions 2.5.9-4.20.1, 2.5.9-150000.4.23.1
libruby2_5-2_5-debuginfo - addressed in versions 2.5.9-4.20.1, 2.5.9-150000.4.23.1
libruby2_5-2_5 - addressed in versions 2.5.9-4.20.1, 2.5.9-150000.4.23.1
ruby2.5-devel - addressed in versions 2.5.9-4.20.1, 2.5.9-150000.4.23.1
ruby2.5-debuginfo - addressed in versions 2.5.9-4.20.1, 2.5.9-150000.4.23.1
ruby2.5-devel-extra - addressed in versions 2.5.9-4.20.1, 2.5.9-150000.4.23.1
ruby2.5-stdlib-debuginfo - addressed in versions 2.5.9-4.20.1, 2.5.9-150000.4.23.1
ruby2.5-stdlib - addressed in versions 2.5.9-4.20.1, 2.5.9-150000.4.23.1
ruby-irb - update to 2.5.9-109.0.1
ruby - addressed in versions 2.5.9-109.0.1, 2.6.9-108, 2.7.4-137
ruby-devel - addressed in versions 2.5.9-109.0.1, 2.6.9-108, 2.7.4-137
ruby-libs - addressed in versions 2.5.9-109.0.1, 2.6.9-108, 2.7.4-137
ruby-doc - addressed in versions 2.5.9-109.0.1, 2.6.9-108, 2.7.4-137
ruby2.5-doc-ri - update to 2.5.9-150000.4.23.1
ruby2.5-doc - update to 2.5.9-150000.4.23.1
ruby2.6 - update to 2.6.8-1
ruby2.7 (Ubuntu package) - addressed in versions 2.7.0-5ubuntu1.5, 2.7.1-3ubuntu1.4, 2.7.2-4ubuntu1.2
libruby2.7 (Ubuntu package) - addressed in versions 2.7.0-5ubuntu1.5, 2.7.1-3ubuntu1.4, 2.7.2-4ubuntu1.2
ruby-default-gems - update to 2.7.4-137
rubygems - addressed in versions 2.7.6.3-109.0.1, 3.0.3.1-108, 3.1.6-137
rubygems-devel - addressed in versions 2.7.6.3-109.0.1, 3.0.3.1-108, 3.1.6-137
rubygems - update to 2.7.6-114
rubygems-devel - update to 2.7.6-114
ruby - addressed in versions 2.7-3320210609104615.601d93de, 2.7-3420210609104615.058368ca, 3.0.2-149.fc34
rubygem-psych - addressed in versions 3.0.2-109.0.1, 3.1.0-108, 3.1.0-137
rubygem-psych - update to 3.0.2-114
rh-ruby30-ruby (Red Hat package) - update to 3.0.2-148.el7
rubygem-test-unit - addressed in versions 3.2.7-109.0.1, 3.2.9-108, 3.3.4-137
rubygem-test-unit - update to 3.2.7-114
rubygem-bson - addressed in versions 4.3.0-2, 4.5.0-1, 4.8.1-1
rubygem-bson-doc - addressed in versions 4.3.0-2, 4.5.0-1, 4.8.1-1
rubygem-minitest - addressed in versions 5.10.3-109.0.1, 5.11.3-108, 5.13.0-137
rubygem-minitest - update to 5.10.3-114
rubygem-rdoc - addressed in versions 6.0.1.1-109.0.1, 6.1.2.1-108, 6.2.1.1-137
rubygem-rdoc - update to 6.0.1.1-114
dev-ruby/rdoc - update to 6.3.2
rubygem-rdoc - update to 6.3.2-201.fc36
Dell EMC VxRail Appliance - update to 8.0.000
rubygem-rake - update to 12.3.0-114
rubygem-rake - addressed in versions 12.3.3-108, 12.3.3-109.0.1, 13.0.1-137
External References
Related Security Bulletins
- Command Injection in Ruby RDoc
- Amazon Linux AMI update for ruby24
- Amazon Linux AMI update for ruby20
- Multiple vulnerabilities in Cloud Foundry cflinuxfs3
- Red Hat Enterprise Linux 8 update for the ruby:2.7 module
- Red Hat Software Collections update for rh-ruby27-ruby
- Debian update for ruby2.5
- Red Hat Enterprise Linux 8.4 update for the ruby:2.6 module
- Red Hat Enterprise Linux 8 update for the ruby:2.6 module
- Red Hat Enterprise Linux 8.1 update for the ruby:2.6 module
- Red Hat Enterprise Linux 8.2 update for the ruby:2.6 module
- Red Hat Enterprise Linux 8 update for the ruby:2.5 module
- Red Hat Software Collections update for rh-ruby26-ruby
- SUSE update for ruby2.1
- SUSE update for ruby2.5
- Ubuntu update for ruby2.3
- Multiple vulnerabilities in DELL Secure Connect Gateway Security
- Multiple vulnerabilities in Dell VxRail Appliance components
- Red Hat Software Collections update for rh-ruby30-ruby
- SUSE update for ruby2.5
- Arch Linux update for ruby2.6
- Gentoo update for RDoc
- openEuler update for ruby
- Fedora 34 Modular update for ruby
- Fedora 33 Modular update for ruby
- Fedora 34 update for ruby
- Fedora 36 update for rubygem-rdoc
- Anolis OS update for ruby:2.7 module
- Anolis OS update for ruby:2.6 module
- Anolis OS update for ruby:2.5 module