Redis is an in-memory database that persists on disk. Authenticated users issuing specially crafted `SRANDMEMBER`, `ZRANDMEMBER`, and `HRANDFIELD` commands can trigger an integer overflow, resulting in a runtime assertion and termination of the Redis server process. This problem affects all Redis versions. Patches were released in Redis version(s) 6.0.18, 6.2.11 and 7.0.9.
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 occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Link | Tags |
---|---|
https://github.com/redis/redis/security/advisories/GHSA-x2r7-j9vw-3w83 | vendor advisory |
https://github.com/redis/redis/commit/2a2a582e7cd99ba3b531336b8bd41df2b566e619 | patch |
https://github.com/redis/redis/releases/tag/6.0.18 | release notes |
https://github.com/redis/redis/releases/tag/6.2.11 | release notes |
https://github.com/redis/redis/releases/tag/7.0.9 | release notes |