Remote code execution via exposed Lua package interface
Published Feb 18, 2022 · Updated Oct 21, 2025
Lua sandbox escape in Debian and Ubuntu Redis packages allows remote attackers to execute arbitrary code through crafted Lua scripts. Dynamically linked Lua leaves the package interface populated, letting Redis EVAL load liblua and recover os.execute despite the sandbox. Reachability requires access to the network service and Lua scripting; successful exploitation runs shell commands with the Redis service account.
Summary
What happened
Lua sandbox escape in Debian and Ubuntu Redis packages allows remote attackers to execute arbitrary code through crafted Lua scripts. Dynamically linked Lua leaves the package interface populated, letting Redis EVAL load liblua and recover os.execute despite the sandbox. Reachability requires access to the network service and Lua scripting; successful exploitation runs shell commands with the Redis service account.
The record
- CVE
- CVE-2022-0543
- Published
- Feb 18, 2022
- Updated
- Oct 21, 2025
- Vendor
- Redis
- Product
- Redis
- Classifications
- CWE-862, T1059.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 18, 2022CVE publishedPublication date reported by the CVE source.
- Mar 28, 2022Exploitation reportedCISA Known Exploited Vulnerabilities listing
- Oct 21, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=n/a
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- Metasploit Redis Lua Sandbox Escape modulefunctional · validated
- Original Redis Lua sandbox escape proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
- CISA Known Exploited Vulnerabilities listingknown exploited catalog
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo