# CVE-2024-46981: Redis' Lua library commands may lead to remote code execution

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2025-01-06 · Modified: 2025-03-19
- Aliases: ALPINE-CVE-2024-46981, SUSE-SU-2025:0162-1, RHSA-2025:0398, RHSA-2025:0399, RHSA-2025:0400, RHSA-2025:0566, RHSA-2025:0640, RHSA-2025:0685, RHSA-2025:0689, UBUNTU-CVE-2024-46981, DEBIAN-CVE-2024-46981, DLA-4025-1, CGA-3f62-jq4v-7x93, CGA-4ffc-c6cr-v89m, CGA-52fw-3qmj-2v2g, CGA-7mhv-rqfj-g2q7, CGA-7v3c-pqr8-vvm8, CGA-87gf-rwmr-53jr, CGA-9354-xj95-wgw9, CGA-95fj-w67h-33m8, CGA-9wcq-h9r8-7hpv, CGA-c4vf-8m99-xp34, CGA-c89q-w5q5-f89g, CGA-f33q-gjfm-w8g4, CGA-ffr9-jmxx-2cj7, CGA-g3q6-3h5m-25hm, CGA-g7vq-vhx2-g86c, CGA-jf4p-h25q-w2jw, CGA-m79m-w6w5-hrvp, CGA-p28c-mm5x-rg59, CGA-p2j9-45px-mj94, CGA-p53r-mf99-577m, CGA-p643-pf46-4wh7, CGA-q7hr-w4mg-gxrh, CGA-q85j-8cpw-qp5j, CGA-w8q5-2h4h-8mmf, CGA-x33c-7xv5-ggj8, CGA-xfcc-9wjv-4hvf
- Record: https://cvemate.com/vulnerability/CVE-2024-46981 · JSON: https://cvemate.com/vulnerability/CVE-2024-46981/json

## Description

```text
Redis is an open source, in-memory database that persists on disk. An authenticated user may use a specially crafted Lua script to manipulate the garbage collector and potentially lead to remote code execution. The problem is fixed in 7.4.2, 7.2.7, and 6.2.17. An additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 8.182%, percentile 95.02%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (reference)

## Affected (first 20 of 39)

- alpine redict (Alpine Linux): \< 7.3.2-r0
- alpine redis (Alpine Linux): ≥ 6.2.0, \< 7.2.7-r0 \| ≥ 6.2.0, \< 6.2.18-r0 \| ≥ 6.2.0, \< 7.0.15-r2 \| ≥ 7.2.0, \< 7.2.7-r0
- alpine valkey (Alpine Linux): \< 7.2.8-r0
- chainguard py3-redis (Chainguard): All versions (No fix recorded)
- chainguard py3.10-redis (Chainguard): All versions (No fix recorded)
- chainguard py3.11-redis (Chainguard): All versions (No fix recorded)
- chainguard py3.12-redis (Chainguard): All versions (No fix recorded)
- chainguard py3.13-redis (Chainguard): All versions (No fix recorded)
- chainguard redis-6.2 (Chainguard): \< 6.2.17-r0
- chainguard redis-7.2 (Chainguard): \< 7.2.7-r0
- chainguard redis-7.2-iamguarded-compat (Chainguard): \< 7.2.12-r2
- chainguard redis-7.4 (Chainguard): \< 7.4.2-r0
- chainguard redis-benchmark-7.2 (Chainguard): \< 7.2.12-r2
- chainguard redis-cli-7.2 (Chainguard): \< 7.2.12-r2
- chainguard redis-cluster-7.2-iamguarded-compat (Chainguard): \< 7.2.12-r2
- chainguard redis-sentinel-7.2-iamguarded-compat (Chainguard): \< 7.2.12-r2
- debian redict (Debian): \< 7.3.2+ds-1
- debian redis (Debian): \< 5:6.0.16-1+deb11u5 \| \< 5:7.0.15-1~deb12u3 \| \< 5:7.0.15-3
- debian valkey (Debian): \< 8.0.2+dfsg1-1
- ubuntu redict (Ubuntu): All versions (No fix recorded)

## References (first 20 of 38)

- <https://github.com/redis/redis/security/advisories/GHSA-39h2-x6c4-6w4c>
- <https://github.com/redis/redis/releases/tag/6.2.17>
- <https://github.com/redis/redis/releases/tag/7.2.7>
- <https://github.com/redis/redis/releases/tag/7.4.2>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00018.html>
- <https://www.vicarius.io/vsociety/posts/cve-2024-46981-detect-redis-vulnerability>
- <https://www.vicarius.io/vsociety/posts/cve-2024-46981-mitigate-redis-vulnerability>
- <https://security.alpinelinux.org/vuln/CVE-2024-46981>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20250162-1/>
- <https://bugzilla.suse.com/1235387>
- <https://www.suse.com/security/cve/CVE-2024-46981>
- <https://access.redhat.com/errata/RHSA-2025:0398>
- <https://access.redhat.com/security/updates/classification/#important>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2336004>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_0398.json>
- <https://access.redhat.com/security/cve/CVE-2024-46981>
- <https://www.cve.org/CVERecord?id=CVE-2024-46981>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-46981>
- <https://access.redhat.com/errata/RHSA-2025:0399>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_0399.json>

---

Data as of 2026-12-05T06:45:38.394Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
