Hexret
CVE-2022-0543critical 10.0PoC available

Redis Lua sandbox escape via a reachable library loader

A distro build dynamically links the full Lua library and hardens the sandbox by nil-ing require and module, but leaves the package loader reachable, so a script loads a native library and runs shell commands.

Product
Redis (Debian and Ubuntu packaging)
Vendor
Redis (Debian / Ubuntu package build; upstream Redis not affected)
Affected
Debian-packaged Redis on Debian 9/10/11 and Ubuntu 20.04/21.10, before the DSA-5081 / USN-5316-1 patched packages. Upstream Redis (static Lua) is not affected.
Fixed in
Debian DSA-5081 (buster 5:5.0.14-1+deb10u2, bullseye 5:6.0.16-1+deb11u2, sid 5:6.0.16-2); Ubuntu USN-5316-1
Weakness
CWE-862
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Published
18 Feb 2022

Practice this CVE, free

Classified as

References

Related CVEs