CVE-2022-0543
About
It was discovered, that redis, a persistent key-value database, due to a packaging issue, is prone to a (Debian-specific) Lua sandbox escape, which could result in remote code execution.
Rainforest analyst review
Redis ships an embedded Lua interpreter meant to run inside a sandbox, so scripts sent to the server can't touch the underlying system. On Debian and Ubuntu, a packaging quirk left the Lua library incompletely sandboxed: the `package` module was reachable from within a script, and from there an attacker can load arbitrary native code and break out of the interpreter entirely. Any client that can reach the Redis port and run `EVAL` can turn a data-store command into remote code execution as the Redis user. No authentication is required on the many Redis instances left open by default.
The exposure is large because Redis is rarely internet-facing by intent yet frequently ends up that way, bound to all interfaces with no password behind a misconfigured firewall or container network. This bug became a staple of opportunistic botnet and cryptomining campaigns precisely because it is trivial to script against a huge population of unauthenticated instances. It only affects the distro-packaged builds, so the fix is to update the OS package rather than chase upstream Redis versions. Beyond patching, get Redis off the public internet, require authentication, and treat any previously exposed instance as potentially compromised.
References
- http://packetstormsecurity.com/files/166885/Redis-Lua-Sandbox-Escape.html
- https://bugs.debian.org/1005787
- https://lists.debian.org/debian-security-announce/2022/msg00048.html
- https://security.netapp.com/advisory/ntap-20220331-0004/
- https://www.debian.org/security/2022/dsa-5081
- https://www.ubercomp.com/posts/2022-01-20_redis_on_debian_rce
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-0543
Related CVEs
Frequently asked questions
What is CVE-2022-0543?
It was discovered, that redis, a persistent key-value database, due to a packaging issue, is prone to a (Debian-specific) Lua sandbox escape, which could result in remote code execution.
How severe is CVE-2022-0543?
CVE-2022-0543 carries a CVSS 3.1 base score of 10, rated critical. On the Rainforest Risk Index — which weighs the severity alongside how easy the flaw is to reach and how broad its impact is — it scores 100 out of 100, in the critical band.
How is CVE-2022-0543 exploited?
According to the CVSS vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H): attack vector Network, attack complexity Low, privileges required None, user interaction None. Impact on confidentiality High, integrity High and availability High.
Which products are affected by CVE-2022-0543?
Public advisories list the following as affected: debian linux, redis, ubuntu linux. Check the references on this page for the exact versions each vendor confirms.
How do I fix CVE-2022-0543?
Apply the fix the vendor published — the references on this page link to the primary advisories and patches. When patching can't happen right away, reduce the exposure of the affected component and watch it for exploitation attempts. Rainforest customers see this vulnerability correlated to their own assets and prioritized by real exposure, not by score alone.
Empower Your Security Strategy with Rainforest
Discover vulnerabilities early, prioritize critical threats, and protect what truly matters. Rainforest streamlines your security operations, saving you time and reducing costs, so you can focus on what drives your business forward.
