CVE-2022-28739 Memory corruption in n/a
A buffer over-read in Ruby's String-to-Float conversion allows attackers to cause denial of service or disclose sensitive memory information.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-28739?
CVE-2022-28739 is a high-severity memory corruption vulnerability in Apple Macos, published on 9 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-125
Which versions are affected by CVE-2022-28739?
2 open source packages ship an affected version, including ruby and ruby-min. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
ruby Bitnami | All versions | 2.6.10, 2.7.6, 3.0.4, 3.1.2 |
ruby-min Bitnami | All versions | 2.6.10, 2.7.6, 3.0.4, 3.1.2 |
Linux distribution packages (38)
ruby Red Hat:enterprise_linux:8::appstream | All versions | 0:2.6.10-109.module+el8.6.0+15475+c55337b4 |
ruby-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:2.6.10-109.module+el8.6.0+15475+c55337b4 |
ruby-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:2.6.10-109.module+el8.6.0+15475+c55337b4 |
ruby-devel Red Hat:enterprise_linux:8::appstream | All versions | 0:2.6.10-109.module+el8.6.0+15475+c55337b4 |
ruby-doc Red Hat:enterprise_linux:8::appstream | All versions | 0:2.6.10-109.module+el8.6.0+15475+c55337b4 |
ruby-libs Red Hat:enterprise_linux:8::appstream | All versions | 0:2.6.10-109.module+el8.6.0+15475+c55337b4 |
ruby-libs-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:2.6.10-109.module+el8.6.0+15475+c55337b4 |
rubygem-abrt Red Hat:enterprise_linux:8::appstream | All versions | 0:0.3.0-4.module+el8.1.0+3653+beb38eb0 |
rubygem-abrt-doc Red Hat:enterprise_linux:8::appstream | All versions | 0:0.3.0-4.module+el8.1.0+3653+beb38eb0 |
rubygem-bigdecimal Red Hat:enterprise_linux:8::appstream | All versions | 0:1.4.1-109.module+el8.6.0+15475+c55337b4 |
rubygem-bigdecimal-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:1.4.1-109.module+el8.6.0+15475+c55337b4 |
rubygem-bson Red Hat:enterprise_linux:8::appstream | All versions | 0:4.5.0-1.module+el8.1.0+3653+beb38eb0 |
rubygem-bson-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:4.5.0-1.module+el8.1.0+3653+beb38eb0 |
rubygem-bson-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:4.5.0-1.module+el8.1.0+3653+beb38eb0 |
rubygem-bson-doc Red Hat:enterprise_linux:8::appstream | All versions | 0:4.5.0-1.module+el8.1.0+3653+beb38eb0 |
rubygem-bundler Red Hat:enterprise_linux:8::appstream | All versions | 0:1.17.2-109.module+el8.6.0+15475+c55337b4 |
rubygem-did_you_mean Red Hat:enterprise_linux:8::appstream | All versions | 0:1.3.0-109.module+el8.6.0+15475+c55337b4 |
rubygem-io-console Red Hat:enterprise_linux:8::appstream | All versions | 0:0.4.7-109.module+el8.6.0+15475+c55337b4 |
rubygem-io-console-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:0.4.7-109.module+el8.6.0+15475+c55337b4 |
rubygem-irb Red Hat:enterprise_linux:8::appstream | All versions | 0:1.0.0-109.module+el8.6.0+15475+c55337b4 |
rubygem-json Red Hat:enterprise_linux:8::appstream | All versions | 0:2.1.0-109.module+el8.6.0+15475+c55337b4 |
rubygem-json-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:2.1.0-109.module+el8.6.0+15475+c55337b4 |
rubygem-minitest Red Hat:enterprise_linux:8::appstream | All versions | 0:5.11.3-109.module+el8.6.0+15475+c55337b4 |
rubygem-mongo Red Hat:enterprise_linux:8::appstream | All versions | 0:2.8.0-1.module+el8.1.0+3653+beb38eb0 |
rubygem-mongo-doc Red Hat:enterprise_linux:8::appstream | All versions | 0:2.8.0-1.module+el8.1.0+3653+beb38eb0 |
rubygem-mysql2 Red Hat:enterprise_linux:8::appstream | All versions | 0:0.5.2-1.module+el8.1.0+3653+beb38eb0 |
rubygem-mysql2-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:0.5.2-1.module+el8.1.0+3653+beb38eb0 |
rubygem-mysql2-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:0.5.2-1.module+el8.1.0+3653+beb38eb0 |
rubygem-mysql2-doc Red Hat:enterprise_linux:8::appstream | All versions | 0:0.5.2-1.module+el8.1.0+3653+beb38eb0 |
rubygem-net-telnet Red Hat:enterprise_linux:8::appstream | All versions | 0:0.2.0-109.module+el8.6.0+15475+c55337b4 |
rubygem-openssl Red Hat:enterprise_linux:8::appstream | All versions | 0:2.1.2-109.module+el8.6.0+15475+c55337b4 |
rubygem-openssl-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:2.1.2-109.module+el8.6.0+15475+c55337b4 |
rubygem-pg Red Hat:enterprise_linux:8::appstream | All versions | 0:1.1.4-1.module+el8.1.0+3653+beb38eb0 |
rubygem-pg-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:1.1.4-1.module+el8.1.0+3653+beb38eb0 |
rubygem-pg-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:1.1.4-1.module+el8.1.0+3653+beb38eb0 |
rubygem-pg-doc Red Hat:enterprise_linux:8::appstream | All versions | 0:1.1.4-1.module+el8.1.0+3653+beb38eb0 |
rubygem-power_assert Red Hat:enterprise_linux:8::appstream | All versions | 0:1.1.3-109.module+el8.6.0+15475+c55337b4 |
rubygem-psych Red Hat:enterprise_linux:8::appstream | All versions | 0:3.1.0-109.module+el8.6.0+15475+c55337b4 |
Products include Apple Macos, Debian Debian Linux, Ruby-Lang Ruby.
How do I fix CVE-2022-28739?
Upgrade ruby to a fixed version for your release line: 2.6.10, 2.7.6, 3.0.4 or 3.1.2.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-28739 being exploited?
There is no known exploitation of CVE-2022-28739 in the wild and no public exploit code.
Other vulnerabilities in Apple Macos
Sources
Also known as ALPINE-CVE-2022-28739, BIT-ruby-2022-28739, BIT-ruby-min-2022-28739, CLEANSTART-2026-FA27151, DEBIAN-CVE-2022-28739, GHSA-mvgc-rxvg-hqc6 and 5 more.