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

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.43%, higher than 94% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-03T19:27:23.609Z
- Modified: 2026-10-19T16:10:00.260Z
- Also known as: BIT-KEYDB-2025-49844, BIT-REDIS-2025-49844, BIT-VALKEY-2025-49844, GHSA-4789-qfc9-5f9q
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- redis redis: < 8.2.2; before 6.2.20; from 7.0 before 7.2.11; from 7.4.0 before 7.4.6; from 8.0.0 before 8.0.4; from 8.2.0 before 8.2.2
- lfprojects valkey: before 7.2.11; from 8.0.0 before 8.0.6; from 8.1.0 before 8.1.4
- keydb (Bitnami): before 6.2.20; from 7.0.0 before 7.2.11; from 7.3.0 before 7.4.6; from 8.0.0 before 8.0.4; from 8.1.0 before 8.2.2
- redis (Bitnami): before 6.2.20; from 7.0.0 before 7.2.11; from 7.3.0 before 7.4.6; from 8.0.0 before 8.0.4; from 8.1.0 before 8.2.2
- valkey (Bitnami): before 7.2.11; from 8.0.0 before 8.0.6; from 8.1.0 before 8.1.4

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/lastvocher/redis-CVE-2025-49844> (exploit, web)
- <https://github.com/redis/redis/security/advisories/GHSA-4789-qfc9-5f9q> (advisory, third-party-advisory)
- <https://github.com/redis/redis/commit/d5728cb5795c966c5b5b1e0f0ac576a7e69af539> (fix, patch)
- <https://github.com/redis/redis/releases/tag/8.2.2> (article, release-notes)
- <http://www.openwall.com/lists/oss-security/2025/10/07/2> (advisory, mailing-list, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-49844> (web)

## Sources

- CVE List: [CVE-2025-49844](https://www.cve.org/CVERecord?id=CVE-2025-49844), CVE Terms of Use, modified 2026-03-20
- NVD: [CVE-2025-49844](https://nvd.nist.gov/vuln/detail/CVE-2025-49844), Public domain, modified 2026-10-19
- Bitnami Vulnerability Database: [BIT-KEYDB-2025-49844](https://osv.dev/vulnerability/BIT-KEYDB-2025-49844), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-REDIS-2025-49844](https://osv.dev/vulnerability/BIT-REDIS-2025-49844), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-VALKEY-2025-49844](https://osv.dev/vulnerability/BIT-VALKEY-2025-49844), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-49844 · Whole record: https://cve.day/CVE-2025-49844.json · Rebuilt by cve.day 2026-11-25T22:59:05.503Z
