Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
redis redis
Exploitation
High exploitation probability; assess promptly
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Redis Labs Redis是美国Redis Labs公司的一套开源的使用ANSI C编写、支持网络、可基于内存亦可持久化的日志型、键值(Key-Value)存储数据库,并提供多种语言的API。 Redis 存在缓冲区错误漏洞,在Redis中执行特别制作的Lua脚本可能会导致基于堆的Lua堆栈溢出,这可能导致堆损坏,并可能导致远程代码执行。从2.6版本开始,所有支持Lua脚本的Redis版本都存在该漏洞。

CVSS 7.5 · High EPSS 16.21% · P97
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2021-32626

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Lua scripts can overflow the heap-based Lua stack in Redis
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
堆缓冲区溢出
Source: CVE Program / CVE List V5
Vulnerability Title
Redis Labs Redis 缓冲区错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Redis Labs Redis是美国Redis Labs公司的一套开源的使用ANSI C编写、支持网络、可基于内存亦可持久化的日志型、键值(Key-Value)存储数据库,并提供多种语言的API。 Redis 存在缓冲区错误漏洞,在Redis中执行特别制作的Lua脚本可能会导致基于堆的Lua堆栈溢出,这可能导致堆损坏,并可能导致远程代码执行。从2.6版本开始,所有支持Lua脚本的Redis版本都存在该漏洞。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
redis redis >= 6.2.0, < 6.2.6 -

II. Public POCs for CVE-2021-32626

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2021-32626

请登录查看更多情报信息。

Patches & Fixes for CVE-2021-32626 (1)

Vendor Advisories for CVE-2021-32626 (5)

Mailing List Discussions for CVE-2021-32626 (4)

Same Patch Batch · redis · 2021-10-04 · 9 CVEs total

CVE-2021-32765 8.8 HIGH Integer Overflow to Buffer Overflow in Hiredis
CVE-2021-32627 7.5 HIGH Integer overflow issue with Streams in Redis
CVE-2021-32628 7.5 HIGH Vulnerability in handling large ziplists
CVE-2021-32675 7.5 HIGH DoS vulnerability in Redis
CVE-2021-32687 7.5 HIGH Integer overflow issue with intsets in Redis
CVE-2021-32762 7.5 HIGH Integer overflow that can lead to heap overflow in redis-cli, redis-sentinel on some platf
CVE-2021-41099 7.5 HIGH Integer overflow issue with strings in Redis
CVE-2021-32672 5.3 MEDIUM Vulnerability in Lua Debugger in Redis

IV. Related Vulnerabilities

V. Comments for CVE-2021-32626

No comments yet


Leave a comment