Cyber Resilience

CVE-2025-46818

Redis ≤ 6.2.20

Published
03 October 2025
Modified
27 January 2026
Patch / advisory
CVSS Score v3.1 6.0
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N
EPSS Score 0.0070 50th percentile
Risk Priority 53 floored blend · peak EPSS

Summary

CVE-2025-46818 is a medium-severity Code Injection (CWE-94) vulnerability in Redis Redis. Its CVSS base score is 6.0 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Command and Scripting Interpreter (T1059); ranked at the 50th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

Redis is an open source in-memory database that persists on disk. CVE-2025-46818 affects all versions through 8.2.1 that support Lua scripting and stems from insufficient isolation between Lua objects. An authenticated user can supply a crafted Lua script that manipulates these objects, enabling execution of attacker-controlled code in the security context of another user. The issue is tracked under CWE-94 and carries a CVSS 3.1 score of 6.0.

An attacker who already possesses an authenticated Redis session can therefore leverage the Lua environment to escalate privileges across user contexts without requiring additional network access or user interaction beyond the initial authentication.

The official fix is included in Redis 8.2.2. The project advisory and release notes also describe a workaround that uses ACL rules to block the EVAL and FUNCTION command families, thereby preventing any Lua script execution without modifying the server binary.

EPSS for the vulnerability rose from a low baseline to a peak of 0.0710 on 2026-02-23 before receding to the current value of 0.0324, indicating measurable post-disclosure exploitation interest.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1059 Command and Scripting Interpreter Execution
Adversaries may abuse command and script interpreters to execute commands, scripts, or binaries.
T1059.001 PowerShell Execution
Adversaries may abuse PowerShell commands and scripts for execution.
T1059.002 AppleScript Execution
Adversaries may abuse AppleScript for execution.
T1059.004 Unix Shell Execution
Adversaries may abuse Unix shell commands and scripts for execution.
T1059.005 Visual Basic Execution
Adversaries may abuse Visual Basic (VB) for execution.
T1059.006 Python Execution
Adversaries may abuse Python commands and scripts for execution.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-28425Same product: Redis Redis
CVE-2025-46817Same product: Redis Redis
CVE-2023-22458Same product: Redis Redis
CVE-2023-25155Same product: Redis Redis
CVE-2026-23479Same product: Redis Redis
CVE-2026-25243Same product: Redis Redis
CVE-2024-31227Same product: Redis Redis
CVE-2026-23631Same product: Redis Redis
CVE-2024-51741Same product: Redis Redis
CVE-2025-32023Same product: Redis Redis

Affected Assets

redis
redis
≤ 6.2.20 · 7.0 — 7.2.11 · 7.4.0 — 7.4.6

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.3.1

Mitigating Controls (NIST 800-53 r5) AI

Developer testing and evaluation finds code paths that accept and execute externally influenced strings.

Input validation directly stops untrusted data from being used to construct executable code without neutralization.

Least privilege limits the damage an injected code fragment can perform once executed.

Requiring documented secure development standards and tools enforces use of safe code-generation APIs and escaping.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

PR.PS-06's SDLC practices directly target injection flaws via secure coding and testing (mostly), yet as a single broad outcome it leaves many code-generation specifics unaddressed (partial).

PR.DS-10 none match
prevents

PR.DS-10 protects runtime data confidentiality/integrity but has no bearing on neutralizing externally influenced input during code generation, so neither direction shows any preventive effect.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

prevents

Banning unapproved code samples and unauthenticated web services, combined with secure-coding standards and SAST, prevents the dynamic generation or inclusion of attacker-supplied code.

none

Controls that restrict unauthorized or malicious code from being introduced via external networks or removable media limit opportunities for an attacker to inject and execute arbitrary code.

References