Heap-based buffer overflow in Redis - CVE-2021-32626

 

Heap-based buffer overflow in Redis - CVE-2021-32626

Published: October 4, 2021


Vulnerability identifier: #VU57036
CSH Severity: Medium
CVSS v4: 7.5 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-32626
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error when processing specially crafted Lua scripts. A remote attacker can pass specially crafted data to the application, trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Redis
Gentoo Linux
Anolis OS
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux Server - AUS
SUSE Linux Enterprise Module for Server Applications
openEuler
Fedora
Red Hat Software Collections
Red Hat Advanced Cluster Management for Kubernetes
IBM Cloud Pak for Multicloud Management Monitoring
Red Hat OpenStack
Oracle Communications Operations Monitor
Robotic Process Automation for Cloud Pak
redis (Debian package)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
redis (Red Hat package)
redis-doc
redis-devel
redis
rh-redis5-redis (Red Hat package)
redis5-doc
redis5
redis5-debuginfo
redis5-debugsource
redis5-devel
redis6-doc
redis6
redis6-devel
redis6-debugsource
redis6-debuginfo
redis-debuginfo
redis-debugsource
dev-db/redis
IBM DataPower Gateway

How to mitigate CVE-2021-32626

Install updates from vendor's website.

Redis - addressed in versions 5.0.14, 6.0.16, 6.2.6
Red Hat Advanced Cluster Management for Kubernetes - addressed in versions 2.1.12, 2.3.3
redis (Debian package) - addressed in versions 5:5.0.14-1+deb10u1, 5:6.0.16-1+deb11u1
IBM DataPower Gateway - addressed in versions 10.0.1.6, 10.0.4.0, 2018.4.1.19
redis (Red Hat package) - update to 3.2.8-5.el7ost
redis-doc - addressed in versions 5.0.3-5, 5.0.3-5.0.1, 6.0.9-5
redis-devel - addressed in versions 5.0.3-5, 5.0.3-5.0.1, 6.0.9-5
redis - addressed in versions 5.0.3-5, 5.0.3-5.0.1, 6.0.9-5
rh-redis5-redis (Red Hat package) - update to 5.0.5-3.el7
redis5-doc - update to 5.0.14-2
redis5 - update to 5.0.14-2
redis5-debuginfo - update to 5.0.14-2
redis5-debugsource - update to 5.0.14-2
redis5-devel - update to 5.0.14-2
redis6-doc - update to 6.0.11-4
redis6 - update to 6.0.11-4
redis6-devel - update to 6.0.11-4
redis6-debugsource - update to 6.0.11-4
redis6-debuginfo - update to 6.0.11-4
redis - update to 6.0.14-6.8.1
redis-debuginfo - update to 6.0.14-6.8.1
redis-debugsource - update to 6.0.14-6.8.1
redis - addressed in versions 6.0.16-1.fc33, 6.2.6-1.fc34, 6.2.6-1.fc35
dev-db/redis - update to 7.0.5
redis - update to 7.2.7-1
redis-debuginfo - update to 7.2.7-1
redis-debugsource - update to 7.2.7-1
Red Hat OpenStack - addressed in versions 10.0, 13.0
Robotic Process Automation for Cloud Pak - addressed in versions 21.0.7.6, 23.0.7

External References

Related Security Bulletins