CVE-2022-28739Ruby-lang Ruby
High 7.5 No auth needed
Follow: this CVE · Ruby-lang · Ruby-lang Ruby We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 4.5% probability of exploitation in 30 days · percentile 92
- Auth required
- No
- Published
- May 9, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-125
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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
- Apply the vendor's security update for Ruby.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | ruby | < 2.6.10 |
| ruby-lang | ruby | ≥ 2.7.0 < 2.7.6 |
| ruby-lang | ruby | ≥ 3.0.0 < 3.0.4 |
| ruby-lang | ruby | ≥ 3.1.0 < 3.1.2 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| debian | debian_linux | 11.0 |
| apple | macos | ≥ 11.0 < 11.7.1 |
| apple | macos | ≥ 12.0 < 12.6.1 |
Official advisories
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:8838 · Apr 21, 2026 Critical
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:7305 · Apr 21, 2026 Critical
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:7307 · Apr 21, 2026 Critical
- libruby4_0-4_0-4.0.0~preview2-1.1 on GA media · SUSE · openSUSE-SU-2025:15819-1 · Dec 12, 2025 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- seclists.org
- seclists.org
- seclists.org
- seclists.org Mailing List Third Party Advisory
- seclists.org
- hackerone.com Permissions Required Third Party Advisory
- lists.debian.org
- security-tracker.debian.org Third Party Advisory
- security.gentoo.org
- security.netapp.com Third Party Advisory
- support.apple.com Third Party Advisory
- support.apple.com Third Party Advisory
- support.apple.com Third Party Advisory
- www.ruby-lang.org Vendor Advisory
- lists.debian.org