CVE-2022-28739
ruby: Buffer overrun in String-to-Float conversion
Overview
Description
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness: CWE-125
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | ruby | <2.6.10>=2.7.0, <2.7.6>=3.0.0, <3.0.4>=3.1.0, <3.1.2 | 2.6.102.7.63.0.43.1.2 |
| Bitnami | ruby-min | <2.6.10>=2.7.0, <2.7.6>=3.0.0, <3.0.4>=3.1.0, <3.1.2 | 2.6.102.7.63.0.43.1.2 |
| Julia | ruby_jll | >=0 | No fix yet |
Open a package to see all its vulnerabilities.
Operating systems · 420 fixes
Oracle Linux 2 releases · 28 packages
fixed 45
rubygem-typeprof
rubygem-net-telnet
rubygem-rss
rubygem-xmlrpc
rubygem-abrt
rubygem-mysql2
+22
| Release | Package | Fixed in |
|---|---|---|
| 8 | rubygem-typeprof | 0.15.2-141.module+el8.6.0+20741+4fdba061 |
| 8 | rubygem-net-telnet | 0.2.0-138.module+el8.6.0+20740+358d9979 |
| 8 | rubygem-rss | 0.2.9-141.module+el8.6.0+20741+4fdba061 |
| 8 | rubygem-xmlrpc | 0.3.0-138.module+el8.6.0+20740+358d9979 |
| 8 | rubygem-abrt +1 | 0.4.0-1.module+el8.5.0+20321+0ba6c954 |
| 8 | rubygem-mysql2 +1 | 0.5.3-1.module+el8.5.0+20321+0ba6c954 |
39 more rows
Photon OS 1 release · 1 package
fixed 1
ruby
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | ruby +1 | 2.7.4-4.ph4 |
Red Hat 6 releases · 60 packages
eol 1
fixed 135
ruby
rh-ruby30-rubygem-typeprof
rh-ruby27-rubygem-net-telnet
rh-ruby30-rubygem-rss
rh-ruby27-rubygem-xmlrpc
rh-ruby27-rubygem-io-console
+54
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | ruby +14 | eol | — |
| 7 | rh-ruby30-rubygem-typeprof | 0:0.15.2-149.el7 | RHSA-2022:6855 |
| 7 | rh-ruby27-rubygem-net-telnet | 0:0.2.0-131.el7 | RHSA-2022:6856 |
| 7 | rh-ruby30-rubygem-rss | 0:0.2.9-149.el7 | RHSA-2022:6855 |
| 7 | rh-ruby27-rubygem-xmlrpc | 0:0.3.0-131.el7 | RHSA-2022:6856 |
| 7 | rh-ruby27-rubygem-io-console | 0:0.5.6-131.el7 | RHSA-2022:6856 |
130 more rows
SUSE Linux Enterprise Micro 1 release · 1 package
fixed 1
libruby2-5-2-5
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.0 | libruby2-5-2-5 +2 | 2.5.9-150000.4.23.1 | SUSE-SU-2022:1512-1 |
alma 4 releases · 26 packages
fixed 79
rubygem-net-telnet
rubygem-xmlrpc
rubygem-abrt
rubygem-mysql2
rubygem-io-console
rubygem-pg
+20
| Release | Package | Fixed in |
|---|---|---|
| 8 (ruby:2.5) | rubygem-net-telnet | 0.1.1-111.module_el8.9.0+3635+c6f99506 |
| 8 (ruby:2.5) | rubygem-xmlrpc | 0.3.0-111.module_el8.9.0+3635+c6f99506 |
| 8 (ruby:2.5) | rubygem-abrt +1 | 0.3.0-4.module_el8.5.0+2625+ec418553 |
| 8 (ruby:2.5) | rubygem-mysql2 +1 | 0.4.10-4.module_el8.5.0+2625+ec418553 |
| 8 (ruby:2.5) | rubygem-io-console | 0.4.6-111.module_el8.9.0+3635+c6f99506 |
| 8 (ruby:2.5) | rubygem-pg +1 | 1.0.0-3.module_el8.9.0+3635+c6f99506 |
73 more rows
alpine 4 releases · 1 package
fixed 4
ruby
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | ruby | 3.1.2-r0 |
| 3.23 | ruby | 3.1.2-r0 |
| 3.24 | ruby | 3.1.2-r0 |
| edge | ruby | 3.1.2-r0 |
debian 3 releases · 3 packages
fixed 2
affected 1
ruby2-5
ruby2-7
ruby2-3
| Release | Package | Fixed in |
|---|---|---|
| 10 | ruby2-5 | 2.5.5-3+deb10u6 |
| 11 | ruby2-7 | 2.7.4-1+deb11u2 |
| 9 | ruby2-3 | affected |
openSUSE 1 release · 5 packages
fixed 5
libruby3-1-3-1
libruby3-2-3-2
libruby3-3-3-3
libruby3-4-3-4
libruby4-0-4-0
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libruby3-1-3-1 +5 | 3.1.2-1.1 | openSUSE-SU-2024:12006-1 |
| Tumbleweed | libruby3-2-3-2 +5 | 3.2.1-1.1 | openSUSE-SU-2024:12712-1 |
| Tumbleweed | libruby3-3-3-3 +5 | 3.3.0-1.2 | openSUSE-SU-2024:13623-1 |
| Tumbleweed | libruby3-4-3-4 +5 | 3.4.1-1.1 | openSUSE-SU-2025:14621-1 |
| Tumbleweed | libruby4-0-4-0 +5 | 4.0.0~preview2-1.1 | openSUSE-SU-2025:15819-1 |
rocky 6 releases · 26 packages
fixed 141
rubygem-net-telnet
rubygem-xmlrpc
rubygem-io-console
rubygem-irb
rubygem-power-assert
rubygem-bundler
+20
| Release | Package | Fixed in |
|---|---|---|
| 8 | rubygem-net-telnet | 0.2.0-109.module+el8.6.0+988+8031c193 |
| 8 | rubygem-xmlrpc | 0.3.0-109.module+el8.6.0+988+8031c193 |
| 8 | rubygem-io-console | 0.4.7-109.module+el8.6.0+988+8031c193 |
| 8 | rubygem-irb | 1.0.0-109.module+el8.6.0+988+8031c193 |
| 8 | rubygem-power-assert | 1.1.3-109.module+el8.6.0+988+8031c193 |
| 8 | rubygem-bundler | 1.17.2-109.module+el8.6.0+988+8031c193 |
135 more rows
ubuntu 5 releases · 3 packages
fixed 5
ruby2-5
ruby2-7
ruby3-0
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | ruby2-5 | 2.5.1-1ubuntu1.12 |
| 18.04-ESM | ruby2-5 | 2.5.1-1ubuntu1.12 |
| 20.04 | ruby2-7 | 2.7.0-5ubuntu1.7 |
| 20.04-ESM | ruby2-7 | 2.7.0-5ubuntu1.7 |
| 22.04 | ruby3-0 | 3.0.2-7ubuntu2.1 |
References
- seclists.org http://seclists.org/fulldisclosure/2022/Oct/28
- seclists.org http://seclists.org/fulldisclosure/2022/Oct/29
- seclists.org http://seclists.org/fulldisclosure/2022/Oct/30
- seclists.org http://seclists.org/fulldisclosure/2022/Oct/41
- seclists.org http://seclists.org/fulldisclosure/2022/Oct/42
- www.ruby-lang.org http://www.ruby-lang.org/en/news/2022/04/12/buffer-overrun-in-string-to-float-cve-2022-28739/
- access.redhat.com https://access.redhat.com/errata/RHSA-2022:6585
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-28739
- bugzilla.redhat.com https://bugzilla.redhat.com/2075685
- bugzilla.redhat.com https://bugzilla.redhat.com/2075687
Show all 42 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2025104
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2026757
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075685
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075687
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2109431
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2110981
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41817
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41819
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28738
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28739
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2022-6585.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2022:6450
- github.com https://github.com/ruby/ruby/commit/3fa771ddedac25560be57f4055f1767e6c810f58 (v3_0_4)
- github.com https://github.com/ruby/ruby/commit/69f9992ed41920389d4185141a14f02f89a4d306 (v2_6_10)
- github.com https://github.com/ruby/ruby/commit/8d142ecff9af7d60728b8cfa9138e8623985c428 (v3_1_2)
- github.com https://github.com/ruby/ruby/commit/c9c2245c0a25176072e02db9254f0e0c84c805cd (v2_7_6)
- hackerone.com https://hackerone.com/reports/1248108
- linux.oracle.com https://linux.oracle.com/cve/CVE-2022-28739.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2023-7025.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2023/06/msg00012.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2024/09/msg00000.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-28739
- security-tracker.debian.org https://security-tracker.debian.org/tracker/CVE-2022-28739
- security.gentoo.org https://security.gentoo.org/glsa/202401-27
- security.netapp.com https://security.netapp.com/advisory/ntap-20220624-0002/
- support.apple.com https://support.apple.com/kb/HT213488
- support.apple.com https://support.apple.com/kb/HT213493
- support.apple.com https://support.apple.com/kb/HT213494
- ubuntu.com https://ubuntu.com/security/notices/USN-5462-1
- ubuntu.com https://ubuntu.com/security/notices/USN-5462-2
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-28739
- www.ruby-lang.org https://www.ruby-lang.org/en/news/2022/04/12/buffer-overrun-in-string-to-float-cve-2022-28739/
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.