ioredis is vulnerable to Denial of Service (DoS)
75
CVE Score
High
Denial of Service (DoS)
ioredis passes each socket chunk to a RESP parser that decodes nested arrays by calling back into the same array decoder, with no depth limit. A deeply nested array reply throws RangeError: Maximum call stack size exceeded out of parser.execute, and nothing catches it, so the Node.js process exits. That error never reaches returnFatalError, so application error handlers do not run. The fix catches errors from decoder.write and passes them to the fatal parser path, so the process stays up.
Upgrade the ioredis library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and the Redis endpoint or the network path to it is not fully trusted.
3.0.0 - 5.11.1
Fixed in 6.0.0ioredis is vulnerable to Denial of Service (DoS) in versions 3.0.0 - 5.11.1.
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.