CVE-2025-46818: Redis: Authenticated users can execute LUA scripts as a different user
Vulnerability summary
CVE-2025-46818 is a high (CVSS 7.3) Improper Control of Generation of Code vulnerability in redis. EPSS estimates a 0.89% chance of exploitation in the next 30 days, higher than 60.5% of scored vulnerabilities.
Not severe (CVSS 6, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 24 · Related 14Timeline
- 03-10-2025PublishedVulnerability first disclosed.
- 03-10-2025Last modifiedVulnerability information updated.
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 different LUA objects and potentially run their own code in the context of another user. The problem exists in all versions of Redis with LUA scripting. This issue is fixed in version 8.2.2. A workaround to mitigate the problem without patching the redis-server executable is to prevent users from executing LUA scripts. This can be done using ACL to block a script by restricting both the EVAL and FUNCTION command families.
CVSS metrics
6 scores · 6 sources · 1 version- CVE.orgCNA6.0MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:NDiffers
- OSV · AlpineEcosystem advisory · calculated7.3HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.3HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.3HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated6.0MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:NDiffers
EPSS trend
Probability
0.89%
Chance of exploitation in the next 30 days
Percentile
61%
Versus all other CVEs
30-day change
Increase +0.15 pp
From 0.74% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard5 products
- py3-redisAll versions (No fix recorded)
- py3.10-redisAll versions (No fix recorded)
- py3.11-redisAll versions (No fix recorded)
- py3.12-redisAll versions (No fix recorded)
- py3.13-redisAll versions (No fix recorded)
Alpine3 products
- redict< 7.3.6-r0
- redis≥ 7.0, < 8.0.4-r0 | ≥ 7.0, < 8.2.2-r0 | ≥ 7.0, < 7.2.11-r0 | ≥ 8.0.0, < 8.0.4-r0 | ≥ 8.2.0, < 8.2.2-r0
- valkey< 7.2.11-r0 | < 8.1.4-r0
Debian3 products
- redict< 7.3.6+ds-1
- redis< 5:7.0.15-1~deb12u6 | < 5:8.0.2-3+deb13u1 | < 5:8.0.4-1
- valkey< 8.1.1+dfsg1-3+deb13u1 | < 8.1.4+dfsg1-1
Ubuntu3 products
- redictAll versions (No fix recorded)
- redisAll versions (No fix recorded)
- valkey< 7.2.11+dfsg1-0ubuntu0.2 | < 8.1.4+dfsg1-0ubuntu0.2
Redis1 product
- redis< 8.2.2 | < 6.2.20 | ≥ 7.0, < 7.2.11 | ≥ 7.4.0, < 7.4.6 | ≥ 8.0.0, < 8.0.4 | ≥ 8.2.0, < 8.2.2
5 vendors · 15 products
References
11 links- github.com/redis/redis/security/advisories/GHSA-qrv7-wcrx-q5jpX Refsource CONFIRMREPORTAdvisoryThird Party Advisory
- github.com/redis/redis/commit/45eac0262028c771b6f5307372814b75f49f7a9eX Refsource MISCREPORTFIXPatch