Intel

AIKIDO-2026-374330

ruby is vulnerable to Integer Overflow

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

77

CVE Score

High

Integer Overflow

Are you affected? Scan for Free

TL;DR

Onigmo, the regexp engine inside Ruby, stores compiled-program offsets in a signed integer and does not reject a program that outgrows that integer. An application that compiles a regular expression from untrusted input can supply a pattern whose compiled form wraps those offsets and corrupts memory. The corruption can be used to run code in the Ruby process. The fix stops compilation when the program would exceed the offset type.

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

Fixed in 4.0.8

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

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