Advisories · Databases
CVE-2024-31449
High
CVSS 7.0
Redis Lua bit library overflow
Disclosed 2024 · Last reviewed 2 Dec 2026
An authenticated user could crash Redis or potentially run code with a crafted Lua script that hit the bit library.
What happened
bit.tohex and a related helper overflowed a stack buffer.
Affected and patched versions
- Affected
- Redis with Lua scripting, from 2.8.18 through the October 2024 fixes. An authenticated user is required.
- Patched
- Redis 6.2.16, 7.2.6, and 7.4.1, plus later releases on those lines.
How to check your server
Check
redis-server --version
How to fix and harden
- Run redis-server --version.
- Upgrade to the fixed release for the major you run. Do not move a 6.2 server onto 7.4 just to pick a version number.
- Keep Redis on 127.0.0.1. Authentication does not make a public port acceptable.
Fix
redis-server --version
Sources
Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON