redis,valkey -- Running Lua function as a different user
· CVE-2025-46818 · VuXML entry
redis reports: An authenticated user may 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. An additional 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 …
Affected versions
- redis >= 8.2.0 < 8.2.2
- redis80 >= 8.0.0 < 8.0.4
- redis74 >= 7.4.0 < 7.4.6
- redis72 >= 7.2.0 < 7.2.11
- redis62 >= 6.2.0 < 6.2.20
- valkey < 8.1.4
By system
1 still vulnerable, 7 fixed. Where VuXML applies (FreeBSD, DragonFly, FreeBSD's derivatives) a port is vulnerable while its version is in a range; pkgsrc says itself whether it lists a CVE of this advisory; OpenBSD and MidnightBSD keep no list this site reads, so their row is only an estimate: FreeBSD's ranges applied to upstream's version.
| System | Port | Version | State | Fixed |
|---|---|---|---|---|
| FreeBSD | databases/redis | 8.10.2 | fixed | (293 days after) |
| NetBSD | databases/redis | 8.10.1 | not listed | |
| MidnightBSD | databases/redis | 8.10.2_2 | out of range, by version | |
| DragonFly | databases/redis | 7.4.3 | fixed | |
| FreeBSD | databases/redis80 | 8.0.6_1 | fixed | |
| FreeBSD | databases/redis74 | 7.4.11 | fixed | (293 days after) |
| MidnightBSD | databases/redis74 | 7.4.11 | out of range, by version | |
| FreeBSD | databases/redis72 | 7.2.16 | fixed | (293 days after) |
| MidnightBSD | databases/redis72 | 7.2.16 | out of range, by version | |
| FreeBSD | databases/redis62 | 6.2.24 | fixed | (293 days after) |
| MidnightBSD | databases/redis62 | 6.2.24 | out of range, by version | |
| DragonFly | databases/redis62 | 6.2.18 | vulnerable since 2025-10-04 | |
| FreeBSD | databases/valkey | 9.1.2 | fixed | (293 days after) |
| MidnightBSD | databases/valkey | 9.1.0 | out of range, by version |