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

Published Oct 3, 2025
·
Updated

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.

Other sources

Redis: Authenticated users can execute LUA scripts as a different user

Microsoft

Affected Software

8 affected componentsFixes available
Redis redis<=8.2.1
Microsoft cbl2 redis 6.2.20-1
Microsoft azl3 valkey 8.0.4-1
Redis redis<6.2.20
Redis redis>=7.0<7.2.11
Redis redis>=7.4.0<7.4.6
Redis redis>=8.0.0<8.0.4
Redis redis>=8.2.0<8.2.2

Event History

Oct 3, 2025
CVE Published
via MITRE·06:38 PM
Data Sourced
via MITRE·06:38 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·07:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Oct 10, 2025
Data Sourced
via Microsoft·01:37 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:37 AM
Affected Software
Updated
via Microsoft·01:37 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-46818?

CVE-2025-46818 has a high severity rating due to the potential for authenticated users to execute arbitrary code.

2

How do I fix CVE-2025-46818?

To mitigate CVE-2025-46818, upgrade Redis to version 8.2.2 or higher.

3

Who is affected by CVE-2025-46818?

CVE-2025-46818 affects all Redis versions up to and including 8.2.1.

4

What type of vulnerability is CVE-2025-46818?

CVE-2025-46818 is a code execution vulnerability that can be exploited through crafted Lua scripts.

5

Can CVE-2025-46818 be exploited remotely?

CVE-2025-46818 requires authentication, but it can potentially be exploited by any authenticated user to run code in the context of another user.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203