Related Vulnerabilities: CVE-2021-29478  

An integer overflow bug in Redis 6.2 could be exploited to corrupt the heap and potentially result with remote code execution. The vulnerability involves changing the default set-max-intset-entries configuration value, creating a large set key that consists of integer values and using the COPY command to duplicate it. The integer overflow bug exists in all versions of Redis starting with 2.6, where it could result with a corrupted RDB or DUMP payload, but not exploited through COPY (which did not exist before 6.2). The issue is fixed in Redis version 6.2.3.

Severity Medium

Remote Yes

Type Arbitrary code execution

Description

An integer overflow bug in Redis 6.2 could be exploited to corrupt the heap and potentially result with remote code execution. The vulnerability involves changing the default set-max-intset-entries configuration value, creating a large set key that consists of integer values and using the COPY command to duplicate it. The integer overflow bug exists in all versions of Redis starting with 2.6, where it could result with a corrupted RDB or DUMP payload, but not exploited through COPY (which did not exist before 6.2). The issue is fixed in Redis version 6.2.3.

AVG-1909 redis 6.2.2-1 6.2.3-1 Medium Fixed

https://groups.google.com/g/redis-db/c/6GSWzTW0PR8/m/8FbdIEEoBAAJ
https://github.com/redis/redis/commit/046352069396fe3be0a50ca505cb65af15c0d995