Redis is an open source, in-memory database that persists on disk. The redis-cli command line tool and redis-sentinel service may be vulnerable to integer overflow when parsing specially crafted large multi-bulk network replies. This is a result of a vulnerability in the underlying hiredis library which does not perform an overflow check before calling the calloc() heap allocation function. This issue only impacts systems with heap allocators that do not perform their own overflow checks. Most modern systems do and are therefore not likely to be affected. Furthermore, by default redis-sentinel uses the jemalloc allocator which is also not vulnerable. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14.
The product performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Redis | Redis | 5.0.0 (including) | 5.0.14 (excluding) |
Redis | Redis | 6.0.0 (including) | 6.0.16 (excluding) |
Redis | Redis | 6.2.0 (including) | 6.2.6 (excluding) |
Discque | Ubuntu | trusty | * |
Discque | Ubuntu | xenial | * |
Hiredis | Ubuntu | trusty | * |
Hiredis | Ubuntu | xenial | * |
Nginx | Ubuntu | trusty | * |
Nginx | Ubuntu | xenial | * |
Python-hiredis | Ubuntu | trusty | * |
Python-hiredis | Ubuntu | xenial | * |
Redis | Ubuntu | trusty | * |
Redis | Ubuntu | upstream | * |
Redis | Ubuntu | xenial | * |
Rspamd | Ubuntu | trusty | * |
Rspamd | Ubuntu | xenial | * |
Webdis | Ubuntu | trusty | * |
Webdis | Ubuntu | xenial | * |