CVE-2025-49844
Redis Lua Use-After-Free may lead to remote code execution
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 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. This issue is fixed in version 8.2.2. To workaround this issue without patching the redis-server executable is to prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.
How to fix CVE-2025-49844
To remediate CVE-2025-49844, 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
- —upgrade to 5:6.0.16-1+deb11u8 or later
- —upgrade to 8.1.1+dfsg1-3+deb13u1 or later
Is CVE-2025-49844 being exploited?
Moderate — EPSS is 11.1%. Track this CVE but it's not at the top of the prioritisation list.
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, < 5:6.0.16-1+deb11u8
- from 0, < 8.1.1+dfsg1-3+deb13u1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |