First published: Mon Oct 04 2021(Updated: )
Redis is an open source, in-memory database that persists on disk. In affected versions an integer overflow bug in Redis can be exploited to corrupt the heap and potentially result with remote code execution. The vulnerability involves changing the default proto-max-bulk-len and client-query-buffer-limit configuration parameters to very large values and constructing specially crafted very large stream elements. The problem is fixed in Redis 6.2.6, 6.0.16 and 5.0.14. For users unable to upgrade an additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from modifying the proto-max-bulk-len configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.
Credit: security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/redis | <0:3.2.8-5.el7 | 0:3.2.8-5.el7 |
redhat/rh-redis5-redis | <0:5.0.5-3.el7 | 0:5.0.5-3.el7 |
debian/redis | 5:5.0.14-1+deb10u2 5:5.0.14-1+deb10u5 5:6.0.16-1+deb11u2 5:7.0.11-1 5:7.0.14-1 | |
redhat/redis | <6.2.6 | 6.2.6 |
redhat/redis | <6.0.16 | 6.0.16 |
redhat/redis | <5.0.14 | 5.0.14 |
Redis | >=5.0.0<5.0.14 | |
Redis | >=6.0.0<6.0.16 | |
Redis | >=6.2.0<6.2.6 | |
Fedora | =33 | |
Fedora | =34 | |
Fedora | =35 | |
Debian | =10.0 | |
Debian | =11.0 | |
netapp management services for element software | ||
NetApp Management Services for NetApp HCI | ||
Oracle Communications Operations Monitor | =4.3 | |
Oracle Communications Operations Monitor | =4.4 | |
Oracle Communications Operations Monitor | =5.0 |
The flaw can be mitigated by disallowing usage of the CONFIG SET command via ACL configuration. This will prevent clients from setting the `proto-max-bulk-len` configuration parameter. Please see https://redis.io/topics/acl for more information on how to do this.
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
CVE-2021-32627 is an integer overflow issue found in Redis that can be exploited to corrupt the heap and potentially result in remote code execution.
CVE-2021-32627 involves changing the default proto-max-bulk-len and client-query-buffer-... settings in Redis, which can lead to an integer overflow vulnerability.
CVE-2021-32627 has a severity score of 7.5 (High).
Redis versions up to and including 6.2.6, 6.0.16, and 5.0.14 are affected by CVE-2021-32627.
To mitigate CVE-2021-32627, update Redis to version 6.2.7, 6.0.17, or 5.0.15, which contain the necessary fixes.