# CVE-2022-28739: 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.

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.53%, higher than 91% of CVEs (2026-12-01)
- Published: 2022-05-09T00:00:00.000Z
- Modified: 2026-09-08T08:48:19.371Z
- Also known as: BIT-RUBY-2022-28739, BIT-RUBY-MIN-2022-28739
- Weaknesses: CWE-125
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- ruby-lang ruby: before 2.6.10; from 2.7.0 before 2.7.6; from 3.0.0 before 3.0.4; from 3.1.0 before 3.1.2
- debian debian_linux: 9.0; 10.0; 11.0
- apple macos: from 11.0 before 11.7.1; from 12.0 before 12.6.1
- ruby (Bitnami): before 2.6.10; from 2.7.0 before 2.7.6; from 3.0.0 before 3.0.4; from 3.1.0 before 3.1.2
- ruby-min (Bitnami): before 2.6.10; from 2.7.0 before 2.7.6; from 3.0.0 before 3.0.4; from 3.1.0 before 3.1.2

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://hackerone.com/reports/1248108> (advisory, permissions-required, third-party-advisory)
- <https://security-tracker.debian.org/tracker/CVE-2022-28739> (advisory, third-party-advisory)
- <https://www.ruby-lang.org/en/news/2022/04/12/buffer-overrun-in-string-to-float-cve-2022-28739/> (advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20220624-0002/> (advisory, third-party-advisory)
- <https://support.apple.com/kb/HT213488> (advisory, third-party-advisory)
- <https://support.apple.com/kb/HT213494> (advisory, third-party-advisory)
- <https://support.apple.com/kb/HT213493> (advisory, third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/Oct/41> (advisory, mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/Oct/28> (mailing-list, web)
- <http://seclists.org/fulldisclosure/2022/Oct/30> (mailing-list, web)
- <http://seclists.org/fulldisclosure/2022/Oct/29> (mailing-list, web)
- <http://seclists.org/fulldisclosure/2022/Oct/42> (mailing-list, web)
- <https://lists.debian.org/debian-lts-announce/2023/06/msg00012.html> (web)
- <https://security.gentoo.org/glsa/202401-27> (web)
- <https://lists.debian.org/debian-lts-announce/2024/09/msg00000.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-28739> (web)

## Sources

- CVE List: [CVE-2022-28739](https://www.cve.org/CVERecord?id=CVE-2022-28739), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2022-28739](https://nvd.nist.gov/vuln/detail/CVE-2022-28739), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-RUBY-2022-28739](https://osv.dev/vulnerability/BIT-RUBY-2022-28739), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-RUBY-MIN-2022-28739](https://osv.dev/vulnerability/BIT-RUBY-MIN-2022-28739), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-28739 · Whole record: https://cve.day/CVE-2022-28739.json · Rebuilt by cve.day 2026-11-25T22:58:11.518Z
