Skip to content
Noroxi
CVE-2025-49844· NVD / CVE Program· CNA GitHub_M

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

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.

CriticalCVSS 9.9 · v3.1—Proof of concept Fix available
Published
Oct 3, 2025
Updated
Jun 17, 2026
EPSS
82.3% · 100th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

64

This week

Don’t wait for the next maintenance window.

CVSS
39 / 40 · 9.9 / 10
CISA KEV
0 / 30 · Not listed
EPSS
25 / 30 · 82.3%

CISA SSVC decision

Exploitation
proof of concept
Automatable
no
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
9.9
CNA · GitHub_M
10.0
0.1 point gap

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
redisredis
lfprojectsvalkey

Using redis? Add it to your stack and be the first to know about CVEs like this one. (Redis)

Add to my stack

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • redis redisbefore 6.2.20
  • redis redis7.0 and later · before 7.2.11
  • redis redis7.4.0 and later · before 7.4.6
  • redis redis8.0.0 and later · before 8.0.4
  • redis redis8.2.0 and later · before 8.2.2

Versions reported by the vendor

Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.

  • redis redis

    • < 8.2.2affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:10valkeybefore 8.0.6-2.el10_18.0.6-2.el10_1
AlmaLinux:10valkeybefore 8.0.6-1.el10_08.0.6-1.el10_0
AlmaLinux:10valkey-develbefore 8.0.6-2.el10_18.0.6-2.el10_1
AlmaLinux:10valkey-develbefore 8.0.6-1.el10_08.0.6-1.el10_0
AlmaLinux:8redisbefore 6.2.20-1.module_el8.10.0+4056+739731b06.2.20-1.module_el8.10.0+4056+739731b0
AlmaLinux:8redis-develbefore 6.2.20-1.module_el8.10.0+4056+739731b06.2.20-1.module_el8.10.0+4056+739731b0
AlmaLinux:8redis-docbefore 6.2.20-1.module_el8.10.0+4056+739731b06.2.20-1.module_el8.10.0+4056+739731b0
AlmaLinux:9redisbefore 6.2.20-2.el9_76.2.20-2.el9_7
AlmaLinux:9redisbefore 7.2.11-1.module_el9.6.0+188+92104ce87.2.11-1.module_el9.6.0+188+92104ce8
AlmaLinux:9redisbefore 6.2.20-1.el9_66.2.20-1.el9_6
AlmaLinux:9redis-develbefore 6.2.20-2.el9_76.2.20-2.el9_7
AlmaLinux:9redis-develbefore 7.2.11-1.module_el9.6.0+188+92104ce87.2.11-1.module_el9.6.0+188+92104ce8
AlmaLinux:9redis-develbefore 6.2.20-1.el9_66.2.20-1.el9_6
AlmaLinux:9redis-docbefore 6.2.20-2.el9_76.2.20-2.el9_7
AlmaLinux:9redis-docbefore 6.2.20-1.el9_66.2.20-1.el9_6
AlmaLinux:9redis-docbefore 7.2.11-1.module_el9.6.0+188+92104ce87.2.11-1.module_el9.6.0+188+92104ce8
AlmaLinux:9valkeybefore 8.0.6-2.el9_78.0.6-2.el9_7
AlmaLinux:9valkey-develbefore 8.0.6-2.el9_78.0.6-2.el9_7
Alpine:v3.20valkeyfrom 8.0.0 · before 7.2.11-r07.2.11-r0
Alpine:v3.22valkeyfrom 8.0.0 · before 8.1.4-r08.1.4-r0
Debian:11redisbefore 5:6.0.16-1+deb11u85:6.0.16-1+deb11u8
Debian:12redisbefore 5:7.0.15-1~deb12u65:7.0.15-1~deb12u6
Debian:13redisbefore 5:8.0.2-3+deb13u15:8.0.2-3+deb13u1
Debian:13valkeybefore 8.1.1+dfsg1-3+deb13u18.1.1+dfsg1-3+deb13u1

+96

Other highest-scoring records for the same primary product.

  • CVE-2022-0543It was discovered, that redis, a persistent key-value database, due to a packaging issue, is prone to a (Debian-specific) Lua sandbox escapeKEV
    100Now
  • CVE-2023-36824Heap overflow in COMMAND GETKEYS and ACL evaluation in Redis
    58Plan
  • CVE-2022-24834Heap overflow issue with the Lua cjson library used by Redis
    47Plan
  • CVE-2023-22458Integer overflow in multiple Redis commands can lead to denial-of-service
    44Plan
  • CVE-2024-46981Redis' Lua library commands may lead to remote code execution
    41Plan
  • CVE-2022-36021Redis string pattern matching can be abused to achieve Denial of Service
    40Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
