Information disclosure in Ruby - CVE-2021-31810
Published: August 2, 2021
Vulnerability details
The vulnerability allows a remote attacker to gain access to potentially sensitive information.
The vulnerability exists within Net::FTP in Ruby when processing PASV responses. A remote attacker can trick the victim to connect to a malicious FTP server and trick Net::FTP into connecting back to a given IP address and port. This potentially makes curl extract information about services that are otherwise private and not disclosed (e.g., the attacker can conduct port scans and service banner extractions).
Affected software
Arch Linux
Gentoo Linux
SUSE Webyast
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Linux Enterprise Micro
SUSE MicroOS
SUSE Enterprise Storage
Red Hat Enterprise Linux for ARM 64
SUSE OpenStack Cloud Crowbar
Anolis OS
SUSE OpenStack Cloud
HPE Helion Openstack
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - 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 Module for Basesystem
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Desktop
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
rubygem-abrt-doc
rubygem-xmlrpc
rubygem-io-console
rubygem-mysql2-doc
rubygem-mysql2
rubygem-pg
rubygem-pg-doc
rubygem-irb
rubygem-power_assert
rubygem-did_you_mean
rubygem-bigdecimal
ruby-devel
rubygem-bundler
rubygem-bundler-doc
rubygem-json
rubygem-openssl
ruby2.1-stdlib
libruby2_1-2_1
libruby2_1-2_1-debuginfo
ruby2.1
ruby2.1-debuginfo
ruby2.1-debugsource
ruby2.1-devel
ruby2.1-stdlib-debuginfo
libruby2.3 (Ubuntu package)
ruby2.3 (Ubuntu package)
libruby2.5 (Ubuntu package)
ruby2.5 (Ubuntu package)
rubygem-mongo-doc
rubygem-mongo
ruby-debugsource
ruby
ruby-debuginfo
ruby-irb
ruby-help
ruby2.5-stdlib
ruby2.5-devel-extra
ruby2.5-devel
ruby2.5-stdlib-debuginfo
ruby2.5-debugsource
ruby2.5-debuginfo
ruby2.5
libruby2_5-2_5-debuginfo
libruby2_5-2_5
ruby-doc
ruby-libs
ruby2.5-doc
ruby2.5-doc-ri
ruby2.6
libruby2.7 (Ubuntu package)
ruby2.7 (Ubuntu package)
ruby2.7
ruby-default-gems
rubygems-devel
rubygems
rubygem-psych
rh-ruby30-ruby (Red Hat package)
rubygem-test-unit
rubygem-bson-doc
rubygem-bson
rubygem-minitest
rubygem-rdoc
rubygem-rake
Dell Secure Connect Gateway
Dell EMC VxRail Appliance
How to mitigate CVE-2021-31810
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 - addressed in versions 0.3.0-4, 0.4.0-1
rubygem-abrt-doc - 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-doc - addressed in versions 0.4.10-4, 0.5.3-1
rubygem-mysql2 - addressed in versions 0.4.10-4, 0.5.3-1
rubygem-pg - addressed in versions 1.0.0-2.0.1, 1.1.4-1, 1.2.3-1.0.1
rubygem-pg-doc - 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
ruby-devel - update to 1.8.7.p357-0.9.20.3.1
rubygem-bundler - addressed in versions 1.16.1-4, 1.17.2-108, 2.2.24-137
rubygem-bundler-doc - update to 1.16.1-4
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
libruby2_1-2_1 - update to 2.1.9-19.6.1
libruby2_1-2_1-debuginfo - update to 2.1.9-19.6.1
ruby2.1 - update to 2.1.9-19.6.1
ruby2.1-debuginfo - update to 2.1.9-19.6.1
ruby2.1-debugsource - update to 2.1.9-19.6.1
ruby2.1-devel - update to 2.1.9-19.6.1
ruby2.1-stdlib-debuginfo - update to 2.1.9-19.6.1
libruby2.3 (Ubuntu package) - update to 2.3.12~ubuntu16.04.16+esm3
ruby2.3 (Ubuntu package) - update to 2.3.12~ubuntu16.04.16+esm3
libruby2.5 (Ubuntu package) - update to 2.5.1-1ubuntu1.10
ruby2.5 (Ubuntu package) - update to 2.5.1-1ubuntu1.10
rubygem-mongo-doc - addressed in versions 2.5.1-2, 2.8.0-1, 2.11.3-1
rubygem-mongo - addressed in versions 2.5.1-2, 2.8.0-1, 2.11.3-1
ruby-debugsource - update to 2.5.8-114
ruby - update to 2.5.8-114
ruby-debuginfo - update to 2.5.8-114
ruby-irb - update to 2.5.8-114
ruby-devel - update to 2.5.8-114
ruby-help - update to 2.5.8-114
ruby2.5-stdlib - 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-devel - 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-debugsource - 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 - 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
ruby-doc - addressed in versions 2.5.9-109.0.1, 2.6.9-108, 2.7.4-137
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-irb - update to 2.5.9-109.0.1
ruby2.5-doc - update to 2.5.9-150000.4.23.1
ruby2.5-doc-ri - update to 2.5.9-150000.4.23.1
ruby2.6 - update to 2.6.8-1
libruby2.7 (Ubuntu package) - addressed in versions 2.7.0-5ubuntu1.5, 2.7.1-3ubuntu1.4, 2.7.2-4ubuntu1.2
ruby2.7 (Ubuntu package) - addressed in versions 2.7.0-5ubuntu1.5, 2.7.1-3ubuntu1.4, 2.7.2-4ubuntu1.2
ruby2.7 - update to 2.7.4-1
ruby-default-gems - update to 2.7.4-137
rubygems-devel - addressed in versions 2.7.6.3-109.0.1, 3.0.3.1-108, 3.1.6-137
rubygems - 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
ruby - update to 3.0.2-1
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-doc - addressed in versions 4.3.0-2, 4.5.0-1, 4.8.1-1
rubygem-bson - 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
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
- Multiple vulnerabilities in Ruby
- 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
- SUSE update for ruby
- 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 ruby
- Arch Linux update for ruby2.6
- Arch Linux update for ruby2.7
- Gentoo update for Ruby
- openEuler update for ruby
- Fedora 34 Modular update for ruby
- Fedora 33 Modular update for ruby
- Fedora 34 update for ruby
- Anolis OS update for ruby:2.7 module
- Anolis OS update for ruby:2.6 module
- Anolis OS update for ruby:2.5 module