ruby is vulnerable to Double Free
77
CVE Score
High
Double Free
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.
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.2 - 3.3.12
Fixed in 3.3.133.4.0 - 3.4.11
Fixed in 3.4.12ruby is vulnerable to Double Free in versions 1.9.2 - 3.3.12 and 3.4.0 - 3.4.11.
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.