CVE-2022-28739
Ruby vulnerability analysis and mitigation

Overview

A buffer over-read vulnerability (CVE-2022-28739) was discovered in Ruby before versions 2.6.10, 2.7.x before 2.7.6, 3.x before 3.0.4, and 3.1.x before 3.1.2. The vulnerability occurs in String-to-Float conversion functionality, specifically affecting Kernel#Float and String#to_f methods. The issue was discovered and reported by piao, with the initial disclosure made on April 12, 2022 (Ruby Lang).

Technical details

The vulnerability exists in an internal function that converts a String to a Float data type. The bug manifests as a buffer over-read condition during string-to-float conversion operations, affecting methods like Kernel#Float and String#to_f. The vulnerability has been assigned a CVSS score of 7.5 (HIGH) with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (NetApp Advisory).

Impact

The primary impact of this vulnerability is the potential for process termination due to segmentation faults. Under specific circumstances, it may also be exploitable for unauthorized memory reads, potentially leading to information disclosure. The vulnerability could allow remote users to cause unexpected application termination or potentially execute arbitrary code (Ruby Lang).

Mitigation and workarounds

The vulnerability has been fixed in Ruby versions 2.6.10, 2.7.6, 3.0.4, and 3.1.2. Users are strongly recommended to upgrade to these or later versions to address the security issue. The fix involves updating the string-to-float conversion algorithm to prevent buffer over-read conditions (Ruby Lang).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
GHSA-vfpf-xmwh-8m65HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 07, 2025
GHSA-52c5-vh7f-26fxHIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 06, 2025
CVE-2025-12790HIGH7.4
  • RubyRuby
  • mqtt
NoYesNov 06, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management