Advisory
UBUNTU-CVE-2025-49844
Also known as: CVE-2025-49844
Summary
The record has no summary.
Details
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.
Severity
Critical Basis: CVSS v3 score 9.9, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Dates
- Published
- 2025-10-03 20:15 UTC
- Modified
- 2026-10-17 12:58 UTC
Affected packages and fixes
| Package | System | Affected | Fix |
|---|---|---|---|
| lua5.1 | Debian packages (deb) · Ubuntu 14.04 | introduced 0 | No fixed version is listed. |
| lua50 | Debian packages (deb) · Ubuntu 16.04 | introduced 0 | No fixed version is listed. |
| lua5.1 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| lua50 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| lua50 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| lua5.1 | Debian packages (deb) · Ubuntu 24.04 | introduced 0 | No fixed version is listed. |
| redis | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| valkey | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| lua5.1 | Debian packages (deb) · Ubuntu 25.10 | introduced 0 | No fixed version is listed. |
| redict | Debian packages (deb) · Ubuntu 25.10 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| redis | Debian packages (deb) · Ubuntu 25.10 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| valkey | Debian packages (deb) · Ubuntu 25.10 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| lua5.1 | Debian packages (deb) · Ubuntu 26.10 | introduced 0 | No fixed version is listed. |
| lua5.1 | Debian packages (deb) · Ubuntu 26.04 | introduced 0 | No fixed version is listed. |
Some commands upgrade the distribution's packages. Compare the fixed version with the version you have installed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Links
- https://ubuntu.com/security/CVE-2025-49844
- https://www.cve.org/CVERecord?id=CVE-2025-49844
- https://github.com/redis/redis/security/advisories/GHSA-4789-qfc9-5f9q
- https://github.com/redis/redis/commit/d5728cb5795c966c5b5b1e0f0ac576a7e69af539
- https://github.com/valkey-io/valkey/commit/6dd003e88feace83e55491f32376f6927896e31e
- https://github.com/redis/redis/commit/d5728cb5795c966c5b5b1e0f0ac576a7e69af539
- https://github.com/redis/redis/releases/tag/8.2.2
- https://ubuntu.com/security/notices/USN-7824-1
- https://ubuntu.com/security/notices/USN-7824-2
- https://ubuntu.com/security/notices/USN-7824-3
- https://ubuntu.com/security/notices/USN-7893-1
- https://ubuntu.com/security/notices/USN-8169-1
- https://ubuntu.com/security/notices/USN-8262-1
Source
Source: Ubuntu Security Notices · CC BY-SA 4.0