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

> CVE-2025-46818: Redis: Authenticated users can execute LUA scripts as a different user. CVSS 6.0 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2025-46818
Last updated: 2026-10-19T17:10:00Z

- Published: 2025-10-03 18:38 UTC · Updated: 2026-10-19 17:10 UTC · Assigner: GitHub\_M
- CVSS: 6.0 (CVSS 3.1) · Severity: Medium · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N
- EPSS: 0.74%, 54th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-94

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

## Affected vendors and products

- redis: redis

## Tracked companies

- [Redis](https://rewindex.com/company/redis.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-46818)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-46818)
- [https://github.com/redis/redis/commit/45eac0262028c771b6f5307372814b75f49f7a9e](https://github.com/redis/redis/commit/45eac0262028c771b6f5307372814b75f49f7a9e)
- [https://github.com/redis/redis/releases/tag/8.2.2](https://github.com/redis/redis/releases/tag/8.2.2)
- [https://github.com/redis/redis/security/advisories/GHSA-qrv7-wcrx-q5jp](https://github.com/redis/redis/security/advisories/GHSA-qrv7-wcrx-q5jp)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-46818 · Markdown: https://rewindex.com/cve/CVE-2025-46818.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-46818 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:15:29.791Z
