Out-of-bounds Read Affecting ruby package, versions [,2.6.10)[2.7.0-rc1,2.7.6)[3.0.0-rc1,3.0.4)[3.1.0,3.1.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.33% (56th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Read vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-RUBY-14930459
  • published14 Jan 2026
  • disclosed5 Apr 2022
  • creditpiao

Introduced: 5 Apr 2022

CVE-2022-28739  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade ruby to version 2.6.10, 2.7.6, 3.0.4, 3.1.2 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in the internal string conversion methods like Kernel#Float and String#to_f. An attacker can cause a crash or access unintended memory by providing specially crafted input.

CVSS Base Scores

version 4.0
version 3.1