Out-of-bounds Read Affecting ruby package, versions [,3.3.14)[3.4.0,3.4.13)[4.0.0,4.0.10)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

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-22631385
  • published20 Nov 2026
  • disclosed19 Nov 2026
  • creditHiroya Fujinami, Hiroshi SHIBATA

Introduced: 19 Nov 2026

New CVE NOT AVAILABLE CWE-125  (opens in a new tab)

How to fix?

Upgrade ruby to version 3.3.14, 3.4.13, 4.0.10 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in the string_cmp_ic() function in regexec.c during case-insensitive backreference matching. An attacker can read past the end of the subject string when a case-insensitive backreference is case-folded beyond the subject's end, producing memory disclosure or a process crash. Exploitation requires an application to match a case-insensitive pattern containing a backreference against attacker-influenced input.

CVSS Base Scores

version 4.0
version 3.1