cve.bz

CVE-2021-32626 Out-of-bounds Write

8.8 highEPSS 16%Fix available

High (8.8). EPSS 16% estimated probability of exploitation activity in the next 30 days.

On this page
Redis is an open source, in-memory database that persists on disk. In affected versions specially crafted Lua scripts executing in Redis can cause the heap-based Lua stack to be overflowed, due to incomplete checks for this condition. This can result with heap corruption and potentially remote code execution. This problem exists in all versions of Redis with Lua scripting support, starting from 2.6. The problem is fixed in versions 6.2.6, 6.0.16 and 5.0.14. For users unable to update an additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
16% (unchanged from 16% a week ago; 16% 30 days ago) estimated probability of exploitation activity in the next 30 days; 97th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-787 Out-of-bounds Write
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-32626 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-32626?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-32626?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-32626 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redis:redisfrom 2.6 before 5.0.14
redis:redisfrom 6.0.0 before 6.0.16
redis:redisfrom 6.2.0 before 6.2.6
fedoraproject:fedora33
fedoraproject:fedora34
fedoraproject:fedora35
debian:debian_linux10.0
debian:debian_linux11.0
oracle:communications_operations_monitor4.3
oracle:communications_operations_monitor4.4
oracle:communications_operations_monitor5.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9redis3:3.2.6-3+deb9u8DLA-2810-1
Debian10redis5:5.0.14-1+deb10u1DSA-5001-1
Debian11redis5:6.0.16-1+deb11u1DSA-5001-1
Debian12, 13, 14redis5:6.0.16-1DEBIAN-CVE-2021-32626
UbuntuPro:14.04:LTSredis2:2.8.4-2ubuntu0.2+esm2UBUNTU-CVE-2021-32626 USN-5221-1
UbuntuPro:16.04:LTSredis2:3.0.6-1ubuntu0.4+esm1UBUNTU-CVE-2021-32626 USN-5221-1
UbuntuPro:18.04:LTSredis5:4.0.9-1ubuntu0.2+esm3UBUNTU-CVE-2021-32626 USN-5221-1
UbuntuPro:20.04:LTSredis5:5.0.7-2ubuntu0.1+esm1UBUNTU-CVE-2021-32626 USN-5221-1
Red Hatenterprise_linux:8::appstreamredis, redis-doc, redis-devel and 2 more0:5.0.3-5.module+el8.4.0+12927+b9845322RHSA-2021:3918
Red Hatenterprise_linux:8::appstreamredis, redis-doc, redis-devel and 2 more0:6.0.9-5.module+el8.4.0+12929+1bb0d2aaRHSA-2021:3945
Red Hatopenstack:10::el7redis, redis-debuginfo0:3.2.8-5.el7ostRHSA-2021:3971
Red Hatopenstack:13::el7redis, redis-debuginfo0:3.2.8-5.el7ostRHSA-2021:3980
Red Hatrhel_eus:8.1::appstreamredis, redis-doc, redis-devel and 2 more0:5.0.3-5.module+el8.1.0+12925+6460abefRHSA-2021:3946
Red Hatrhel_eus:8.2::appstreamredis, redis-doc, redis-devel and 2 more0:5.0.3-5.module+el8.2.0+12926+485b5fc9RHSA-2021:3944
Red Hatrhel_software_collections:3::el7rh-redis5-redis, rh-redis5-redis-debuginfo0:5.0.5-3.el7RHSA-2021:3947
SUSELinux Enterprise Module for Server Applications 15 SP2, Linux Enterprise Module for Server Applications 15 SP3redis6.0.14-6.8.1SUSE-SU-2021:3772-1
openSUSELeap 15.3redis6.0.14-6.8.1openSUSE-SU-2021:3772-1
openSUSETumbleweedredis6.2.6-1.1openSUSE-SU-2024:11563-1
AlmaLinux8redis, redis-devel5.0.3-5.module_el8.5.0+66+fc19ec12ALSA-2021:3918
AlmaLinux8redis, redis-devel6.0.9-5.module_el8.5.0+67+a3c431d9ALSA-2021:3945
AlmaLinux8redis, redis-doc, redis-devel5.0.3-5.module_el8.4.0+2583+b9845322ALSA-2021:3918
AlmaLinux8redis, redis-doc, redis-devel6.0.9-5.module_el8.4.0+2584+1bb0d2aaALSA-2021:3945
Rocky Linux8redis0:5.0.3-5.module+el8.4.0+659+cf535ef1RLSA-2021:3918
Rocky Linux8redis0:5.0.3-5.module+el8.5.0+657+2674830eRLSA-2021:3918
Rocky Linux8redis0:6.0.9-5.module+el8.4.0+660+a8447b97RLSA-2021:3945
Rocky Linux8redis0:6.0.9-5.module+el8.5.0+658+72172854RLSA-2021:3945
Alpinev3.11, v3.12redis5.0.14-r0ALPINE-CVE-2021-32626
Alpinev3.13redis6.0.16-r0ALPINE-CVE-2021-32626
Alpinev3.14, v3.15, v3.16 and 8 moreredis6.2.6-r0ALPINE-CVE-2021-32626
Azure Linux2redis6.2.6-1AZL-6844

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands. Please see https://redis.io/topics/acl for more information on how to do this.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8redis:5-8040020211011074037.522a0ee4Fixed 2021-10-19RHSA-2021:3918
Red Hat Enterprise Linux 8redis:6-8040020211011082941.522a0ee4Fixed 2021-10-20RHSA-2021:3945
Red Hat Enterprise Linux 8.1 Extended Update Supportredis:5-8010020211011065007.c27ad7f8Fixed 2021-10-20RHSA-2021:3946
Red Hat Enterprise Linux 8.2 Extended Update Supportredis:5-8020020211011071901.4cda2c84Fixed 2021-10-20RHSA-2021:3944
Red Hat OpenStack Platform 10.0 (Newton)redis-0:3.2.8-5.el7ostFixed 2021-10-25RHSA-2021:3971
Red Hat OpenStack Platform 13.0 - ELSredis-0:3.2.8-5.el7ostFixed 2021-10-25RHSA-2021:3980
Red Hat OpenStack Platform 13.0 (Queens) for RHEL 7.6 EUSredis-0:3.2.8-5.el7ostFixed 2021-10-25RHSA-2021:3980
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-redis5-redis-0:5.0.5-3.el7Fixed 2021-10-20RHSA-2021:3947
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-redis5-redis-0:5.0.5-3.el7Fixed 2021-10-20RHSA-2021:3947
Red Hat 3scale API Management Platform 2redisNot affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/redisgraph-tls-rhel8Affected
Red Hat Ansible Automation Platform 1.2redisNot affected
Red Hat Ansible Tower 3redisAffected
Red Hat Enterprise Linux 9redisNot affected
Red Hat Software Collectionsrh-redis6-redisNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-32626.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON