CVE-2025-49844
Redis Lua Use-After-Free may lead to remote code execution
Reported by github_m · Published October 3, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| redict | Alpine | 7.3.6-r0 |
| redis6 | Amazon Linux | 6.2.20-2.amzn2023.0.1 |
| redis | Alpine | 8.2.2-r0, 8.0.4-r0, 7.2.11-r0 |
| valkey | lfprojects | 8.1.4, 8.0.6, 7.2.11 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| redis | redis | < 8.2.2 |
| alpine | redict | 0 |
| amazon:2023 | redis6 | 0 |
| alpine | redis | 0, 0, 0 |
| redis | redis | 0 |
| amazon:2023 | valkey-devel | 0 |
| chainguard | py3-redis | * |
| amazon:2023 | redis6-doc | 0 |
| amazon:2023 | valkey | 0 |
| amazon:2023 | redis6-devel | 0 |
| alpine | valkey | 0, 0 |
Timeline
- Oct 3, 2025 CVE Published
- Oct 4, 2025 EPSS Score (30 in total, the first dated here)
- Oct 7, 2025 VulnCheck XDB Entry (8 in total, the first dated here)
- Dec 23, 2025 VulnCheck KEV Exploitation (22 in total, the first dated here)
- Mar 17, 2026 Security Advisory (105 in total, the first dated here)
- Jun 5, 2026 Coalition ESS Score
- Aug 10, 2026 Distribution Patch (22 in total, the first dated here)
- Nov 5, 2026 PoC Published
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-49844
vulnetix vdb fixes CVE-2025-49844
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-49844/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/redis/redis/security/advisories/GHSA-4789-qfc9-5f9q x_refsource_CONFIRM
- https://github.com/redis/redis/commit/d5728cb5795c966c5b5b1e0f0ac576a7e69af539 x_refsource_MISC
- https://github.com/redis/redis/releases/tag/8.2.2 x_refsource_MISC
- http://www.openwall.com/lists/oss-security/2025/10/07/2 url
- https://github.com/lastvocher/redis-CVE-2025-49844 exploit