CVE-2021-32626Lua scripts can overflow the heap-based Lua stack in Redis
- 7.5HighCVSS base score
- 15.6%Exploitation in 30 daysEPSS · top 3.1% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 5 months later
· 5 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 15.6% · top 3.1% of all CVEs (17 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
References
References10
- https://github.com/redis/redis/security/advisories/GHSA-p486-xggp-782c (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/redis/redis/commit/666ed7facf4524bf6d19b11b20faa2cf93fdf591 (opens in a new tab)x_refsource_MISCx_transferred
- FEDORA-2021-8913c7900c (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2021-61c487f241 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- [druid-commits] 20211025 [GitHub] [druid] jihoonson opened a new pull request #11844: Bump netty4 to 4.1.68; suppress CVE-2021-37136 and CVE-2021-37137 for netty3 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- FEDORA-2021-aa94492a09 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- DSA-5001 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- https://www.oracle.com/security-alerts/cpuapr2022.html (opens in a new tab)x_refsource_MISCx_transferred
- https://security.netapp.com/advisory/ntap-20211104-0003/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- GLSA-202209-17 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-19457 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-32626)Record last updated .