CVE-2022-0543 is a Debian-specific remote code execution vulnerability in Redis caused by a packaging error that breaks the intended isolation of the embedded Lua interpreter. In affected Debian and derivative builds such as Ubuntu, Redis was packaged so that the Lua interpreter was dynamically linked against the system Lua library, which exposed unsafe functionality that should not have been reachable inside Redis's sandboxed scripting environment. As a result, an attacker able to execute a Lua script through Redis, such as via the EVAL command, can escape the Lua sandbox and invoke operating-system command execution primitives including io.popen. This converts Redis scripting access into arbitrary command execution on the host running Redis.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
6 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (2 hidden).
Repository contains a single Python exploit script and a README. The Python file is the main entry point and implements both detection and exploitation for CVE-2022-0543, a Redis Lua sandbox escape affecting Debian/Ubuntu-packaged Redis. The script can expand single hosts or CIDR ranges, load targets from a file, scan them concurrently, and identify vulnerable Redis instances by sending a Lua EVAL probe that checks whether package.loadlib is exposed inside the Lua environment. If exploitation parameters are provided, it starts a local TCP listener, generates a Lua payload that loads the io library from a supplied shared library path, and executes a bash reverse shell using io.popen and /dev/tcp redirection. It then waits for the callback and provides an interactive shell session. The exploit is operational rather than just a PoC because it includes a working reverse-shell payload, listener management, and interactive post-exploitation handling. No external C2 infrastructure or hardcoded victim IPs are present; endpoints are operator-supplied target Redis hosts and attacker callback host/port.
Small standalone Python exploit repository for CVE-2022-0543 targeting Redis Lua sandbox escape. The repository contains only three files: an MIT LICENSE, a short README describing features, and the main exploit script exploit.py. The Python script uses the redis client library to connect to a target Redis server, optionally authenticate, and invoke EVAL with a crafted Lua payload. That payload calls package.loadlib on /usr/lib/x86_64-linux-gnu/liblua5.1.so.0, obtains the io library, and uses io.popen to execute arbitrary operating system commands on the Redis host. The exploit first performs a lightweight validation by running whoami and checking for output, then supports three operational modes: check-only (-c), single command execution (-x), and an interactive command loop. It also includes an automatic reverse shell mode using bash over /dev/tcp with attacker-supplied callback IP and port (-I/-P). The exploit is operational rather than a mere PoC because it includes working post-exploitation options, but it is not framework-based or heavily modularized. Fingerprintable indicators include the target Redis service on TCP 6379, the hardcoded Lua library path used for sandbox escape, and the reverse-shell callback mechanism.
This repository contains a single Metasploit module, 'redis_debian_sandbox_escape.rb', which exploits CVE-2022-0543—a Lua sandbox escape vulnerability in Debian/Ubuntu Redis packages. The exploit leverages insufficiently sanitized Lua environments to load arbitrary libraries and execute commands as the 'redis' user. The module supports both command execution and payload delivery (reverse shell or Meterpreter) on x86_64 Linux systems running vulnerable Redis versions (4.x to <6.1). It can authenticate to Redis if required and uses the default Redis port (6379). The exploit is operational, providing remote code execution, and is best used with stageless payloads due to systemd-imposed memory restrictions. The repository is structured as a single Ruby file within the Metasploit framework, with clear references to the CVE, affected products, and exploitation methodology.
This repository contains a Python exploit script (CVE-2022-0543.py) targeting Redis servers vulnerable to CVE-2022-0543, a Lua sandbox escape vulnerability. The exploit connects to a specified Redis server (IP, port, and optional password), then allows the user to execute arbitrary shell commands on the server by injecting a malicious Lua script that loads the system's Lua IO library and uses it to run shell commands. The output of the command is returned and displayed to the user. The exploit is interactive, prompting the user for connection details and commands to execute. The README provides a brief description and usage instructions. The main fingerprintable endpoint is the file path to the Lua library used for the exploit. The attack vector is network-based, requiring access to the Redis server. The repository is straightforward, with one exploit script and a README.
This repository contains a fully featured exploit for CVE-2022-0543, a critical Lua sandbox escape vulnerability in Redis. The main file, 'exploit.py', is a Python script that connects to a target Redis instance (defaulting to 127.0.0.1:6379) and leverages the vulnerability to execute arbitrary shell commands on the server. The exploit supports three main modes: (1) automatic reverse shell to an attacker-controlled host and port, (2) execution of a single specified command, and (3) an interactive shell for running arbitrary commands. The exploit works by injecting a Lua script that loads the system's Lua shared library and uses it to break out of the sandbox, allowing shell command execution. The script requires the target Redis server to be accessible and, if authentication is enabled, valid credentials must be provided. The repository also includes a README with usage instructions and a LICENSE file. No hardcoded external endpoints are present, but the exploit targets the Redis TCP service and the system's Lua library path.
This repository contains a Go-based exploit for CVE-2022-0543, a Redis Lua sandbox escape vulnerability. The main file, CVE-2022-0543.go, implements an interactive command shell that connects to a Redis server (default 127.0.0.1:6379, configurable via command-line flags), authenticates if necessary, and leverages a Lua payload to escape the sandbox and execute arbitrary system commands on the server. The exploit uses the Lua 'package.loadlib' function to load the system's Lua IO library and then runs attacker-supplied commands via 'io.popen', returning the output. The README provides usage instructions and a disclaimer. The exploit targets vulnerable Redis instances accessible over the network and requires knowledge of any authentication credentials if set. The repository is structured simply, with one Go exploit file and a README.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A critical Lua sandbox escape vulnerability in Redis that can enable code execution on vulnerable Redis servers.
A critical Redis Lua sandbox escape vulnerability that allows code execution on vulnerable Redis instances and is being leveraged by the P2PInfect botnet in attacks against exposed Redis services in Kubernetes/cloud environments.
A Redis Lua sandbox escape remote code execution vulnerability described as a confirmed exploitation vector used by P2Pinfect.
A Redis Lua sandbox escape remote code execution vulnerability described as a confirmed exploitation vector used by P2Pinfect.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.