Skip to main content
EPSS 0.7%top 46%

Valkey: Redis: Authenticated users can execute LUA scripts as a different user (CVE-2025-46818)

0
High
Published: 10/08/2025 (10/08/2025, 08:52:37 UTC)
Source: GCVE Database
Product: valkey

Description

Redis versions 7.2.11 and earlier, as well as certain 8.x versions before 8.2.2, contain a vulnerability that allows authenticated users to execute Lua scripts in the context of another user. This issue affects all Redis versions with Lua scripting enabled. The vulnerability is fixed in Redis version 8.2.2. A workaround is to restrict Lua script execution using ACLs by blocking the EVAL and FUNCTION command families.

Affected software

Bitnamimore threats →ghsa
valkey
pkg:bitnami/valkey
Affected versions
<7.2.11>=8.0.0 <8.0.6>=8.1.0 <8.1.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 13:19:49 UTC

Technical Analysis

Redis is an open source in-memory database that supports Lua scripting. Versions <7.2.11, >=8.0.0 <8.0.6, and >=8.1.0 <8.1.4 allow an authenticated user to craft Lua scripts that manipulate Lua objects and potentially execute code as a different user. This vulnerability affects all Redis versions with Lua scripting enabled. The issue is resolved in version 8.2.2. Mitigation without patching involves using ACLs to block Lua script execution commands (EVAL and FUNCTION).

Potential Impact

An authenticated user can exploit this vulnerability to execute Lua scripts under the context of another user, potentially leading to unauthorized code execution and privilege escalation within the Redis environment.

Mitigation Recommendations

A patch is available in Redis version 8.2.2 and should be applied to remediate this vulnerability. Until patching, administrators can mitigate the risk by using ACLs to restrict execution of Lua scripts by blocking the EVAL and FUNCTION command families. This workaround prevents exploitation without requiring an immediate patch of the redis-server executable.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
BIT-valkey-2025-46818
Osv Schema Version
1.6.2
Aliases
["CVE-2025-46818"]
Ecosystems
["Bitnami"]
Database Specific Severity
High

Threat ID: 6aa005b3acd9273b49ab58b1

Added to database: 09/08/2026, 12:55:15 UTC

Last enriched: 09/08/2026, 13:19:49 UTC

Last updated: 10/23/2026, 15:10:09 UTC

Views: 37

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses