CVE
CVE-2022-24834
CNA description
Redis is an in-memory database that persists on disk. A specially crafted Lua script executing in Redis can trigger a heap overflow in the cjson library, and result with heap corruption and potentially remote code execution. The problem exists in all versions of Redis with Lua scripting support, starting from 2.6, and affects only authenticated and authorized users. The problem is fixed in versions 7.0.12, 6.2.13, and 6.0.20.
Affected versions
- ≥ 7.0.0, < 7.0.12Fixed in 7.0.12
- ≥ 6.2.0, < 6.2.13Fixed in 6.2.13
- ≥ 2.6.0, < 6.0.20Fixed in 6.0.20
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- github.com/redis/redis/security/advisories/GHSA-p8x2-9v9q-c838 · Vendor Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.