Intel

AIKIDO-2026-187945

ruby is vulnerable to Double Free

CVE-2026-89078Published Oct 23, 2026
October 23, 2026

77

CVE Score

High

Double Free

Are you affected? Scan for Free

TL;DR

Ruby's regexp parser frees the same parse node twice when an alternation fails to compile. An application that passes untrusted input to Regexp.new, Regexp.compile, Regexp.union, or an interpolated regexp literal can trigger that double free and corrupt the process heap. The corruption can be used to run code in the Ruby process. The fix frees the alternation tree once and publishes it only after parsing succeeds.

How do I fix this?

Upgrade the ruby library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application compiles regular expressions from untrusted input.

Package

ruby

Versions

1.9.2 - 3.3.12

Fixed in 3.3.13

3.4.0 - 3.4.11

Fixed in 3.4.12

Background info

ruby is vulnerable to Double Free in versions 1.9.2 - 3.3.12 and 3.4.0 - 3.4.11.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea