Vulnerability record · CVE-2025-49844 · published 3 October 2025
CVE-2025-49844: Redis Lua scripting use-after-free enables remote code execution
Redis · Redis
Redis versions 8.2.1 and below contain a use-after-free in the Lua scripting engine. An authenticated user can supply a crafted Lua script that manipulates the garbage collector to trigger the flaw, potentially achieving remote code execution. The issue affects all Redis versions with Lua scripting and is fixed in 8.2.2.
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Automated analysis
critical priorityCVSS 9.9 with network reachability, low privileges, scope change, and high EPSS make this a top remediation priority despite no KEV listing.
What it is
Redis versions 8.2.1 and below contain a use-after-free in the Lua scripting engine. An authenticated user can supply a crafted Lua script that manipulates the garbage collector to trigger the flaw, potentially achieving remote code execution. The issue affects all Redis versions with Lua scripting and is fixed in 8.2.2.
Impact
An attacker with valid credentials can corrupt memory and potentially execute arbitrary code in the context of the redis-server process. This can lead to full compromise of the Redis instance and any data or host access it holds.
Attack surface
Reachable over the network via the Redis protocol by an authenticated user who can run EVAL or EVALSHA; no user interaction is required. The CVSS vector confirms network access, low privileges, and no UI.
Exploitation
Not listed in CISA KEV, but EPSS is very high (0.82294, 99.6th percentile), indicating elevated likelihood of exploitation. A public GitHub repository referencing the CVE exists, though no exploit tags are present in the references.
What to do
- Upgrade redis-server to version 8.2.2 or later.
- If patching is not immediately possible, use ACLs to restrict EVAL and EVALSHA commands for all non-administrative users.
- Disable or remove Lua scripting entirely where it is not required.
- Restrict network access to Redis instances to trusted hosts and require strong authentication.
- Monitor for and rotate any credentials that may have been exposed to untrusted users.
Detection
- Audit Redis ACLs and command usage to identify accounts with EVAL or EVALSHA permissions.
- Monitor Redis logs and slowlog for unusual or repeated Lua script executions.
- Watch for unexpected process behavior or outbound connections from redis-server hosts.
- Track Redis version inventory to confirm 8.2.2+ is deployed.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/redis/redis/commit/d5728cb5795c966c5b5b1e0f0ac576a7e69af539 | Patch |
| https://github.com/redis/redis/releases/tag/8.2.2 | Release Notes |
| https://github.com/redis/redis/security/advisories/GHSA-4789-qfc9-5f9q | Third Party Advisory |
| http://www.openwall.com/lists/oss-security/2025/10/07/2 | Mailing ListThird Party Advisory |
| https://github.com/lastvocher/redis-CVE-2025-49844 |
Track CVE-2025-49844 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2025-49844), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.