CVE-2025-49844: (Pwn2Own) Redis Lua Use-After-Free Remote Code Execution Vulnerability

Published Oct 3, 2025
·
Updated

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.

Other sources

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

— Microsoft

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Redis. Authentication is not required to exploit this vulnerability. The specific flaw exists within the handling of certain string values by the embedded Lua interpreter. The issue results from the lack of validating the existence of an object prior to performing operations on the object. An attacker can leverage this vulnerability to execute code in the context of the service account.

— ZDI

Affected Software

37 affected componentsFixes available
Redis Redis<=8.2.1
Microsoft cbl2 redis 6.2.18-3
Microsoft azl3 valkey 8.0.4-1
F5 BIG-IP Next SPK>=2.0.0<=2.0.2
F5 BIG-IP Next SPK>=1.7.0<=1.9.2
F5 BIG-IP Next CNF>=2.0.0<=2.1.0
F5 BIG-IP Next CNF>=1.1.0<=1.4.1
F5 BIG-IP Next for Kubernetes>=2.0.0<=2.1.0
Redis Redis<6.2.20
Redis Redis>=7.0<7.2.11
Redis Redis>=7.4.0<7.4.6
Redis Redis>=8.0.0<8.0.4
Redis Redis>=8.2.0<8.2.2
Lfprojects Valkey<7.2.11
Lfprojects Valkey>=8.0.0<8.0.6
Lfprojects Valkey>=8.1.0<8.1.4
Redis Redis
alpine/redict<7.3.6-r0
7.3.6-r0
alpine/redict<7.3.6-r0
7.3.6-r0
alpine/redict<7.3.6-r0
7.3.6-r0
alpine/redis>=7.0<7.2.11-r0
7.2.11-r0
alpine/redis>=8.0.0<8.0.4-r0
8.0.4-r0
alpine/redis>=8.2.0<8.2.2-r0
8.2.2-r0
alpine/redis>=8.2.0<8.2.2-r0
8.2.2-r0
alpine/valkey<7.2.11-r0
7.2.11-r0
alpine/valkey<7.2.11-r0
7.2.11-r0
alpine/valkey>=8.1.0<8.1.4-r0
8.1.4-r0
alpine/valkey>=8.1.0<8.1.4-r0
8.1.4-r0
alpine/valkey>=8.1.0<8.1.4-r0
8.1.4-r0
debian/redict
7.3.6+ds-1
debian/redis
5:6.0.16-1+deb11u85:7.0.15-1~deb12u65:8.0.2-3+deb13u15:8.0.4-1
debian/valkey
8.1.1+dfsg1-3+deb13u18.1.4+dfsg1-1
debian/redis<5:7.0.15-1~deb12u6
5:7.0.15-1~deb12u6
debian/redis<5:8.0.2-3+deb13u1
5:8.0.2-3+deb13u1
debian/redis<5:8.0.4-1
5:8.0.4-1
debian/valkey<8.1.1+dfsg1-3+deb13u1
8.1.1+dfsg1-3+deb13u1
debian/valkey<8.1.4+dfsg1-1
8.1.4+dfsg1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/redict to a version that resolves this vulnerability.

    Fixed in 7.3.6+ds-1
  2. Upgrade

    Upgrade debian/redis to a version that resolves this vulnerability.

    Fixed in 5:7.0.15-1~deb12u6
  3. Upgrade

    Upgrade debian/redis to a version that resolves this vulnerability.

    Fixed in 5:8.0.2-3+deb13u1
  4. Upgrade

    Upgrade debian/redis to a version that resolves this vulnerability.

    Fixed in 5:8.0.4-1
  5. Upgrade

    Upgrade debian/valkey to a version that resolves this vulnerability.

    Fixed in 8.1.1+dfsg1-3+deb13u1
  6. Upgrade

    Upgrade debian/valkey to a version that resolves this vulnerability.

    Fixed in 8.1.4+dfsg1-1
  7. Upgrade

    Upgrade alpine/redict to a version that resolves this vulnerability.

    Fixed in 7.3.6-r0
  8. Upgrade

    Upgrade alpine/redis to a version that resolves this vulnerability.

    Fixed in 7.2.11-r0
  9. Upgrade

    Upgrade alpine/redis to a version that resolves this vulnerability.

    Fixed in 8.0.4-r0
  10. Upgrade

    Upgrade alpine/redis to a version that resolves this vulnerability.

    Fixed in 8.2.2-r0
  11. Upgrade

    Upgrade alpine/valkey to a version that resolves this vulnerability.

    Fixed in 7.2.11-r0
  12. Upgrade

    Upgrade alpine/valkey to a version that resolves this vulnerability.

    Fixed in 8.1.4-r0
  13. Upgrade

    Upgrade debian/redis to a version that resolves this vulnerability.

    Fixed in 5:6.0.16-1+deb11u8Fixed in 5:7.0.15-1~deb12u6Fixed in 5:8.0.2-3+deb13u1Fixed in 5:8.0.4-1
  14. Upgrade

    Upgrade debian/valkey to a version that resolves this vulnerability.

    Fixed in 8.1.1+dfsg1-3+deb13u1Fixed in 8.1.4+dfsg1-1
  15. Upgrade

    Upgrade Redis to a version that resolves this vulnerability.

    Fixed in 8.2.2
  16. Configuration

    Use ACL to restrict users from executing the EVAL and EVALSHA commands, preventing execution of Lua scripts when patching is not possible.

    Redis ACL EVAL and EVALSHA = restricted

Event History

Oct 3, 2025
CVE Published
via MITRE·07:27 PM
Data Sourced
via MITRE·07:27 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·08:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Oct 6, 2025
Advisory Published
via ZDI·12:00 AM
Data Sourced
via ZDI·12:00 AM
DescriptionSeverityAffected Software
News Published
via BleepingComputer·03:55 PM
Data Sourced
via NVD·06:47 PM
RemedyAffected Software
Updated
via NVD·06:47 PM
Severity
Oct 7, 2025
Exploit Published
via GitHub·06:18 AM
Updated
via NVD·03:40 PM
Severity
Oct 8, 2025
Data Sourced
via Microsoft·01:01 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·01:01 AM
Affected Software
Oct 16, 2025
Updated
via NVD·04:28 PM
Affected Software
Jan 13, 2026
Advisory Published
via F5·10:13 PM
Data Sourced
via F5·10:13 PM
DescriptionSeverityWeaknessAffected Software
Mar 20, 2026
Updated
via NVD·02:16 PM
Affected Software
Nov 3, 2026
Data Sourced
via OSV·06:33 AM
Affected Software
Nov 14, 2026
Updated
via OSV·05:00 PM
Affected Software
Nov 17, 2026
Updated
via OSV·06:31 AM
Affected Software
Nov 24, 2026
Updated
via OSV·05:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-49844?

CVE-2025-49844 is classified as a high severity vulnerability due to its potential for remote code execution.

2

How do I fix CVE-2025-49844?

To fix CVE-2025-49844, upgrade Redis to version 8.2.2 or later.

3

Who is affected by CVE-2025-49844?

CVE-2025-49844 affects Redis versions 8.2.1 and below.

4

What type of attack can be executed through CVE-2025-49844?

CVE-2025-49844 allows an authenticated user to execute a specially crafted Lua script that can lead to remote code execution.

5

What components are involved in the exploitation of CVE-2025-49844?

Exploitation of CVE-2025-49844 involves manipulating the garbage collector, leading to a use-after-free condition.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203