ruby is vulnerable to Integer Overflow
77
CVE Score
High
Integer Overflow
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.
Upgrade the ruby library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application compiles regular expressions from untrusted input.
1.9.1 - 3.3.12
Fixed in 3.3.133.4.0 - 3.4.11
Fixed in 3.4.124.0.0 - 4.0.8
Fixed in 4.0.9ruby 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.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.