CVE-2022-0543: Redis Lua Sandbox Escape in Debian and Ubuntu Packages
- Vendor
- Redis
CVE-2022-0543 is a Lua sandbox escape vulnerability caused by a packaging issue in certain Debian Redis packages and derived distributions, including Ubuntu. Affected packages dynamically link Redis's Lua interpreter against the system Lua library and leave the Lua package variable accessible within the scripting sandbox. An attacker able to execute Lua scripts through Redis EVAL can load otherwise restricted Lua functionality, including io.popen, and execute arbitrary operating-system commands with the privileges of the Redis process. The flaw is specific to affected distribution packaging rather than all Redis installations.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the confidentiality, integrity, and availability of resources accessible to the Redis service account. Attackers can execute commands, access or modify data, deploy malware, and disrupt services. P2PInfect has exploited the vulnerability for initial access and enrollment of compromised systems into its peer-to-peer botnet. Host-level impact depends on the Redis process's privileges and any container or operating-system isolation; exploitation does not inherently grant root privileges or escape a container.
Mitigation
If you can’t patch tonight, do this now.
Remove direct internet exposure and restrict Redis connectivity to trusted clients using firewall rules and, where applicable, Kubernetes network policies. Enforce authentication and least-privilege command access, restricting Lua scripting commands such as EVAL for clients that do not require them. Run Redis with minimal operating-system privileges and retain container isolation to limit impact. Monitor for Redis spawning shells or command-execution utilities and for unexpected outbound connections. These controls reduce exposure but do not replace installing corrected packages.
Remediation
Patch, then assume compromise.
Install the distribution-maintained Redis security update that fixes CVE-2022-0543, including updates to affected container images, and restart or redeploy Redis using the corrected packages. Verify the distribution package revision rather than relying only on the upstream Redis version, because the vulnerability originates in packaging. Specific fixed package versions are not available in the supplied vulnerability details.
Exploits
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.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2022-0543 exploited in the wild?
- Yes. As of Nov 19, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Mar 28, 2022.
- Is there a public exploit for CVE-2022-0543?
- Yes. Mallory tracks 9 public exploits or proofs of concept for CVE-2022-0543, the earliest disclosed Feb 18, 2022.
- Is there a patch for CVE-2022-0543?
- Install the distribution-maintained Redis security update that fixes CVE-2022-0543, including updates to affected container images, and restart or redeploy Redis using the corrected packages. Verify the distribution package revision rather than relying only on the upstream Redis version, because the vulnerability originates in packaging.
- What products are affected by CVE-2022-0543?
- Redis.
- How severe is CVE-2022-0543?
- CVE-2022-0543 has a CVSS v3.1 score of 10.0 (Critical) and an EPSS score of 85.6% (100th percentile) as of Nov 19, 2026.
Recent activity
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.