Intel

AIKIDO-2026-199682

ruby is vulnerable to Integer Overflow

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

77

CVE Score

High

Integer Overflow

Are you affected? Scan for Free

TL;DR

Onigmo stores each repeat identifier in a signed 16-bit field and keeps assigning identifiers after that field overflows. An application that compiles a regular expression from untrusted input can supply a pattern with enough repeats to wrap the identifier and write outside the compiled program. That write can be used to run code in the Ruby process. The fix rejects a pattern whose repeat or null-check identifier would overflow.

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.1 - 3.3.12

Fixed in 3.3.13

3.4.0 - 3.4.11

Fixed in 3.4.12

4.0.0 - 4.0.8

Fixed in 4.0.9

Background info

ruby is vulnerable to Integer Overflow in versions 1.9.1 - 3.3.12, 3.4.0 - 3.4.11 and 4.0.0 - 4.0.8.

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