
PoC for CVE-2022-0543 – Redis Remote Code Execution (RCE)
CVE-2022-0543 is a critical security vulnerability affecting Redis on Debian-based Linux distributions (including Debian and Ubuntu). It is caused by a packaging flaw that leads to a Lua sandbox escape, which can result in remote code execution (RCE) on the affected system.
Upstream Redis itself is not vulnerable — the issue is specific to how some Linux distributions packaged Redis and Lua.
Redis supports Lua scripting for server-side execution of scripts. In affected Debian/Ubuntu packages, Lua is dynamically linked in a way that breaks the intended sandboxing model.
This misconfiguration allows an attacker to:
The root cause is a packaging difference:
If exploited successfully, an attacker can:
requirepass)Look for:
CVE-2022-0543 is a critical Redis vulnerability caused by Debian packaging issues, enabling a Lua sandbox escape that can lead to full remote code execution. It is actively tracked in vulnerability databases and should be patched immediately on affected systems.
This document includes high level technical information about CVE-2022-0543 for educational and defensive security purposes.
Public proof-of-concept (PoC) exploits for this vulnerability exist and have been circulated within the security research and penetration testing community. These PoC implementations demonstrate how the Lua sandbox escape can be achieved under specific conditions in vulnerable environments.
However, the inclusion or discussion of such exploit material in this repository is strictly for understanding attack mechanics, improving defensive security posture, and ensuring proper patching and mitigation. It is not intended to facilitate unauthorized access, exploitation of systems, or malicious activity of any kind.
Users are strongly advised to only test vulnerabilities in controlled, authorized lab environments and to ensure all systems are properly patched and secured.