First published: Mon Oct 04 2021(Updated: )
Redis is an open source, in-memory database that persists on disk. An integer overflow bug affecting all versions of Redis can be exploited to corrupt the heap and potentially be used to leak arbitrary contents of the heap or trigger remote code execution. The vulnerability involves changing the default set-max-intset-entries configuration parameter to a very large value and constructing specially crafted commands to manipulate sets. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14. An additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from modifying the set-max-intset-entries 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 |
Redis Redis | >=5.0.0<5.0.14 | |
Redis Redis | >=6.0.0<6.0.16 | |
Redis Redis | >=6.2.0<6.2.6 | |
Fedoraproject Fedora | =33 | |
Fedoraproject Fedora | =34 | |
Fedoraproject Fedora | =35 | |
Debian Debian Linux | =10.0 | |
Debian Debian Linux | =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 | |
redhat/redis | <6.2.6 | 6.2.6 |
redhat/redis | <6.0.16 | 6.0.16 |
redhat/redis | <5.0.14 | 5.0.14 |
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 |
The flaw can be mitigated by disallowing usage of the CONFIG SET command via ACL configuration. This will prevent clients from setting the `set-max-intset-entries` 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-32687 is an integer overflow issue found in Redis, an open-source in-memory database, that can potentially lead to heap corruption and remote code execution.
CVE-2021-32687 affects all versions of Redis.
The severity of CVE-2021-32687 is high, with a CVSS score of 7.5.
CVE-2021-32687 can be exploited by changing the default set-max-intset-entries configuration.
To fix CVE-2021-32687, it is recommended to update Redis to version 6.2.6 or apply the appropriate patches provided by the vendor.