PortGate

Advisories · Databases

CVE-2022-0543 Critical CVSS 10.0 Actively exploited

Debian and Ubuntu Redis Lua sandbox escape

Disclosed 2022 · Last reviewed 2 Dec 2026

The Debian packaging of Redis let a client who could run Lua escape the sandbox and run commands as the redis user.

What happened

A dynamic Lua library was left reachable from the Redis EVAL sandbox, so package.loadlib was available.

Affected and patched versions

Affected
Redis packages on Debian and Ubuntu that exposed the Lua library outside the sandbox. Upstream Redis builds were not the vulnerable packaging.
Patched
The Debian and Ubuntu redis updates that name CVE-2022-0543.

How to check your server

Check

redis-server --version

How to fix and harden

  1. Run redis-server --version and check the package changelog for CVE-2022-0543.
  2. Upgrade the distro redis package. Binding to 127.0.0.1 limits who can send EVAL, which is the other half of the fix.
  3. Do not leave Redis on 0.0.0.0 without authentication.

Fix

redis-server --version

Sources

Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON