BSD Ports

redis,valkey -- Lua Use-After-Free may lead to remote code execution

· CVE-2025-49844 · VuXML entry

redis reports: An authenticated user may 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. 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 …

Affected versions

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.

SystemPortVersionStateFixed
FreeBSDdatabases/redis8.10.2 fixed (293 days after)
NetBSDdatabases/redis8.10.1 not listed
MidnightBSDdatabases/redis8.10.2_2 out of range, by version
DragonFlydatabases/redis7.4.3 fixed
FreeBSDdatabases/redis808.0.6_1 fixed
FreeBSDdatabases/redis747.4.11 fixed (293 days after)
MidnightBSDdatabases/redis747.4.11 out of range, by version
FreeBSDdatabases/redis727.2.16 fixed (293 days after)
MidnightBSDdatabases/redis727.2.16 out of range, by version
FreeBSDdatabases/redis626.2.24 fixed (293 days after)
MidnightBSDdatabases/redis626.2.24 out of range, by version
DragonFlydatabases/redis626.2.18 vulnerable since 2025-10-04
FreeBSDdatabases/valkey9.1.2 fixed (293 days after)
MidnightBSDdatabases/valkey9.1.0 out of range, by version