# CVE-2024-31449: Lua library commands may lead to stack overflow and RCE in Redis

- Priority: **Routine**
- Reason: Not severe (CVSS 7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-10-07 · Modified: 2026-11-03
- Aliases: ALPINE-CVE-2024-31449, UBUNTU-CVE-2024-31449, DEBIAN-CVE-2024-31449, CGA-2qwx-xq26-hx42, CGA-3jf4-wc7c-hw4h, CGA-574x-4523-mmj6, CGA-596w-3fqx-74gf, CGA-6cpc-hmqr-8x82, CGA-6x27-23r2-4rph, CGA-7hm4-hh8x-xqx5, CGA-7mmx-9pj7-34jq, CGA-87q9-8vxc-r79m, CGA-8vhq-229c-fx6x, CGA-99jx-gvqr-2g5c, CGA-9gfg-7g4p-g3p7, CGA-9h2p-xp2q-hmc4, CGA-9hp8-4chr-5qxp, CGA-g24f-px3r-5f9q, CGA-gr9c-h8jh-9jx2, CGA-gxj4-rqqh-vmj2, CGA-m7vm-8rw8-r6r4, CGA-mmcm-ppr7-rqx2, CGA-p246-rgrw-qpmw, CGA-p7qf-qgwc-6rc8, CGA-qrvq-fm56-757r, CGA-rhrx-8pfh-qhmc, CGA-rx9j-f3ch-76g9, CGA-rxhq-w89q-r4vx, CGA-w7p5-7g45-37h9
- Record: https://cvemate.com/vulnerability/CVE-2024-31449 · JSON: https://cvemate.com/vulnerability/CVE-2024-31449/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 trigger a stack buffer overflow in the bit library, which may potentially lead to remote code execution. The problem exists in all versions of Redis with Lua scripting. This problem has been fixed in Redis versions 6.2.16, 7.2.6, and 7.4.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.
```

## Signals

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

## Affected (first 20 of 22)

- alpine redict (Alpine Linux): \< 7.3.1-r0
- alpine redis (Alpine Linux): ≥ 2.8.18, \< 7.2.4-r1 \| ≥ 2.8.18, \< 7.2.5-r1 \| ≥ 2.8.18, \< 6.2.18-r0 \| ≥ 2.8.18, \< 7.0.15-r1 \| ≥ 7.2.0, \< 7.2.4-r1 \| ≥ 7.2.0, \< 7.2.5-r1
- alpine valkey (Alpine Linux): \< 7.2.7-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.16-r0
- chainguard redis-7.2 (Chainguard): \< 7.2.6-r0
- chainguard redis-7.2-iamguarded-compat (Chainguard): \< 7.2.12-r2
- chainguard redis-7.4 (Chainguard): \< 7.4.1-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.1+ds-1
- debian redis (Debian): \< 5:7.0.15-1~deb12u2 \| \< 5:7.0.15-2
- debian valkey (Debian): \< 8.0.1+dfsg1-1
- ubuntu lua-bitop (Ubuntu): All versions (No fix recorded) \| \< 1.0.2-5ubuntu0.20.04.1~esm2 \| \< 1.0.2-5ubuntu0.22.04.1~esm2

## References

- <https://github.com/redis/redis/security/advisories/GHSA-whxg-wx83-85p5>
- <https://github.com/redis/redis/commit/1f7c148be2cbacf7d50aa461c58b871e87cc5ed9>
- <https://security.alpinelinux.org/vuln/CVE-2024-31449>
- <https://ubuntu.com/security/CVE-2024-31449>
- <https://www.cve.org/CVERecord?id=CVE-2024-31449>
- <https://ubuntu.com/security/notices/USN-8169-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-31449>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31449.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-31449>

---

Data as of 2026-12-05T04:38:38.231Z. 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
