CVEfocus › CVE database › CVE-2022-28739

CVE-2022-28739

EPSS 4.0% (higher than 91% of CVEs)Published 2022-05-09Updated 2025-11-04Assigner: mitre

There is a buffer over-read in Ruby before 2.6.10, 2.7.x before 2.7.6, 3.x before 3.0.4, and 3.1.x before 3.1.2. It occurs in String-to-Float conversion, including Kernel#Float and String#to_f.

What to do

Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

144Fixed
1Fix pending
24Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04ruby3.0Fixed3.0.2-7ubuntu2.1UBUNTU-CVE-2022-28739
Ubuntu 20.04ruby2.7Fixed2.7.0-5ubuntu1.7UBUNTU-CVE-2022-28739
Ubuntu 18.04ruby2.5Fixed2.5.1-1ubuntu1.12UBUNTU-CVE-2022-28739
Ubuntu 16.04ruby2.3Fix pending2.3.1-2~ubuntu16.04.16+esm3 (Ubuntu Pro)UBUNTU-CVE-2022-28739
Red Hat Enterprise Linux 9rubyFixed0:3.0.4-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9ruby-default-gemsFixed0:3.0.4-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9ruby-develFixed0:3.0.4-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9ruby-docFixed0:3.0.4-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9ruby-libsFixed0:3.0.4-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygem-bigdecimalFixed0:3.0.0-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygem-bundlerFixed0:2.2.33-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygem-io-consoleFixed0:0.5.7-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygem-irbFixed0:1.3.5-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygem-jsonFixed0:2.5.1-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygem-minitestFixed0:5.14.2-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygem-power_assertFixed0:1.2.0-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygem-psychFixed0:3.3.2-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygem-rakeFixed0:13.0.3-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygem-rbsFixed0:1.4.0-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygem-rdocFixed0:6.3.3-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygem-rexmlFixed0:3.2.5-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygem-rssFixed0:0.2.9-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygem-test-unitFixed0:3.3.7-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygem-typeprofFixed0:0.15.2-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygemsFixed0:3.2.33-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 9rubygems-develFixed0:3.2.33-160.el9_0RHSA-2022:6585
Red Hat Enterprise Linux 8rubyFixed0:2.6.10-109.module+el8.6.0+15475+c55337b4RHSA-2022:6450
Red Hat Enterprise Linux 8ruby-default-gemsFixed0:2.7.6-138.module+el8.6.0+16148+54b2ba8fRHSA-2022:6450
Red Hat Enterprise Linux 8ruby-develFixed0:2.5.9-111.module+el8.9.0+19193+435404aeRHSA-2022:6450
Red Hat Enterprise Linux 8ruby-docFixed0:2.6.10-109.module+el8.6.0+15475+c55337b4RHSA-2022:6450
Red Hat Enterprise Linux 8ruby-irbFixed0:2.5.9-111.module+el8.9.0+19193+435404aeRHSA-2023:7025
Red Hat Enterprise Linux 8ruby-libsFixed0:2.5.9-111.module+el8.9.0+19193+435404aeRHSA-2022:6450
Red Hat Enterprise Linux 8rubygem-abrtFixed0:0.4.0-1.module+el8.3.0+7192+4e3a532aRHSA-2023:7025
Red Hat Enterprise Linux 8rubygem-abrt-docFixed0:0.3.0-4.module+el8.9.0+19193+435404aeRHSA-2022:6447
Red Hat Enterprise Linux 8rubygem-bigdecimalFixed0:1.4.1-109.module+el8.6.0+15475+c55337b4RHSA-2022:6450
Red Hat Enterprise Linux 8rubygem-bsonFixed0:4.3.0-2.module+el8.9.0+19193+435404aeRHSA-2022:6447
Red Hat Enterprise Linux 8rubygem-bson-docFixed0:4.3.0-2.module+el8.9.0+19193+435404aeRHSA-2022:6447
Red Hat Enterprise Linux 8rubygem-bundlerFixed0:2.2.24-138.module+el8.6.0+16148+54b2ba8fRHSA-2022:6450
Red Hat Enterprise Linux 8rubygem-bundler-docFixed0:1.16.1-4.module+el8.9.0+19193+435404aeRHSA-2023:7025
Red Hat Enterprise Linux 8rubygem-did_you_meanFixed0:1.2.0-111.module+el8.9.0+19193+435404aeRHSA-2022:5338
Red Hat Enterprise Linux 8rubygem-io-consoleFixed0:0.4.6-111.module+el8.9.0+19193+435404aeRHSA-2022:6447
Red Hat Enterprise Linux 8rubygem-irbFixed0:1.0.0-109.module+el8.6.0+15475+c55337b4RHSA-2022:6450
Red Hat Enterprise Linux 8rubygem-jsonFixed0:2.5.1-141.module+el8.6.0+16311+3e5e17e9RHSA-2022:6447
Red Hat Enterprise Linux 8rubygem-minitestFixed0:5.13.0-138.module+el8.6.0+16148+54b2ba8fRHSA-2023:7025
Red Hat Enterprise Linux 8rubygem-mongoFixed0:2.5.1-2.module+el8.9.0+19193+435404aeRHSA-2022:6447
Red Hat Enterprise Linux 8rubygem-mongo-docFixed0:2.5.1-2.module+el8.9.0+19193+435404aeRHSA-2022:6447
Red Hat Enterprise Linux 8rubygem-mysql2Fixed0:0.5.3-1.module+el8.3.0+7192+4e3a532aRHSA-2023:7025
Red Hat Enterprise Linux 8rubygem-mysql2-docFixed0:0.4.10-4.module+el8.9.0+19193+435404aeRHSA-2022:5338
Red Hat Enterprise Linux 8rubygem-net-telnetFixed0:0.2.0-109.module+el8.6.0+15475+c55337b4RHSA-2023:7025
Red Hat Enterprise Linux 8rubygem-opensslFixed0:2.1.2-109.module+el8.6.0+15475+c55337b4RHSA-2022:6447
Red Hat Enterprise Linux 8rubygem-pgFixed0:1.2.3-1.module+el8.3.0+7192+4e3a532aRHSA-2022:6450
Red Hat Enterprise Linux 8rubygem-pg-docFixed0:1.2.3-1.module+el8.3.0+7192+4e3a532aRHSA-2022:6450
Red Hat Enterprise Linux 8rubygem-power_assertFixed0:1.1.3-109.module+el8.6.0+15475+c55337b4RHSA-2022:6447
Red Hat Enterprise Linux 8rubygem-psychFixed0:3.0.2-111.module+el8.9.0+19193+435404aeRHSA-2022:6450
Red Hat Enterprise Linux 8rubygem-rakeFixed0:13.0.1-138.module+el8.6.0+16148+54b2ba8fRHSA-2022:6450
Red Hat Enterprise Linux 8rubygem-rbsFixed0:1.4.0-141.module+el8.6.0+16311+3e5e17e9RHSA-2022:6450
Red Hat Enterprise Linux 8rubygem-rdocFixed0:6.0.1.1-111.module+el8.9.0+19193+435404aeRHSA-2022:6447
Red Hat Enterprise Linux 8rubygem-rexmlFixed0:3.2.5-141.module+el8.6.0+16311+3e5e17e9RHSA-2022:6450
Red Hat Enterprise Linux 8rubygem-rssFixed0:0.2.9-141.module+el8.6.0+16311+3e5e17e9RHSA-2022:6450
Red Hat Enterprise Linux 8rubygem-test-unitFixed0:3.3.4-138.module+el8.6.0+16148+54b2ba8fRHSA-2023:7025
Red Hat Enterprise Linux 8rubygem-typeprofFixed0:0.15.2-141.module+el8.6.0+16311+3e5e17e9RHSA-2022:6450
Red Hat Enterprise Linux 8rubygem-xmlrpcFixed0:0.3.0-109.module+el8.6.0+15475+c55337b4RHSA-2022:6447
Red Hat Enterprise Linux 8rubygemsFixed0:3.1.6-138.module+el8.6.0+16148+54b2ba8fRHSA-2022:5338
Red Hat Enterprise Linux 8rubygems-develFixed0:3.2.33-141.module+el8.6.0+16311+3e5e17e9RHSA-2023:7025
Red Hat Enterprise Linux 7rubyWill not fix
Out of support scope
Red Hat Enterprise Linux 7ruby-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7ruby-docWill not fix
Out of support scope
Red Hat Enterprise Linux 7ruby-irbWill not fix
Out of support scope
Red Hat Enterprise Linux 7ruby-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7ruby-tcltkWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygem-bigdecimalWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygem-io-consoleWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygem-jsonWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygem-minitestWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygem-psychWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygem-rakeWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygem-rdocWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygemsWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygems-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6rubyWill not fix
Out of support scope
Red Hat Enterprise Linux 6ruby-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6ruby-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 6ruby-irbWill not fix
Out of support scope
Red Hat Enterprise Linux 6ruby-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6ruby-rdocWill not fix
Out of support scope
Red Hat Enterprise Linux 6ruby-riWill not fix
Out of support scope
Red Hat Enterprise Linux 6ruby-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 6ruby-tcltkWill not fix
Out of support scope
AlmaLinux 9rubyFixed3.0.4-160.el9_0ALSA-2022:6585
AlmaLinux 9ruby-default-gemsFixed3.0.4-160.el9_0ALSA-2022:6585
AlmaLinux 9ruby-develFixed3.0.4-160.el9_0ALSA-2022:6585
AlmaLinux 9ruby-docFixed3.0.4-160.el9_0ALSA-2022:6585
AlmaLinux 9ruby-libsFixed3.0.4-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygem-bigdecimalFixed3.0.0-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygem-bundlerFixed2.2.33-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygem-io-consoleFixed0.5.7-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygem-irbFixed1.3.5-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygem-jsonFixed2.5.1-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygem-minitestFixed5.14.2-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygem-power_assertFixed1.2.0-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygem-psychFixed3.3.2-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygem-rakeFixed13.0.3-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygem-rbsFixed1.4.0-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygem-rdocFixed6.3.3-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygem-rexmlFixed3.2.5-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygem-rssFixed0.2.9-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygem-test-unitFixed3.3.7-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygem-typeprofFixed0.15.2-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygemsFixed3.2.33-160.el9_0ALSA-2022:6585
AlmaLinux 9rubygems-develFixed3.2.33-160.el9_0ALSA-2022:6585
AlmaLinux 8rubyFixed2.5.9-111.module_el8.9.0+3635+c6f99506ALSA-2022:6447
AlmaLinux 8ruby-default-gemsFixed3.0.4-141.module_el8.6.0+3263+41cde0c0ALSA-2022:6447
AlmaLinux 8ruby-develFixed2.5.9-111.module_el8.9.0+3635+c6f99506ALSA-2022:6447
AlmaLinux 8ruby-docFixed3.0.4-141.module_el8.6.0+3263+41cde0c0ALSA-2022:6447
AlmaLinux 8ruby-irbFixed2.5.9-111.module_el8.9.0+3635+c6f99506ALSA-2023:7025
AlmaLinux 8ruby-libsFixed3.0.4-141.module_el8.6.0+3263+41cde0c0ALSA-2022:6447
AlmaLinux 8rubygem-abrtFixed0.4.0-1.module_el8.5.0+2595+0c654ebcALSA-2023:7025
AlmaLinux 8rubygem-abrt-docFixed0.3.0-4.module_el8.5.0+2625+ec418553ALSA-2022:6447
AlmaLinux 8rubygem-bigdecimalFixed2.0.0-138.module_el8.6.0+3263+904da987ALSA-2022:6450
AlmaLinux 8rubygem-bsonFixed4.3.0-2.module_el8.5.0+2625+ec418553ALSA-2022:6447
AlmaLinux 8rubygem-bson-docFixed4.3.0-2.module_el8.5.0+2625+ec418553ALSA-2022:6447
AlmaLinux 8rubygem-bundlerFixed1.16.1-4.module_el8.5.0+2625+ec418553ALSA-2022:6447
AlmaLinux 8rubygem-bundler-docFixed1.16.1-4.module_el8.5.0+2625+ec418553ALSA-2023:7025
AlmaLinux 8rubygem-did_you_meanFixed1.2.0-111.module_el8.9.0+3635+c6f99506ALSA-2023:7025
AlmaLinux 8rubygem-io-consoleFixed0.5.6-138.module_el8.6.0+3263+904da987ALSA-2023:7025
AlmaLinux 8rubygem-irbFixed1.2.6-138.module_el8.6.0+3263+904da987ALSA-2022:6450
AlmaLinux 8rubygem-jsonFixed2.3.0-138.module_el8.6.0+3263+904da987ALSA-2022:6450
AlmaLinux 8rubygem-minitestFixed5.10.3-111.module_el8.9.0+3635+c6f99506ALSA-2022:6447
AlmaLinux 8rubygem-mongoFixed2.11.3-1.module_el8.3.0+6147+d0dfc1e4ALSA-2023:7025
AlmaLinux 8rubygem-mongo-docFixed2.5.1-2.module_el8.5.0+2625+ec418553ALSA-2022:6447
AlmaLinux 8rubygem-mysql2Fixed0.5.3-1.module_el8.5.0+118+1ab773e1ALSA-2022:6447
AlmaLinux 8rubygem-mysql2-docFixed0.5.3-1.module_el8.5.0+2595+0c654ebcALSA-2022:6450
AlmaLinux 8rubygem-net-telnetFixed0.2.0-138.module_el8.6.0+3263+904da987ALSA-2023:7025
AlmaLinux 8rubygem-opensslFixed2.1.2-111.module_el8.9.0+3635+c6f99506ALSA-2022:6447
AlmaLinux 8rubygem-pgFixed1.2.3-1.module_el8.4.0+2399+4e3a532aALSA-2022:6447
AlmaLinux 8rubygem-pg-docFixed1.2.3-1.module_el8.5.0+2595+0c654ebcALSA-2023:7025
AlmaLinux 8rubygem-power_assertFixed1.1.7-138.module_el8.6.0+3263+904da987ALSA-2023:7025
AlmaLinux 8rubygem-psychFixed3.1.0-138.module_el8.6.0+3263+904da987ALSA-2023:7025
AlmaLinux 8rubygem-rakeFixed13.0.3-141.module_el8.6.0+3263+41cde0c0ALSA-2022:6447
AlmaLinux 8rubygem-rbsFixed1.4.0-141.module_el8.6.0+3263+41cde0c0ALSA-2022:6450
AlmaLinux 8rubygem-rdocFixed6.2.1.1-138.module_el8.6.0+3263+904da987ALSA-2023:7025
AlmaLinux 8rubygem-rexmlFixed3.2.5-141.module_el8.6.0+3263+41cde0c0ALSA-2022:6450
AlmaLinux 8rubygem-rssFixed0.2.9-141.module_el8.6.0+3263+41cde0c0ALSA-2022:6450
AlmaLinux 8rubygem-test-unitFixed3.2.7-111.module_el8.9.0+3635+c6f99506ALSA-2022:6450
AlmaLinux 8rubygem-typeprofFixed0.15.2-141.module_el8.6.0+3263+41cde0c0ALSA-2022:6450
AlmaLinux 8rubygem-xmlrpcFixed0.3.0-138.module_el8.6.0+3263+904da987ALSA-2023:7025
AlmaLinux 8rubygemsFixed3.1.6-138.module_el8.6.0+3263+904da987ALSA-2023:7025
AlmaLinux 8rubygems-develFixed2.7.6.3-111.module_el8.9.0+3635+c6f99506ALSA-2022:6447
Rocky Linux 9rubyFixed0:3.0.4-160.el9_0RLSA-2022:6585
Rocky Linux 8rubyFixed0:3.0.4-141.module+el8.6.0+1002+a7dba0acRLSA-2022:5338
Rocky Linux 8rubygem-abrtFixed0:0.3.0-4.module+el8.5.0+738+032c9c02RLSA-2022:6450
Rocky Linux 8rubygem-bsonFixed0:4.8.1-1.module+el8.4.0+411+b946f28cRLSA-2022:6447
Rocky Linux 8rubygem-bundlerFixed0:1.16.1-4.module+el8.9.0+1536+5f79634eRLSA-2023:7025
Rocky Linux 8rubygem-mongoFixed0:2.8.0-1.module+el8.4.0+593+8d7f9f0cRLSA-2023:7025
Rocky Linux 8rubygem-mysql2Fixed0:0.5.3-1.module+el8.4.0+411+b946f28cRLSA-2022:6447
Rocky Linux 8rubygem-pgFixed0:1.2.3-1.module+el8.4.0+411+b946f28cRLSA-2022:5338
Alpine Linux 3.24rubyFixed3.1.2-r0ALPINE-CVE-2022-28739
Alpine Linux 3.23rubyFixed3.1.2-r0ALPINE-CVE-2022-28739
Alpine Linux 3.22rubyFixed3.1.2-r0ALPINE-CVE-2022-28739
Alpine Linux 3.21rubyFixed3.1.2-r0ALPINE-CVE-2022-28739
Alpine Linux 3.20rubyFixed3.1.2-r0ALPINE-CVE-2022-28739
Alpine Linux 3.19rubyFixed3.1.2-r0ALPINE-CVE-2022-28739
Alpine Linux 3.18rubyFixed3.1.2-r0ALPINE-CVE-2022-28739
Alpine Linux 3.17rubyFixed3.1.2-r0ALPINE-CVE-2022-28739
Alpine Linux 3.16rubyFixed3.1.2-r0ALPINE-CVE-2022-28739
Alpine Linux 3.15rubyFixed3.0.4-r0ALPINE-CVE-2022-28739
Alpine Linux 3.14rubyFixed2.7.6-r0ALPINE-CVE-2022-28739
Alpine Linux 3.13rubyFixed2.7.6-r0ALPINE-CVE-2022-28739
Alpine Linux 3.12rubyFixed2.7.6-r0ALPINE-CVE-2022-28739

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.