Valkey
CVE-2025-67733
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with scripting privileges
-
DeliveryCraft Lua triggering error path with null bytes
-
ExploitSubmit EVAL on shared connection
-
ExecutionNull chars bypass output neutralization
-
PersistInject/desync RESP reply framing
-
ImpactTampered data returned to other users
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | Requires an authenticated Valkey session (CVSS PR:L) that is permitted to execute Lua scripting commands such as EVAL/EVALSHA - the exact trigger is malformed Lua that drives the script error-handling code, which fails to strip null characters before writing to the reply buffer. The data-tampering impact specifically manifests against OTHER consumers sharing the SAME client connection, so the meaningful-impact condition is a multiplexed/shared-connection deployment (e.g., connection pooling across users or multi-tenant access). Limiting factors: the attacker cannot be fully unauthenticated (scripting privileges are needed), no code execution or data disclosure results (C:N), and environments where scripting is disabled via ACL or where each user has an isolated connection sharply reduce real-world exploitability. |
| Impact | Signals point to a moderate, not critical, real-world risk. The CVSS 3.1 base score is 7.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H): network-reachable and low-complexity, but it explicitly requires privileges (PR:L) - the attacker must already be able to issue scripting commands - and yields only low integrity impact with no confidentiality loss. The A:H availability rating sits somewhat uneasily against a description centered on data tampering rather than denial of service; treat the high-availability weighting as the vendor's worst-case framing and verify against your deployment. EPSS is extremely low (0.02%), there is no KEV listing and no POC referenced, so there is no evidence of opportunistic mass exploitation. Note the input 'RCE' tag is contradicted by the CVSS impact metrics (C:N/I:L, no code-execution indicator) and the description (data injection, not arbitrary code execution) - the tag appears inaccurate and should not drive prioritization. Net: patch on a normal maintenance cadence; it is not an emergency unless untrusted parties hold scripting privileges on shared connections. |
| Exploit ScenarioDerived | An attacker who holds a low-privileged Valkey account with scripting rights (for example, a tenant in a shared cache or a compromised application credential) submits a crafted EVAL command whose Lua error path embeds null bytes. The malformed bytes desynchronize the RESP reply framing on that connection, so subsequent legitimate responses to other users are corrupted or replaced with attacker-influenced content. No special user interaction is needed and complexity is low, but the attacker must already be authenticated and able to run scripts; no public POC is currently identified. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv5 – Jun 30, 2026
Response-stream injection in Valkey (the Redis fork) lets an authenticated user abuse Lua scripting commands to smuggle arbitrary bytes into the reply stream, corrupting or tampering with data returned to other users sharing the same connection. The flaw stems from the Lua script error-handling path mishandling null characters. It affects all releases prior to 9.0.2, 8.1.6, 8.0.7, and 7.2.12. No public exploit identified at time of analysis; EPSS exploitation probability is negligible (0.02%, 4th percentile) and the issue is not in CISA KEV.
Earlier versions of this analysis (4)
Response-stream injection in Valkey (the open-source Redis fork) lets an authenticated user with scripting privileges abuse Lua error handling to inject arbitrary bytes into the reply stream, allowing tampered or corrupted data to be returned to other users sharing the same connection. The flaw stems from the Lua error-handling code failing to handle null characters, and affects all releases prior to 9.0.2, 8.1.6, 8.0.7, and 7.2.12. EPSS is very low (0.02%, 4th percentile) and there is no public exploit identified at time of analysis; a vendor patch is available.
Response-stream injection in Valkey (the Redis fork) lets an authenticated user with scripting privileges craft Lua scripts whose error output contains null characters, corrupting the protocol response stream and returning tampered or attacker-injected data to other requests multiplexed over the same connection. Affected releases are all versions prior to 9.0.2, 8.1.6, 8.0.7, and 7.2.12, which contain the fix. There is no public exploit identified at time of analysis, and EPSS is very low (0.02%, 4th percentile); despite the vendor 'RCE' tag, the described mechanism is data tampering rather than code execution.
Response-stream data tampering in Valkey (the Redis-fork distributed key-value store) lets an authenticated client abuse Lua scripting commands to inject arbitrary bytes into the reply stream of a shared connection, corrupting or spoofing data returned to other users and potentially destabilizing the server. The root cause is error-handling code for Lua scripts that fails to handle embedded null characters. Fixed in 9.0.2, 8.1.6, 8.0.7, and 7.2.12; a vendor patch is available, EPSS is very low (0.02%), and there is no public exploit identified at time of analysis.
Valkey is a distributed key-value database. [CVSS 8.5 HIGH]
RemediationAI
Vendor-released patch: upgrade Valkey to 9.0.2, 8.1.6, 8.0.7, or 7.2.12 (pick the fixed release matching your branch). For OS-packaged installs, apply your distribution's update: Ubuntu USN-8106-1 (https://ubuntu.com/security/notices/USN-8106-1), Red Hat RHSA-2026:3443 / RHSA-2026:5445 / RHSA-2026:3507 (https://access.redhat.com/errata/RHSA-2026:3443), or SUSE SUSE-SU-2026:0685 / SUSE-SU-2026:0848 (https://www.suse.com/support/update/SUSE-SU-2026:0685/); refer to the upstream advisory GHSA-p876-p7q5-hv2m for details. If you cannot patch immediately, the most effective compensating control is to restrict who can run scripting commands: use Valkey ACLs to deny EVAL/EVALSHA/FUNCTION (e.g., '-eval -evalsha -script -function' or category '-@scripting') to untrusted accounts, accepting that any application logic relying on server-side Lua will break. Avoid sharing a single authenticated connection across mutually distrusting tenants, since the bug corrupts replies among consumers on the same connection. Continue enforcing 'requirepass'/ACL authentication and network-level access restriction (bind to trusted interfaces, firewall the Valkey port) to keep scripting privileges out of untrusted hands.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Valkey is an open-source, high-performance distributed in-memory key-value datastore (a community fork of Redis) maintained under the Linux Foundation (CPE vendor 'lfprojects'). It embeds a Lua interpreter exposed through scripting commands such as EVAL/EVALSHA, allowing server-side script execution. The root cause is classified as CWE-74 (Improper Neutralization of Special Elements in Output - Injection): the error-handling code for Lua scripts fails to neutralize embedded null (\0) characters before writing error/result content back into the RESP (Redis Serialization Protocol) reply buffer. Because Valkey multiplexes responses on a single client connection, malformed length/delimiter framing introduced by an unescaped null lets script output bleed into or desynchronize replies destined for other consumers on that connection.
Know when Valkey gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
Network-reachable and low-complexity but requires a scripting-capable authenticated account (PR:L); impact is data tampering across a shared connection (I:L) with no confidentiality loss and at most minor availability disruption, so A:L not A:H.
AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
7DescriptionNVD
Valkey is a distributed key-value database. Prior to versions 9.0.2, 8.1.6, 8.0.7, and 7.2.12, a malicious user can use scripting commands to inject arbitrary information into the response stream for the given client, potentially corrupting or returning tampered data to other users on the same connection. The error handling code for lua scripts does not properly handle null characters. Versions 9.0.2, 8.1.6, 8.0.7, and 7.2.12 fix the issue.
Executive ViewAI
Valkey (Redis fork) versions prior to 9.0.2, 8.1.6, 8.0.7, and 7.2.12 contain a response-stream injection vulnerability in Lua scripting that allows authenticated users to corrupt or intercept cached data returned to other users sharing the same connection. Organizations using Valkey for shared caching infrastructure face data integrity and confidentiality risks if internal users or compromised service accounts can execute Lua scripts.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)NVD
UAF in Redis 8.2.1 via crafted Lua scripts by authenticated users. EPSS 12.4%. Patch available.
Out-of-bounds read in Valkey's cluster slot-migration RDB loader allows a network-positioned attacker to crash affected
Use-after-free in Valkey's RESTORE command allows a low-privileged remote attacker to potentially execute arbitrary code
Use-after-free in Valkey's TLS connection handler allows an authenticated remote attacker to crash the server or potenti
Redis is an open source, in-memory database that persists on disk. Rated high severity (CVSS 7.5), this vulnerability is
Denial of service in Valkey 9.0.0 through 9.0.2 allows unauthenticated network attackers to crash the server by exploiti
Out-of-bounds read in Valkey clusterbus port processing allows network-adjacent attackers to crash affected systems by s
Double-free memory corruption in Valkey 9.1.0's Module Timer Subsystem allows a high-privileged remote attacker to crash
Out-of-bounds read in Valkey's `kvstoreGetHashtable` function (src/kvstore.c) allows an attacker who can supply a crafte
Vendor StatusVendor
SUSE
Severity: High| Product | Status |
|---|---|
| SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Module for Server Applications 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Fixed |
| openSUSE Leap 15.6 | Fixed |
| openSUSE Tumbleweed | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 16.0 | Fixed |
| SUSE Linux Enterprise Server 16.1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Fixed |
| openSUSE Leap 15.6 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Fixed |
| private-registry/harbor-valkey suse/valkey | Fixed |
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB