Type conversion in Ruby - CVE-2022-28739
Published: April 12, 2022 / Updated: July 20, 2022
Vulnerability details
The vulnerability allows a remote attacker to compromise the affected system.
The vulnerability exists due to a type conversion error in some convertion methods like Kernel#Float</code> and <code>String#to_f. A remote attacker can pass specially crafted data to the affected application, trigger memory corruption and execute arbitrary code in the system.
Affected software
Gentoo Linux
Amazon Linux AMI
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Linux Enterprise Micro
SUSE Enterprise Storage
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Anolis OS
Oracle Linux
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
macOS
Slackware Linux
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Module for Basesystem
openSUSE Leap
Ubuntu
openEuler
Fedora
cflinuxfs3
OpenManage Network Integration (OMNI)
Red Hat Software Collections
rh-ruby27-ruby (Red Hat package)
rh-ruby30-ruby (Red Hat package)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
rubygem-net-telnet
rubygem-rss
rubygem-abrt-doc
rubygem-abrt
rubygem-xmlrpc
rubygem-io-console
rubygem-mysql2-doc
rubygem-mysql2
rubygem-typeprof
rubygem-pg
rubygem-pg-doc
rubygem-irb
rubygem-power_assert
rubygem-did_you_mean
rubygem-bigdecimal
rubygem-rbs
rubygem-bundler-doc
rubygem-bundler
ruby20
rubygem-json
rubygem-openssl
ruby2.3 (Ubuntu package)
libruby2.3 (Ubuntu package)
libruby2.5 (Ubuntu package)
ruby2.5 (Ubuntu package)
ruby-help
ruby-irb
ruby-debugsource
ruby-debuginfo
ruby-devel
ruby
ruby-libs
ruby-doc
ruby2.5
libruby2_5-2_5
libruby2_5-2_5-debuginfo
ruby2.5-doc-ri
ruby2.5-stdlib-debuginfo
ruby2.5-stdlib
ruby2.5-debuginfo
ruby2.5-debugsource
ruby2.5-doc
ruby2.5-devel-extra
ruby2.5-devel
libruby2.7 (Ubuntu package)
ruby2.7 (Ubuntu package)
rubygems
rubygems-devel
ruby-default-gems
rubygem-mongo-doc
rubygem-mongo
rubygem-psych
ruby (Red Hat package)
rubygem-rexml
rubygem-test-unit
rubygem-bson-doc
rubygem-bson
rubygem-minitest
rubygem-rdoc
rubygem-rake
Isolation Segment
VMware Tanzu Application Service for VMs
libruby3.0 (Ubuntu package)
ruby3.0 (Ubuntu package)
Dell EMC VxRail Appliance
How to mitigate CVE-2022-28739
cflinuxfs3 - update to 0.303.0
rh-ruby27-ruby (Red Hat package) - update to 2.7.6-131.el7
rh-ruby30-ruby (Red Hat package) - update to 3.0.4-149.el7
macOS - addressed in versions 11.7.1 20G918, 12.6.1 21G217, 13.0 22A380
rubygem-net-telnet - addressed in versions 0.1.1-111.0.1, 0.2.0-109, 0.2.0-138.0.1
rubygem-net-telnet - update to 0.1.1-116
rubygem-rss - update to 0.2.9-141.0.1
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-109, 0.3.0-111.0.1, 0.3.0-138.0.1
rubygem-xmlrpc - update to 0.3.0-116
rubygem-io-console - addressed in versions 0.4.6-111.0.1, 0.4.7-109, 0.5.6-138.0.1, 0.5.7-141.0.1
rubygem-io-console - update to 0.4.6-116
rubygem-mysql2-doc - addressed in versions 0.4.10-4, 0.5.2-1, 0.5.3-1
rubygem-mysql2 - addressed in versions 0.4.10-4, 0.5.2-1, 0.5.3-1
rubygem-typeprof - update to 0.15.2-141.0.1
rubygem-pg - addressed in versions 1.0.0-3.0.1, 1.1.4-1, 1.2.3-1, 1.2.3-1.0.1
rubygem-pg-doc - addressed in versions 1.0.0-3.0.1, 1.1.4-1, 1.2.3-1, 1.2.3-1.0.1
rubygem-irb - addressed in versions 1.0.0-109, 1.2.6-138.0.1, 1.3.5-141.0.1
rubygem-power_assert - addressed in versions 1.1.1-111.0.1, 1.1.3-109, 1.1.7-138.0.1, 1.2.0-141.0.1
rubygem-power_assert - update to 1.1.1-116
rubygem-did_you_mean - addressed in versions 1.2.0-111.0.1, 1.3.0-109
rubygem-did_you_mean - update to 1.2.0-116
rubygem-bigdecimal - addressed in versions 1.3.4-111.0.1, 1.4.1-109, 2.0.0-138.0.1, 3.0.0-141.0.1
rubygem-bigdecimal - update to 1.3.4-116
rubygem-rbs - update to 1.4.0-141.0.1
rubygem-bundler-doc - update to 1.16.1-4
rubygem-bundler - addressed in versions 1.16.1-4, 1.17.2-109, 2.2.24-138.0.1, 2.2.33-141.0.1
ruby20 - update to 2.0.0.648-2.41
rubygem-json - addressed in versions 2.1.0-109, 2.1.0-111.0.1, 2.3.0-138.0.1, 2.5.1-141.0.1
rubygem-json - update to 2.1.0-116
rubygem-openssl - addressed in versions 2.1.2-109, 2.1.2-111.0.1, 2.1.3-138.0.1
rubygem-openssl - update to 2.1.2-116
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
libruby2.5 (Ubuntu package) - update to 2.5.1-1ubuntu1.12
ruby2.5 (Ubuntu package) - update to 2.5.1-1ubuntu1.12
ruby-help - update to 2.5.8-116
ruby-irb - update to 2.5.8-116
ruby-debugsource - update to 2.5.8-116
ruby-debuginfo - update to 2.5.8-116
ruby-devel - update to 2.5.8-116
ruby - update to 2.5.8-116
ruby - addressed in versions 2.5.9-111.0.1, 2.6.10-109, 2.7.6-138.0.1, 3.0.4-141.0.1
ruby-devel - addressed in versions 2.5.9-111.0.1, 2.6.10-109, 2.7.6-138.0.1, 3.0.4-141.0.1
ruby-libs - addressed in versions 2.5.9-111.0.1, 2.6.10-109, 2.7.6-138.0.1, 3.0.4-141.0.1
ruby-doc - addressed in versions 2.5.9-111.0.1, 2.6.10-109, 2.7.6-138.0.1, 3.0.4-141.0.1
ruby-irb - update to 2.5.9-111.0.1
ruby2.5 - update to 2.5.9-150000.4.23.1
libruby2_5-2_5 - update to 2.5.9-150000.4.23.1
libruby2_5-2_5-debuginfo - update to 2.5.9-150000.4.23.1
ruby2.5-doc-ri - update to 2.5.9-150000.4.23.1
ruby2.5-stdlib-debuginfo - update to 2.5.9-150000.4.23.1
ruby2.5-stdlib - update to 2.5.9-150000.4.23.1
ruby2.5-debuginfo - update to 2.5.9-150000.4.23.1
ruby2.5-debugsource - update to 2.5.9-150000.4.23.1
ruby2.5-doc - update to 2.5.9-150000.4.23.1
ruby2.5-devel-extra - update to 2.5.9-150000.4.23.1
ruby2.5-devel - update to 2.5.9-150000.4.23.1
libruby2.7 (Ubuntu package) - addressed in versions 2.7.0-5ubuntu1.7, 2.7.4-1ubuntu3.2
ruby2.7 (Ubuntu package) - addressed in versions 2.7.0-5ubuntu1.7, 2.7.4-1ubuntu3.2
rubygems - addressed in versions 2.7.6.3-111.0.1, 3.0.3.1-109, 3.1.6-138.0.1, 3.2.33-141.0.1
rubygems-devel - addressed in versions 2.7.6.3-111.0.1, 3.0.3.1-109, 3.1.6-138.0.1, 3.2.33-141.0.1
rubygems-devel - update to 2.7.6-116
rubygems - update to 2.7.6-116
ruby-default-gems - addressed in versions 2.7.6-138.0.1, 3.0.4-141.0.1
Isolation Segment - addressed in versions 2.7.47, 2.10.27, 2.11.16, 2.12.10
VMware Tanzu Application Service for VMs - addressed in versions 2.7.52, 2.10.34, 2.11.22, 2.12.15, 2.13.7
rubygem-mongo-doc - addressed in versions 2.8.0-1, 2.11.3-1
rubygem-mongo - addressed in versions 2.8.0-1, 2.11.3-1
libruby3.0 (Ubuntu package) - update to 3.0.2-7ubuntu2.1
ruby3.0 (Ubuntu package) - update to 3.0.2-7ubuntu2.1
rubygem-psych - addressed in versions 3.0.2-111.0.1, 3.1.0-109, 3.1.0-138.0.1, 3.3.2-141.0.1
rubygem-psych - update to 3.0.2-116
ruby - addressed in versions 3.0.4-153.fc34, 3.0.4-153.fc35, 3.1.2-164.fc36
ruby (Red Hat package) - update to 3.0.4-160.el9_0
rubygem-rexml - update to 3.2.5-141.0.1
rubygem-test-unit - addressed in versions 3.2.7-111.0.1, 3.2.9-109, 3.3.4-138.0.1, 3.3.7-141.0.1
rubygem-test-unit - update to 3.2.7-116
OpenManage Network Integration (OMNI) - update to 3.7
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-111.0.1, 5.11.3-109, 5.13.0-138.0.1, 5.14.2-141.0.1
rubygem-minitest - update to 5.10.3-116
rubygem-rdoc - addressed in versions 6.0.1.1-111.0.1, 6.1.2.1-109, 6.2.1.1-138.0.1, 6.3.3-141.0.1
rubygem-rdoc - update to 6.0.1.1-116
Dell EMC VxRail Appliance - update to 8.0.000
rubygem-rake - update to 12.3.0-116
rubygem-rake - addressed in versions 12.3.3-109, 12.3.3-111.0.1, 13.0.1-138.0.1, 13.0.3-141.0.1
External References
Related Security Bulletins
- Multiple vulnerabilities in Ruby
- Slackware Linux update for ruby
- Multiple vulnerabilities in cflinuxfs3
- Ubuntu update for ruby2.5
- Ubuntu update for ruby2.3
- Red Hat Enterprise Linux 8 update for the ruby:2.6 module
- Multiple vulnerabilities in Oracle Linux
- Red Hat Enterprise Linux 8 update for the ruby:3.0 module
- Red Hat Enterprise Linux 8 update for the ruby:2.7 module
- Red Hat Enterprise Linux 9 update for ruby
- Amazon Linux AMI update for ruby20
- Red Hat Software Collections update for rh-ruby27-ruby
- Red Hat Software Collections update for rh-ruby30-ruby
- Multiple vulnerabilities in Oracle Linux
- Multiple vulnerabilities in Apple macOS Monterey
- Multiple vulnerabilities in Apple macOS Big Sur
- Multiple vulnerabilities in Apple macOS Ventura
- Multiple vulnerabilities in Dell VxRail Appliance components
- SUSE update for ruby2.5
- VMware Tanzu products update for Ruby
- Red Hat Enterprise Linux 8 update for the ruby:2.5 module
- Gentoo update for Ruby
- openEuler update for ruby
- Fedora 36 update for ruby
- Fedora 35 update for ruby
- Fedora 34 update for ruby
- Multiple vulnerabilities in Dell OpenManage Network Integration (OMNI)
- Anolis OS update for ruby:2.6 module
- Anolis OS update for ruby:2.7 module
- Anolis OS update for ruby:3.0 module
- Anolis OS update for ruby:2.5 module