CVEfocus › CVE database › CVE-2025-49844

CVE-2025-49844Redis Lua Use-After-Free may lead to remote code execution

CVSS 10.0 CriticalEPSS 5.4% (higher than 93% of CVEs)Published 2025-10-03Updated 2026-03-20Assigner: GitHub_M

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.

CWE-416

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

46Fixed
14Fix pending
1Will not fix
14Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10lua5.1Fix pendingUBUNTU-CVE-2025-49844
Ubuntu 26.04lua5.1Fix pendingUBUNTU-CVE-2025-49844
Ubuntu 26.04lua5.2Not affected
vulnerable_code_not_present
Ubuntu 26.04lua5.3Not affected
vulnerable_code_not_present
Ubuntu 26.04lua5.4Not affected
vulnerable_code_not_present
Ubuntu 26.04redictNot affected
vulnerable_code_not_present
Ubuntu 26.04redisNot affected
vulnerable_code_not_present
Ubuntu 26.04valkeyNot affected
vulnerable_code_not_present
Ubuntu 25.10lua5.1Will not fix
redis in Ubuntu 20.04 LTS and Ubuntu 22.04 LTS is dynamically linked against lua5.1. Only those releases have been patched for lua5.1.
UBUNTU-CVE-2025-49844
Ubuntu 25.10lua5.2Not affected
vulnerable_code_not_present
Ubuntu 25.10lua5.3Not affected
vulnerable_code_not_present
Ubuntu 25.10lua5.4Not affected
vulnerable_code_not_present
Ubuntu 25.10redictFixed7.3.5+ds-1ubuntu0.1UBUNTU-CVE-2025-49844
Ubuntu 25.10redisFixed5:8.0.2-3ubuntu0.25.10.1UBUNTU-CVE-2025-49844
Ubuntu 25.10valkeyFixed8.1.4+dfsg1-0ubuntu0.2UBUNTU-CVE-2025-49844
Ubuntu 24.04lua5.1Fix pendingUBUNTU-CVE-2025-49844
Ubuntu 24.04lua5.2Not affected
vulnerable_code_not_present
Ubuntu 24.04lua5.3Not affected
vulnerable_code_not_present
Ubuntu 24.04lua5.4Not affected
vulnerable_code_not_present
Ubuntu 24.04redisFixed5:7.0.15-1ubuntu0.24.04.2UBUNTU-CVE-2025-49844
Ubuntu 24.04valkeyFixed7.2.11+dfsg1-0ubuntu0.2UBUNTU-CVE-2025-49844
Ubuntu 22.04lua5.1Fix pending5.1.5-8.1ubuntu0.22.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-49844
Ubuntu 22.04lua5.2Not affected
vulnerable_code_not_present
Ubuntu 22.04lua5.3Not affected
vulnerable_code_not_present
Ubuntu 20.04lua5.1Fix pending5.1.5-8.1ubuntu0.20.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-49844
Ubuntu 20.04lua50Fix pendingUBUNTU-CVE-2025-49844
Ubuntu 20.04redisFix pending5:5.0.7-2ubuntu0.1+esm4 (Ubuntu Pro)UBUNTU-CVE-2025-49844
Ubuntu 18.04lua5.1Fix pendingUBUNTU-CVE-2025-49844
Ubuntu 18.04lua50Fix pendingUBUNTU-CVE-2025-49844
Ubuntu 18.04redisFix pending5:4.0.9-1ubuntu0.2+esm6 (Ubuntu Pro)UBUNTU-CVE-2025-49844
Ubuntu 16.04lua50Fix pendingUBUNTU-CVE-2025-49844
Ubuntu 16.04redisFix pending2:3.0.6-1ubuntu0.4+esm4 (Ubuntu Pro)UBUNTU-CVE-2025-49844
Ubuntu 14.04lua5.1Fix pendingUBUNTU-CVE-2025-49844
Ubuntu 14.04redisFix pending2:2.8.4-2ubuntu0.2+esm5 (Ubuntu Pro)UBUNTU-CVE-2025-49844
Debian 14redisFixed5:8.0.4-1DEBIAN-CVE-2025-49844
Debian 14valkeyFixed8.1.4+dfsg1-1DEBIAN-CVE-2025-49844
Debian 13redisFixed5:8.0.2-3+deb13u1DEBIAN-CVE-2025-49844
Debian 13valkeyFixed8.1.1+dfsg1-3+deb13u1DEBIAN-CVE-2025-49844
Debian 12redisFixed5:7.0.15-1~deb12u6DEBIAN-CVE-2025-49844
Red Hat Enterprise Linux 10valkeyFixed0:8.0.6-2.el10_1RHSA-2025:19675
Red Hat Enterprise Linux 10valkey-develFixed0:8.0.6-1.el10_0RHSA-2025:21936
Red Hat Enterprise Linux 9redisFixed0:7.2.11-1.module+el9.7.0+23559+d075163aRHSA-2025:19237
Red Hat Enterprise Linux 9redis-develFixed0:6.2.20-2.el9_7RHSA-2025:19237
Red Hat Enterprise Linux 9redis-docFixed0:7.2.11-1.module+el9.7.0+23559+d075163aRHSA-2025:20926
Red Hat Enterprise Linux 9valkeyFixed0:8.0.6-2.el9_7RHSA-2025:21916
Red Hat Enterprise Linux 9valkey-develFixed0:8.0.6-2.el9_7RHSA-2025:21916
Red Hat Enterprise Linux 8redisFixed0:6.2.20-1.module+el8.10.0+23551+d4cd15d7RHSA-2025:19238
Red Hat Enterprise Linux 8redis-develFixed0:6.2.20-1.module+el8.10.0+23551+d4cd15d7RHSA-2025:19238
Red Hat Enterprise Linux 8redis-docFixed0:6.2.20-1.module+el8.10.0+23551+d4cd15d7RHSA-2025:19238
AlmaLinux 10valkeyFixed8.0.6-1.el10_0ALSA-2025:21936
AlmaLinux 10valkey-develFixed8.0.6-2.el10_1ALSA-2025:19675
AlmaLinux 9redisFixed6.2.20-1.el9_6ALSA-2025:19345
AlmaLinux 9redis-develFixed6.2.20-2.el9_7ALSA-2025:19345
AlmaLinux 9redis-docFixed7.2.11-1.module_el9.6.0+188+92104ce8ALSA-2025:20926
AlmaLinux 9valkeyFixed8.0.6-2.el9_7ALSA-2025:21916
AlmaLinux 9valkey-develFixed8.0.6-2.el9_7ALSA-2025:21916
AlmaLinux 8redisFixed6.2.20-1.module_el8.10.0+4056+739731b0ALSA-2025:19238
AlmaLinux 8redis-develFixed6.2.20-1.module_el8.10.0+4056+739731b0ALSA-2025:19238
AlmaLinux 8redis-docFixed6.2.20-1.module_el8.10.0+4056+739731b0ALSA-2025:19238
Rocky Linux 10valkeyFixed0:8.0.6-1.el10_0RLSA-2025:21936
Rocky Linux 9redisFixed0:6.2.20-1.el9_6RLSA-2025:20955
Rocky Linux 9valkeyFixed0:8.0.6-2.el9_7RLSA-2025:21916
Rocky Linux 8redisFixed0:6.2.20-1.module+el8.10.0+2081+450a296cRLSA-2025:19238
Alpine Linux 3.24redictFixed7.3.6-r0ALPINE-CVE-2025-49844
Alpine Linux 3.24redisFixed8.2.2-r0ALPINE-CVE-2025-49844
Alpine Linux 3.24valkeyFixed8.1.4-r0ALPINE-CVE-2025-49844
Alpine Linux 3.23redictFixed7.3.6-r0ALPINE-CVE-2025-49844
Alpine Linux 3.23redisFixed8.2.2-r0ALPINE-CVE-2025-49844
Alpine Linux 3.23valkeyFixed8.1.4-r0ALPINE-CVE-2025-49844
Alpine Linux 3.22redictFixed7.3.6-r0ALPINE-CVE-2025-49844
Alpine Linux 3.22redisFixed8.0.4-r0ALPINE-CVE-2025-49844
Alpine Linux 3.22valkeyFixed8.1.4-r0ALPINE-CVE-2025-49844
Alpine Linux 3.21redisFixed7.2.11-r0ALPINE-CVE-2025-49844
Alpine Linux 3.21valkeyFixed7.2.11-r0ALPINE-CVE-2025-49844
Alpine Linux 3.20valkeyFixed7.2.11-r0ALPINE-CVE-2025-49844

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.