redis redis8.2.2 · descriptionVendor (CNA)
AlmaLinux:redis6.2.20-1.el9_6 · AlmaLinux:9Package registry (OSV)
AlmaLinux:redis-devel6.2.20-1.el9_6 · AlmaLinux:9Package registry (OSV)
AlmaLinux:redis-doc6.2.20-1.el9_6 · AlmaLinux:9Package registry (OSV)
AlmaLinux:valkey8.0.6-1.el10_0 · AlmaLinux:10Package registry (OSV)
AlmaLinux:valkey-devel8.0.6-1.el10_0 · AlmaLinux:10Package registry (OSV)
Alpine:valkey7.2.11-r0 · Alpine:v3.20Package registry (OSV)
Debian:redict7.3.6+ds-1 · Debian:14Package registry (OSV)
Debian:redis5:7.0.15-1~deb12u6 · Debian:12Package registry (OSV)
Debian:valkey8.1.1+dfsg1-3+deb13u1 · Debian:13Package registry (OSV)
openSUSE:redis7.2.4-150600.3.18.1 · openSUSE:Leap 15.6Package registry (OSV)
openSUSE:redis77.0.8-150600.8.19.1 · openSUSE:Leap 15.6Package registry (OSV)
openSUSE:valkey8.0.6-150600.13.17.1 · openSUSE:Leap 15.6Package registry (OSV)
Red Hat:redis0:7.0.12-2.module+el9.4.0+23556+1eb46139.6 · Red Hat:rhel_eus:9.4::appstreamPackage registry (OSV)
Red Hat:redis-debuginfo0:7.0.12-2.module+el9.4.0+23556+1eb46139.6 · Red Hat:rhel_eus:9.4::appstreamPackage registry (OSV)
Red Hat:redis-debugsource0:7.0.12-2.module+el9.4.0+23556+1eb46139.6 · Red Hat:rhel_eus:9.4::appstreamPackage registry (OSV)
Red Hat:redis-devel0:7.0.12-2.module+el9.4.0+23556+1eb46139.6 · Red Hat:rhel_eus:9.4::appstreamPackage registry (OSV)
Red Hat:redis-doc0:7.0.12-2.module+el9.4.0+23556+1eb46139.6 · Red Hat:rhel_eus:9.4::appstreamPackage registry (OSV)
Red Hat:valkey0:8.0.6-1.el10_0 · Red Hat:enterprise_linux:10.0Package registry (OSV)
Red Hat:valkey-debuginfo0:8.0.6-1.el10_0 · Red Hat:enterprise_linux:10.0Package registry (OSV)
Red Hat:valkey-debugsource0:8.0.6-1.el10_0 · Red Hat:enterprise_linux:10.0Package registry (OSV)
Red Hat:valkey-devel0:8.0.6-1.el10_0 · Red Hat:enterprise_linux:10.0Package registry (OSV)
Rocky Linux:redis0:6.2.20-1.el9_6 · Rocky Linux:9Package registry (OSV)
Rocky Linux:valkey0:8.0.6-1.el10_0 · Rocky Linux:10Package registry (OSV)
SUSE:redis7.2.4-150600.3.18.1 · SUSE:Linux Enterprise Module for Server Applications 15 SP6Package registry (OSV)
SUSE:redis77.0.8-150600.8.19.1 · SUSE:Linux Enterprise Module for Server Applications 15 SP6Package registry (OSV)
SUSE:valkey8.0.6-150600.13.17.1 · SUSE:Linux Enterprise Module for Server Applications 15 SP6Package registry (OSV)

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Nuclei detection template ×1
  • Proof-of-concept repository on GitHub ×19

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Nuclei detection templateNuclei template CVE-2025-49844 —
Proof-of-concept repository on GitHubstars:12019-04-13
Proof-of-concept repository on GitHubstars:22022-04-06
Proof-of-concept repository on GitHubstars:02025-10-07
Proof-of-concept repository on GitHubstars:662025-10-07
Proof-of-concept repository on GitHubstars:3442025-10-07
Proof-of-concept repository on GitHubstars:142025-10-07
Proof-of-concept repository on GitHubstars:02025-10-08
Proof-of-concept repository on GitHubstars:62025-10-08
Proof-of-concept repository on GitHubstars:22025-10-09
Proof-of-concept repository on GitHubstars:12025-10-09
Proof-of-concept repository on GitHubstars:12025-10-11

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. First PoC-2366 d
  2. Published
  3. TodaySep 29, 2026+361 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2024-46981270 days apartRedis' Lua library commands may lead to remote code execution
    41Plan
  • CVE-2026-23479214 days apartredis-server use-after-free in unblock client flow may allow remote code execution
    30Monitor
  • CVE-2026-81934328 days apartRedis TLS pending-data list use-after-free
    30Monitor
  • CVE-2026-23631214 days apartredis-server Lua use-after-free may allow remote code execution
    25Monitor

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted

Impact can extend beyond the vulnerable component (scope changes).

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality impact
High
Integrity impact
High
Availability impact
High

Weakness class (CWE)

CWE-416 · Use After Free

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

nvd-primary

Root cause

After a memory region is freed, another reference pointing to it is still used. By then, the same region may have been allocated for different data.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

c
free(dev->buf);/* ... another thread is still running ... */process(dev->buf);

Fixed

c
lock(&dev->lock);free(dev->buf);dev->buf = NULL;unlock(&dev->lock);

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records