Out-of-bounds Write Affecting ruby package, versions [0,]


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 Write vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-RUBY-22631384
  • published20 Nov 2026
  • disclosed19 Nov 2026
  • creditStephan Lipp

Introduced: 19 Nov 2026

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

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write in the rb_reg_str_with_term() function in re.c, which implements Regexp#to_s. An attacker can write past the end of a heap buffer when Regexp#to_s re-parses the pattern source through Onigmo without first normalizing it with rb_reg_preprocess(), producing information disclosure or remote code execution. Exploitation requires an application to call to_s on, or interpolate, a Regexp compiled from attacker-controlled input.

CVSS Base Scores

version 4.0
version 3.1