Skip to main content

Valkey CVE-2025-67733

HIGH
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-02-23 security-advisories@github.com
7.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with scripting privileges
  2. Delivery
    Craft Lua triggering error path with null bytes
  3. Exploit
    Submit EVAL on shared connection
  4. Execution
    Null chars bypass output neutralization
  5. Persist
    Inject/desync RESP reply framing
  6. Impact
    Tampered 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv5 – 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)
v4 Jun 30, 2026 - 05:26 cvss changed CVSS 7.1

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.

v3 Jun 30, 2026 - 05:25 cvss changed CVSS 7.1

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.

v2 Jun 30, 2026 - 05:24 cvss changed CVSS 7.1

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.

v1 Mar 12, 2026 - 21:55 CVSS 8.5

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

NVD PRIMARY 7.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
SUSE 8.5 HIGH
AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H
Red Hat 7.1 HIGH

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
High

Lifecycle Timeline

7
Analysis Updated
Jun 30, 2026 - 05:26 vuln.today
v5 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:26 vuln.today
v4 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:25 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:24 vuln.today
v2 - CVSS changed
CVSS changed
Jun 30, 2026 - 03:23 NVD
8.5 (HIGH) 7.1 (HIGH)
Patch released
Mar 18, 2026 - 14:15 nvd
Patch available
CVE Published
Feb 23, 2026 - 20:28 nvd
HIGH 8.5

DescriptionNVD

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Prevalence
Medium
growing Redis-fork datastore, common in cloud/cache stacks but not ubiquitous
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vendor GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:lfprojects:valkey:*:*:*:*:*:*:*:*
cpe:2.3:a:lfprojects:valkey:*:*:*:*:*:*:*:*
cpe:2.3:a:lfprojects:valkey:*:*:*:*:*:*:*:*
cpe:2.3:a:lfprojects:valkey:*:*:*:*:*:*:*:*

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy