7.5
CWE
190 680 125 787
Advisory Published
CVE Published
Updated

CVE-2021-32627: Integer overflow issue with Streams in Redis

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 SoftwareAffected VersionHow to fix
redhat/redis<6.2.6
6.2.6
redhat/redis<6.0.16
6.0.16
redhat/redis<5.0.14
5.0.14
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
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

Remedy

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.

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is CVE-2021-32627?

    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.

  • How does CVE-2021-32627 affect Redis?

    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.

  • How severe is CVE-2021-32627?

    CVE-2021-32627 has a severity score of 7.5 (High).

  • Which versions of Redis are affected by CVE-2021-32627?

    Redis versions up to and including 6.2.6, 6.0.16, and 5.0.14 are affected by CVE-2021-32627.

  • How can CVE-2021-32627 be mitigated?

    To mitigate CVE-2021-32627, update Redis to version 6.2.7, 6.0.17, or 5.0.15, which contain the necessary fixes.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203