# CVE-2025-49844: Redis Lua Use-After-Free may lead to remote code execution

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2025-10-03 · Modified: 2026-03-20
- Aliases: ALPINE-CVE-2025-49844, UBUNTU-CVE-2025-49844, USN-7824-1, USN-7824-2, USN-7824-3, DEBIAN-CVE-2025-49844, CGA-246f-qmwj-rf95, CGA-6m48-5h5q-cj79, CGA-7w8r-f3f9-4rqm, CGA-8qmv-qrp3-25pw, CGA-c542-44q3-gjf4, CGA-g584-93g8-5gx2, CGA-gj42-rmvc-2vv3, CGA-h4v6-5537-4jgq, CGA-rc28-3825-p4qf, CGA-v947-755h-m56x, USN-8262-1
- Record: https://cvemate.com/vulnerability/CVE-2025-49844 · JSON: https://cvemate.com/vulnerability/CVE-2025-49844/json

## Description

```text
Redis is an open source, in-memory database that persists on disk. Versions 8.2.1 and below allow an authenticated user to use a specially crafted Lua script to manipulate the garbage collector, trigger a use-after-free and potentially lead to remote code execution. The problem exists in all versions of Redis with Lua scripting. This issue is fixed in version 8.2.2. To workaround this issue 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: 10 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- EPSS: 80.789%, percentile 99.633%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine redict (Alpine Linux): \< 7.3.6-r0
- alpine redis (Alpine Linux): ≥ 7.0, \< 8.0.4-r0 \| ≥ 7.0, \< 8.2.2-r0 \| ≥ 7.0, \< 7.2.11-r0 \| ≥ 8.0.0, \< 8.0.4-r0 \| ≥ 8.2.0, \< 8.2.2-r0
- alpine valkey (Alpine Linux): ≥ 8.0.0, \< 7.2.11-r0 \| ≥ 8.0.0, \< 8.1.4-r0 \| \< 7.2.11-r0 \| ≥ 8.1.0, \< 8.1.4-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)
- debian redict (Debian): \< 7.3.6+ds-1
- debian redis (Debian): \< 5:7.0.15-1~deb12u6 \| \< 5:8.0.2-3+deb13u1 \| \< 5:8.0.4-1
- debian valkey (Debian): \< 8.1.1+dfsg1-3+deb13u1 \| \< 8.1.4+dfsg1-1
- ubuntu lua50 (Ubuntu): All versions (No fix recorded)
- ubuntu lua5.1 (Ubuntu): \< 5.1.5-8ubuntu1+esm1 \| All versions (No fix recorded) \| \< 5.1.5-8.1ubuntu0.20.04.1~esm1 \| \< 5.1.5-8.1ubuntu0.22.04.1~esm1
- ubuntu redict (Ubuntu): \< 7.3.5+ds-1ubuntu0.1
- ubuntu redis (Ubuntu): \< 5:6.0.16-1ubuntu1.1 \| \< 2:2.8.4-2ubuntu0.2+esm5 \| \< 2:3.0.6-1ubuntu0.4+esm4 \| \< 5:4.0.9-1ubuntu0.2+esm6 \| \< 5:5.0.7-2ubuntu0.1+esm4 \| \< 5:7.0.15-1ubuntu0.24.04.2 \| \< 5:8.0.2-3ubuntu0.25.10.1
- ubuntu valkey (Ubuntu): \< 7.2.11+dfsg1-0ubuntu0.2 \| \< 8.1.4+dfsg1-0ubuntu0.2
- lfprojects valkey: \< 7.2.11 \| ≥ 8.0.0, \< 8.0.6 \| ≥ 8.1.0, \< 8.1.4
- redis redis: \< 8.2.2 \| \< 6.2.20 \| ≥ 7.0, \< 7.2.11 \| ≥ 7.4.0, \< 7.4.6 \| ≥ 8.0.0, \< 8.0.4 \| ≥ 8.2.0, \< 8.2.2

## References

- <https://github.com/redis/redis/security/advisories/GHSA-4789-qfc9-5f9q>
- <https://github.com/redis/redis/commit/d5728cb5795c966c5b5b1e0f0ac576a7e69af539>
- <https://github.com/redis/redis/releases/tag/8.2.2>
- <https://github.com/lastvocher/redis-CVE-2025-49844>
- <http://www.openwall.com/lists/oss-security/2025/10/07/2>
- <https://security.alpinelinux.org/vuln/CVE-2025-49844>
- <https://ubuntu.com/security/CVE-2025-49844>
- <https://www.cve.org/CVERecord?id=CVE-2025-49844>
- <https://github.com/valkey-io/valkey/commit/6dd003e88feace83e55491f32376f6927896e31e>
- <https://ubuntu.com/security/notices/USN-7824-1>
- <https://ubuntu.com/security/notices/USN-7824-2>
- <https://ubuntu.com/security/notices/USN-7824-3>
- <https://ubuntu.com/security/notices/USN-7893-1>
- <https://ubuntu.com/security/notices/USN-8169-1>
- <https://ubuntu.com/security/notices/USN-8262-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-49844>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/49xxx/CVE-2025-49844.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-49844>

---

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