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

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

Introduced: 19 Nov 2026

New CVE NOT AVAILABLE CWE-415  (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 Double Free in the parse_char_class() function in regparse.c when compiling a regular expression that contains a character class intersection (&&). An attacker can free the same BBuf buffer (cc->mbuf) twice on the intersection error path, corrupting the heap allocator and allowing remote code execution. Exploitation requires an application to compile a regular expression built from attacker-controlled input.

CVSS Base Scores

version 4.0
version 3.1