ZeroHour

CVE-2022-0543

KEV PoC mass

Lua Sandbox Escape in Debian-packaged Redis Enables Unauthenticated RCE

CISA: Debian-specific Redis Server Lua Sandbox Escape Vulnerability

CVSS 3.1
10.0 critical
EPSS
99%p100
Published
()
KEV added
AI analysis

CVE-2022-0543 is a Debian-specific Lua sandbox escape in the Redis key-value database, caused by a packaging issue in how the Debian-distributed redis-server build ships its embedded Lua interpreter (tracked as CWE-862). A remote, unauthenticated attacker can send a crafted Lua script through Redis' scripting interface (EVAL) to escape the Lua sandbox that normally limits scripts to safe operations. Successful exploitation yields remote code execution on the server in the context of the Redis process, giving the attacker control over stored data and the ability to run arbitrary system commands. Only Redis servers installed from Debian's (and derivative distributions') packages are affected; upstream Redis builds are not impacted. The flaw is actively exploited: CISA added it to the Known Exploited Vulnerabilities catalog on 2022-03-28, EPSS puts the 30-day exploitation probability at 99.4% (100th percentile), and botnet/worm activity against exposed Redis servers has been widely reported.

What to do: Apply the updated redis-server packages published through Debian security updates (and equivalent updates in derivative distributions) per vendor instructions, restarting the Redis service after patching. As interim mitigation, restrict Redis exposure by binding to trusted interfaces only, enabling authentication, and firewalling port 6379 from untrusted networks. Check affected hosts for signs of compromise, such as unexpected Lua EVAL activity, unfamiliar child processes, or connections consistent with botnet/worm traffic.

Affected
Debian (redis package; derived distributions affected via packaging) Redis persistent key-value database (Debian-specific builds)
Estimated exposure
masson the order of 100,000+ internet-exposed Redis servers, with Debian/Ubuntu-packaged installs a significant and plausibly large subset — Public internet scans (e.g., Shodan/Censys) consistently show hundreds of thousands of Redis instances listening on port 6379, and Redis is a default package on very widely deployed Debian-derived server distributions, so the vulnerable…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

It was discovered, that redis, a persistent key-value database, due to a packaging issue, is prone to a (Debian-specific) Lua sandbox escape, which could result in remote code execution.

CISA Known Exploited Vulnerability
Affected
Redis Debian-specific Redis Servers
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Unknown
Vendors
redis
Products
redis
Weakness
CWE-862
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

In the news