8.8

CVE-2021-32626: Lua scripts can overflow the heap-based Lua stack in Redis

Modified
AliasesALPINE-CVE-2021-32626UBUNTU-CVE-2021-32626DEBIAN-CVE-2021-32626
Published 04-10-2021Last modified 03-08-2024

Vulnerability summary

CVE-2021-32626 is a high (CVSS 8.8) Heap-based Buffer Overflow vulnerability in debian debian_linux. EPSS estimates a 15.60% chance of exploitation in the next 30 days, higher than 96.9% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
15.60%
0%100%
Medium · -0.60 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 14 · Related 4

Timeline

  1. 04-10-2021
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

15.60%

Chance of exploitation in the next 30 days

Percentile

97%

Versus all other CVEs

30-day change

Decrease -0.60 pp

From 16.21% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Debian2 products
Netapp2 products
Alpine1 product
  • redis≥ 2.6, < 6.0.16-r0 | ≥ 2.6, < 6.2.6-r0 | ≥ 2.6, < 5.0.14-r0 | ≥ 6.0.0, < 6.0.16-r0 | ≥ 6.2.0, < 6.2.6-r0
Fedoraproject1 product
Oracle1 product
Redis1 product
  • redis≥ 2.6.0, < 5.0.14 | ≥ 2.6, < 5.0.14 | ≥ 6.0.0, < 6.0.16 | ≥ 6.2.0, < 6.2.6
Ubuntu1 product
  • redis< 2:2.8.4-2ubuntu0.2+esm2 | < 2:3.0.6-1ubuntu0.4+esm1 | < 5:4.0.9-1ubuntu0.2+esm3 | < 5:5.0.7-2ubuntu0.1+esm1

7 vendors · 9 products

References

16 links
Show all 16 references