Integer Overflow or Wraparound Affecting ruby package, versions [0,]


Severity

Recommended
0.0
critical
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 Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-RUBY-22631382
  • published20 Nov 2026
  • disclosed19 Nov 2026
  • creditaphantom

Introduced: 19 Nov 2026

New CVE NOT AVAILABLE CWE-190  (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 Integer Overflow or Wraparound in the regular expression compiler in regcomp.c and regint.h, caused by an integer overflow in the compiled-program size. An attacker can drive the compiled program past the range its int offset accounting can address so that a bulk BBUF_ADD write lands beyond the program buffer, by compiling a large pattern, allowing remote code execution. Exploitation requires an application to compile a regular expression built from attacker-controlled input large enough to overflow the size accounting.

CVSS Base Scores

version 4.0
version 3.1