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
high
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-22631379
  • published20 Nov 2026
  • disclosed19 Nov 2026
  • creditStephan Lipp

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 match_at() function in regexec.c during case-insensitive matching of exact-string nodes. An attacker can read past the end of the compiled pattern or the subject buffer when the case-folded length of an exact-match node diverges from the available bytes, producing attacker-controlled memory corruption or disclosure and allowing remote code execution. Exploitation requires an application to match a case-insensitive pattern built from attacker-controlled input.

CVSS Base Scores

version 4.0
version 3.1