CVE-2022-24736
MEDIUM5.5EPSS 1.7%A Malformed Lua script can crash Redis
Published: 4/27/2022Modified: 4/28/2026
Description
Redis is an in-memory database that persists on disk. Prior to versions 6.2.7 and 7.0.0, an attacker attempting to load a specially crafted Lua script can cause NULL pointer dereference which will result with a crash of the redis-server process. The problem is fixed in Redis versions 7.0.0 and 6.2.7. An additional workaround to mitigate this problem without patching the redis-server executable, if Lua scripting is not being used, is to block access to `SCRIPT LOAD` and `EVAL` commands using ACL rules.
Affected packages (5)
- Alpine/redisfrom 0, < 6.2.7-r0
- Bitnami/keydbfrom 0, < 6.2.7
- Bitnami/redisfrom 0, < 6.2.7
- Bitnami/valkeyfrom 0, < 6.2.7
- Debian/redisfrom 0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
References (13)
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2022-24736
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-24736
- WEBhttps://github.com/redis/redis/pull/10651
- WEBhttps://github.com/redis/redis/releases/tag/6.2.7
- WEBhttps://github.com/redis/redis/releases/tag/7.0.0
- WEBhttps://github.com/redis/redis/security/advisories/GHSA-3qpw-7686-5984
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J4ZK3675DGHVVDOFLJN7WX6YYH27GPMK/
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VPYKSG7LKUJGVM2P72EHXKVRVRWHLORX/
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WSTPUCAPBRHIFPSCOURR4OYX4E2OISAF/
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2022-24736
- WEBhttps://security.gentoo.org/glsa/202209-17
- WEBhttps://security.netapp.com/advisory/ntap-20220715-0003/
- WEBhttps://www.oracle.com/security-alerts/cpujul2022.html