Impact
Extracting key names from a command and a list of arguments may, in some cases, trigger a heap overflow and result in reading random heap memory, heap corruption and potentially remote code execution. Several scenarios that may lead to this result:
- Authenticated users executing a specially crafted
COMMAND GETKEYS
or COMMAND GETKEYSANDFLAGS
.
- Authenticated users who were set with ACL rules that match key names, executing a specially crafted command that refers to a variadic list of key names.
The problem exists in Redis 7.0 or newer.
Patches
The problem is fixed in Redis 7.0.12.
Credit
The problem was found by Lior Lahav.
For more information
If you have any questions or comments about this advisory:
Impact
Extracting key names from a command and a list of arguments may, in some cases, trigger a heap overflow and result in reading random heap memory, heap corruption and potentially remote code execution. Several scenarios that may lead to this result:
COMMAND GETKEYS
orCOMMAND GETKEYSANDFLAGS
.The problem exists in Redis 7.0 or newer.
Patches
The problem is fixed in Redis 7.0.12.
Credit
The problem was found by Lior Lahav.
For more information
If you have any questions or comments about this advisory: