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
Classified as
References
Related CVEs
- CVE-2026-61511critical 9.82026
vBulletin runMaths pre-auth eval injection RCE
An unauthenticated template value reaches a character-filtered PHP expression evaluator whose permitted operators can still synthesize a callable function expression before eval executes it.
- CVE-2025-55182critical 10.02025
React2Shell unsafe Flight reference resolution
React Server Components followed attacker-selected object paths through inherited properties while decoding Flight payloads, enabling pre-authentication remote code execution.
- CVE-2025-49844critical 9.92025
RediShell Lua parser use-after-free
Redis failed to root a Lua parser string across garbage collection, allowing a crafted authenticated script to reclaim a still-referenced object and potentially execute code.
- CVE-2025-41238critical 9.32025
VMware PVSCSI fixed-capacity scatter/gather overflow
The PVSCSI emulator reallocates its internal scatter/gather array to the same 0x4000-byte size for every entry after 512, then writes guest-controlled 16-byte elements beyond the 1024-entry heap capacity.