Vulnerabilities · 2022 · Ruby-lang
CVE-2022-28739
Ruby-lang Ruby vulnerability
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.
Affected products
Ruby, Debian Linux, Macos. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Ruby runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.ruby-lang.org/en/news/2022/04/12/buffer-overrun-in-string-to-float-cve-2022-28739/ · Vendor Advisory
- seclists.org/fulldisclosure/2022/Oct/41 · Third Party Advisory
- hackerone.com/reports/1248108 · Third Party Advisory
- security-tracker.debian.org/tracker/CVE-2022-28739 · Third Party Advisory
- security.netapp.com/advisory/ntap-20220624-0002/ · Third Party Advisory
- support.apple.com/kb/HT213488 · Third Party Advisory
- support.apple.com/kb/HT213493 · Third Party Advisory
- support.apple.com/kb/HT213494 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-28739
- cve.org/CVERecord?id=CVE-2022-28739
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.