CVE-2025-46818
Redis: Authenticated users can execute LUA scripts as a different user
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.
How to fix CVE-2025-46818
To remediate CVE-2025-46818, upgrade the affected package to a fixed version below.
- —upgrade to 7.2.11-r0 or later
- —upgrade to 6.2.20 or later
- —upgrade to 6.2.20 or later
- —upgrade to 7.2.11 or later
- —upgrade to 7.3.6+ds-1 or later
- —no fix listed
- —upgrade to 8.1.1+dfsg1-3+deb13u1 or later
Is CVE-2025-46818 being exploited?
Low — EPSS is 3.7%, meaning exploitation activity has not been observed at scale.
Affected packages (7)
- from 0, < 7.2.11-r0
- from 0, < 6.2.20, >= 7.0.0, < 7.2.11, >= 7.3.0, < 7.4.6, >= 8.0.0, < 8.0.4, >= 8.1.0, < 8.2.2
- from 0, < 6.2.20, >= 7.0.0, < 7.2.11, >= 7.3.0, < 7.4.6, >= 8.0.0, < 8.0.4, >= 8.1.0, < 8.2.2
- from 0, < 7.2.11, >= 8.0.0, < 8.0.6, >= 8.1.0, < 8.1.4
- from 0, < 7.3.6+ds-1
- from 0
- from 0, < 8.1.1+dfsg1-3+deb13u1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |