CVE Vulnerabilities

CVE-2025-49844

Use After Free

Published: Oct 03, 2025 | Modified: Oct 07, 2025
CVSS 3.x
9.9
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
8.8 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Ubuntu
HIGH

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.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

Name Vendor Start Version End Version
Redis Redis * 6.2.20 (excluding)
Redis Redis 7.0 (including) 7.2.11 (excluding)
Redis Redis 7.4.0 (including) 7.4.6 (excluding)
Redis Redis 8.0.0 (including) 8.0.4 (excluding)
Redis Redis 8.2.0 (including) 8.2.2 (excluding)
Redict Ubuntu devel *
Redict Ubuntu plucky *
Redict Ubuntu questing *
Redis Ubuntu devel *
Redis Ubuntu esm-apps/bionic *
Redis Ubuntu esm-apps/focal *
Redis Ubuntu esm-apps/jammy *
Redis Ubuntu esm-apps/noble *
Redis Ubuntu esm-apps/xenial *
Redis Ubuntu esm-infra-legacy/trusty *
Redis Ubuntu jammy *
Redis Ubuntu noble *
Redis Ubuntu plucky *
Redis Ubuntu questing *
Valkey Ubuntu devel *
Valkey Ubuntu esm-apps/noble *
Valkey Ubuntu noble *
Valkey Ubuntu plucky *
Valkey Ubuntu questing *

Potential Mitigations

References