Lua sandbox escape in Debian-packaged Redis
CVE-2022-0543 is a Lua sandbox escape caused by a packaging issue in some Debian and Ubuntu Redis packages. Dynamic linking of Redis's Lua interpreter against the system Lua library leaves the package variable accessible inside the scripting sandbox. An attacker able to submit Lua scripts through Redis EVAL can access Lua library functionality, including io.popen, to execute arbitrary operating-system commands outside the sandbox.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation enables remote arbitrary command execution on the Redis host, bypassing the isolation intended for Lua scripts. Exploitation has been associated with P2PInfect initial access and malware deployment. Persistence, botnet enrollment, and additional payload delivery are post-compromise outcomes rather than inherent effects of the sandbox escape.
If you can’t patch tonight, do this now.
Remove direct internet exposure and restrict Redis access to trusted clients. In Kubernetes deployments, enforce network policies to limit access between workloads. Use runtime monitoring to detect unexpected shell or command-execution processes launched by Redis and audit unauthorized outbound connections. Restrict unused replication features as additional hardening against separate Redis compromise techniques; this does not directly fix the Lua sandbox escape.
Patch, then assume compromise.
Install distribution-provided Redis package updates that correct the Lua sandbox packaging issue. Exact fixed Debian and Ubuntu package versions are not available here. Updating only the upstream Redis version should not be assumed to correct a distribution-specific packaging defect.
9 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.