Vulnerabilities / CVE-2025-49844

critical

CVE-2025-49844

Redis: Redis Lua Use-After-Free may lead to remote code execution

Published Modified CWE 416
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.9CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Red Hat8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Bitnami10.0CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Azure Linux, Bitnami, CBL-Mariner, Photon OS. Rated lower by Red Hat (high), AlmaLinux (high), Amazon (high), Oracle (high), Rocky Linux (high), Ubuntu (high).

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.

Affected packages and fixed versions

SourcePackageFixed in
Azure Linux 3.0valkey0:8.0.6-1.azl3
bitnami::Bitnami Vulnerability Databasekeydb, redis, valkey6.2.20, 7.2.11, 7.4.6, 8.0.4, 8.2.2 and 1 more
CBL-Mariner 2.0redis0:6.2.20-1.cm2
Photon OS 4.0redis7.2.11-1.ph4
Photon OS 5.0redis7.2.11-1.ph5
alma 8redis:6::redis, redis:6::redis-devel, redis:6::redis-doc6.2.20-1.module_el8.10.0+4056+739731b0
alma 9redis, redis-devel, redis-doc and 5 more6.2.20-2.el9_7 and 2 more
alpine 3.20valkey7.2.11-r0
alpine 3.21redis, valkey7.2.11-r0
alpine 3.22redict, redis, valkey7.3.6-r0 and 2 more
alpine 3.23redict, redis, valkey7.3.6-r0 and 2 more
alpine 3.24redict, redis, valkey7.3.6-r0 and 2 more
Show all 150 entries from 51 sources
SourcePackageFixed in
Azure Linux 3.0valkey0:8.0.6-1.azl3
bitnami::Bitnami Vulnerability Databasekeydb6.2.20, 7.2.11, 7.4.6, 8.0.4, 8.2.2
bitnami::Bitnami Vulnerability Databaseredis6.2.20, 7.2.11, 7.4.6, 8.0.4, 8.2.2
bitnami::Bitnami Vulnerability Databasevalkey7.2.11, 8.0.6, 8.1.4
CBL-Mariner 2.0redis0:6.2.20-1.cm2
Photon OS 4.0redis7.2.11-1.ph4
Photon OS 5.0redis7.2.11-1.ph5
alma 8redis:6::redis6.2.20-1.module_el8.10.0+4056+739731b0
alma 8redis:6::redis-devel6.2.20-1.module_el8.10.0+4056+739731b0
alma 8redis:6::redis-doc6.2.20-1.module_el8.10.0+4056+739731b0
alma 9redis6.2.20-2.el9_7
alma 9redis-devel6.2.20-2.el9_7
alma 9redis-doc6.2.20-2.el9_7
alma 9redis:7::redis7.2.11-1.module_el9.6.0+188+92104ce8
alma 9redis:7::redis-devel7.2.11-1.module_el9.6.0+188+92104ce8
alma 9redis:7::redis-doc7.2.11-1.module_el9.6.0+188+92104ce8
alma 9valkey8.0.6-2.el9_7
alma 9valkey-devel8.0.6-2.el9_7
alpine 3.20valkey7.2.11-r0
alpine 3.21redis7.2.11-r0
alpine 3.21valkey7.2.11-r0
alpine 3.22redict7.3.6-r0
alpine 3.22redis8.0.4-r0
alpine 3.22valkey8.1.4-r0
alpine 3.23redict7.3.6-r0
alpine 3.23redis8.2.2-r0
alpine 3.23valkey8.1.4-r0
alpine 3.24redict7.3.6-r0
alpine 3.24redis8.2.2-r0
alpine 3.24valkey8.1.4-r0
alpine edgeredict7.3.6-r0
alpine edgeredis8.2.2-r0
alpine edgevalkey8.1.4-r0
amazon linux 2023redis66.2.20-2.amzn2023.0.1
amazon linux 2023redis6-debuginfo6.2.20-2.amzn2023.0.1
amazon linux 2023redis6-debugsource6.2.20-2.amzn2023.0.1
amazon linux 2023redis6-devel6.2.20-2.amzn2023.0.1
amazon linux 2023redis6-doc6.2.20-2.amzn2023.0.1
amazon linux 2023valkey8.0.6-3.amzn2023.0.2
amazon linux 2023valkey-debuginfo8.0.6-3.amzn2023.0.2
amazon linux 2023valkey-debugsource8.0.6-3.amzn2023.0.2
amazon linux 2023valkey-devel8.0.6-3.amzn2023.0.2
chainguardpy3-redis0
debian 11redis5:6.0.16-1+deb11u8
debian 12redis5:7.0.15-1~deb12u6
debian 13redis5:8.0.2-3+deb13u1
debian 13valkey8.1.1+dfsg1-3+deb13u1
debian 14redict7.3.6+ds-1
debian 14redis5:8.0.4-1
debian 14valkey8.1.4+dfsg1-1
echoredis5:7.0.15-1~deb12u6
echovalkey8.1.1+dfsg1-3+deb13u1
minimosredis-6.26.2.20-r0
minimosredis-7.27.2.11-r0
minimosredis-7.47.4.6-r0
minimosredis-8.08.0.4-r0
minimosredis-8.28.2.2-r0
Oracle Linux 8redis6.2.20-1.0.1.module+el8.10.0+90692+1027f9f2
Oracle Linux 8redis-devel6.2.20-1.0.1.module+el8.10.0+90692+1027f9f2
Oracle Linux 8redis-doc6.2.20-1.0.1.module+el8.10.0+90692+1027f9f2
Oracle Linux 9redis7.2.11-1.0.1.module+el9.7.0+90709+dc2ec98a
Oracle Linux 9redis-devel7.2.11-1.0.1.module+el9.7.0+90709+dc2ec98a
Oracle Linux 9redis-doc7.2.11-1.0.1.module+el9.7.0+90709+dc2ec98a
Oracle Linux 9valkey8.0.6-2.el9_7
Oracle Linux 9valkey-devel8.0.6-2.el9_7
rapidfort alma 9redis0:7.2.11-1.module+el9.7.0+23559+d075163a
rapidfort alma 9redis-devel0:7.2.11-1.module+el9.7.0+23559+d075163a
rapidfort alma 9redis-doc0:7.2.11-1.module+el9.7.0+23559+d075163a
rapidfort alpine 3.20redict7.3.6-r0
rapidfort alpine 3.20redis7.2.9-r0, 8.2.2-r0
rapidfort alpine 3.21redict7.3.6-r0
rapidfort alpine 3.21redis7.2.9-r0, 8.2.2-r0
rapidfort alpine 3.22redict7.3.6-r0
rapidfort alpine 3.23redis8.2.2-r0
rapidfort alpine 3.24redict7.3.6-r0
rapidfort alpine 3.24redis7.2.9-r0, 8.2.2-r0
rapidfort amazon linux 2023redis66.2.20-2.amzn2023.0.1
rapidfort amazon linux 2023redis6-devel6.2.20-2.amzn2023.0.1
rapidfort amazon linux 2023redis6-doc6.2.20-2.amzn2023.0.1
rapidfort amazon linux 2023valkey8.0.6-3.amzn2023.0.2
rapidfort amazon linux 2023valkey-devel8.0.6-3.amzn2023.0.2
rapidfort debian 12redict0:7.3.6+ds-1
rapidfort debian 12redis0:8.0.2-3+deb13u1, 5:8.0.4-1
rapidfort debian 12rf-redis0:8.0.2-3+deb13u1, 5:8.0.4-1
rapidfort debian 12valkey0:8.1.1+dfsg1-3+deb13u1, 0:8.1.4+dfsg1-1
rapidfort debian 13redict0:7.3.6+ds-1
rapidfort debian 13redis0:8.0.2-3+deb13u1, 5:8.0.4-1
rapidfort debian 13rf-redis0:8.0.2-3+deb13u1, 5:8.0.4-1
rapidfort debian 13valkey0:8.1.1+dfsg1-3+deb13u1, 0:8.1.4+dfsg1-1
rapidfort fedora 43valkey8.1.4-1.fc43
rapidfort fedora 43valkey-compat-redis8.1.4-1.fc43
rapidfort fedora 43valkey-compat-redis-devel8.1.4-1.fc43
rapidfort fedora 43valkey-devel8.1.4-1.fc43
rapidfort fedora 43valkey-doc8.1.4-1.fc43
rapidfort Oracle Linux 10valkey0:8.0.6-2.el10_1
rapidfort Oracle Linux 10valkey-devel0:8.0.6-2.el10_1
rapidfort Oracle Linux 9redis0:6.2.20-2.el9_7
rapidfort Oracle Linux 9redis-devel0:6.2.20-2.el9_7
rapidfort Oracle Linux 9redis-doc0:6.2.20-2.el9_7
rapidfort Oracle Linux 9valkey0:8.0.6-2.el9_7, 8.0.6-1.el9
rapidfort Oracle Linux 9valkey-compat-redis8.0.6-1.el9
rapidfort Oracle Linux 9valkey-compat-redis-devel8.0.6-1.el9
rapidfort Oracle Linux 9valkey-devel0:8.0.6-2.el9_7, 8.0.6-1.el9
rapidfort Oracle Linux 9valkey-doc8.0.6-1.el9
rapidfort rocky 9redis0:7.2.11-1.module+el9.7.0+40013+17379f63
rapidfort rocky 9redis-devel0:7.2.11-1.module+el9.7.0+40013+17379f63
rapidfort ubuntu 20.04lua5.1no fix listed
rapidfort ubuntu 20.04redis5:7.0.15-1ubuntu0.24.04.2
rapidfort ubuntu 20.04redis-stack-server7.4.0-v7
rapidfort ubuntu 20.04rf-redis5:7.0.15-1ubuntu0.24.04.2
rapidfort ubuntu 22.04lua5.1no fix listed
rapidfort ubuntu 22.04redis5:7.0.15-1ubuntu0.24.04.2
rapidfort ubuntu 22.04redis-stack-server7.4.0-v7
rapidfort ubuntu 22.04rf-redis5:7.0.15-1ubuntu0.24.04.2
rapidfort ubuntu 24.04lua5.1no fix listed
rapidfort ubuntu 24.04redis5:7.0.15-1ubuntu0.24.04.2
rapidfort ubuntu 24.04redis-stack-server7.4.0-v7
rapidfort ubuntu 24.04rf-redis5:7.0.15-1ubuntu0.24.04.2
rocky 10valkey8.0.6-2.el10_1
rocky 10valkey-devel8.0.6-2.el10_1
rocky 8redis:6::redis6.2.20-1.module+el8.10.0+2081+450a296c
rocky 8redis:6::redis-devel6.2.20-1.module+el8.10.0+2081+450a296c
rocky 8redis:6::redis-doc6.2.20-1.module+el8.10.0+2081+450a296c
rocky 9redis6.2.20-2.el9_7
rocky 9redis-devel6.2.20-2.el9_7
rocky 9redis-doc6.2.20-2.el9_7
rocky 9redis:7::redis7.2.11-1.module+el9.7.0+40013+17379f63
rocky 9redis:7::redis-devel7.2.11-1.module+el9.7.0+40013+17379f63
rocky 9redis:7::redis-doc7.2.11-1.module+el9.7.0+40013+17379f63
rocky 9valkey8.0.6-2.el9_7
rocky 9valkey-devel8.0.6-2.el9_7
ubuntu 16.04-ESMredis2:3.0.6-1ubuntu0.4+esm4
ubuntu 18.04-ESMlua5.1no fix listed
ubuntu 18.04-ESMlua50no fix listed
ubuntu 18.04-ESMredis5:4.0.9-1ubuntu0.2+esm6
ubuntu 20.04-ESMlua5.15.1.5-8.1ubuntu0.20.04.1~esm1
ubuntu 20.04-ESMlua50no fix listed
ubuntu 20.04-ESMredis5:5.0.7-2ubuntu0.1+esm4
ubuntu 22.04lua5.1no fix listed
ubuntu 24.04lua5.1no fix listed
ubuntu 24.04redis5:7.0.15-1ubuntu0.24.04.2
ubuntu 24.04valkey7.2.11+dfsg1-0ubuntu0.2
ubuntu 25.04redict7.3.2+ds-1ubuntu0.1
ubuntu 25.04redis5:7.0.15-3ubuntu0.1
ubuntu 25.04valkey8.0.6+dfsg1-0ubuntu0.2
ubuntu 25.10redict7.3.5+ds-1ubuntu0.1
ubuntu 25.10redis5:8.0.2-3ubuntu0.25.10.1
ubuntu 25.10valkey8.1.4+dfsg1-0ubuntu0.2
ubuntu 26.04lua5.1no fix listed
ubuntu 26.10lua5.1no fix listed

References

All 35 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.