Skip to main content

Valkey CVE-2026-82631

| EUVDEUVD-2026-68393 LOW
Buffer Overflow (CWE-119)
2026-08-31 cna@vuldb.com GHSA-vxq6-76gw-j6q5
1.2
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with high-privilege credentials
  2. Delivery
    Block two clients on same key (BLPOP or module)
  3. Exploit
    Trigger key-ready signal via LPUSH or module
  4. Execution
    First client reply callback issues CLIENT KILL on second
  5. Persist
    Freed client memory accessed by live iterator
  6. Impact
    Server process crashes (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, buffer size validation
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires authenticated access with high privileges (PR:H per the CVSS 4.0 vector) to the Valkey server. The triggering condition is having two or more clients blocked simultaneously on the same key, combined with the ability to cause one client's reply callback to free another blocked client - either via CLIENT KILL issued inside a Valkey module reply handler, or via client eviction triggered during reply processing (a related but distinct code path also addressed in the fix's test suite via maxmemory-clients). High attack complexity (AC:H) reflects the need to orchestrate this specific reentrant teardown scenario. Exploitation is limited by: (1) mandatory high-privilege authentication - unauthenticated or low-privilege users cannot trigger this path; (2) requirement for concurrent blocked clients on the same key; (3) the need for control over a module reply callback or the ability to issue CLIENT KILL in the reply context. Default Valkey deployments without custom modules are significantly harder to exploit, though the BLPOP + maxmemory-clients test case in the patch shows the issue exists without modules as well.

Impact

The CVSS 4.0 vector (AV:N/AC:H/AT:N/PR:H/UI:N/VC:N/VI:N/VA:L) yields a base score of 1.2, accurately reflecting the narrow impact profile: network-reachable but requiring high attack complexity and high privileges, with only limited availability (server crash/DoS) and no confidentiality or integrity impact. No EPSS data was provided in the input. The vulnerability is not in CISA KEV, confirming no known active in-the-wild exploitation. A public PoC archive is referenced (E:P in the 4.0 supplemental vector), but the PoC's exploitability is constrained by the need to orchestrate specific module or multi-client interaction - this is not a straightforward crash trigger. The overall real-world risk is low: an attacker must already have high-privilege access to the Valkey instance and must be able to control module reply-callback behavior or issue CLIENT KILL from within a blocked-client reply context. This is far more likely to surface as an accidental crash in complex module deployments than as a deliberate attack path.

Exploit ScenarioDerived

An authenticated high-privilege attacker connects two clients to a Valkey instance and blocks both on the same key using BLPOP or a module-based blocking command. The attacker then pushes a value to the key, signaling it ready. As the server serves the first blocked client, that client's module reply callback executes CLIENT KILL targeting the second blocked client, freeing its memory while the ready-key iterator still holds a pointer to it; the resulting UAF causes a server crash. A public PoC is available at https://github.com/user-attachments/files/30111628/PoC.zip.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAI

Use-after-free in Valkey 9.1.0's blocked-on-keys subsystem allows a high-privilege authenticated attacker to crash the server by triggering a reentrant client teardown during ready-key iteration. When a key becomes ready and multiple clients are unblocked simultaneously, a reply callback for the first-served client can invoke CLIENT KILL on a successor client, freeing that client's memory while the iterator in handleClientsBlockedOnKey still holds a reference to it. A public proof-of-concept exists; the vulnerability is not in CISA KEV, and the high complexity and privilege requirements substantially limit practical exploitation.

RemediationAI

Apply the upstream fix by building from a revision that includes commit b2fb0e13f5b4c8c2fb63dcfc2c37a067a0d6d20b (https://github.com/valkey-io/valkey/commit/b2fb0e13f5b4c8c2fb63dcfc2c37a067a0d6d20b), also tracked in PR #4212 (https://github.com/valkey-io/valkey/pull/4212). No official tagged patched release version is independently confirmed in the input data - the fix exists as a commit and merged PR but a specific release number has not been identified. As a compensating control until a patched build is available, restrict Valkey access at the network level to only trusted, high-privilege operators using firewall rules or Valkey's built-in ACL system; this reduces the attack surface since PR:H is required. Additionally, audit any loaded Valkey modules for reply callbacks that issue CLIENT KILL or call freeClient() against other blocked clients, as this is the specific interaction pattern that triggers the UAF.

Affected VersionsENISA

Valkey 9.1.0

Affected Packages

euvd valkey no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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, Linux Foundation-maintained key-value store forked from Redis following Redis's license change in 2024. Its blocked-on-keys subsystem (src/blocked.c) allows clients to block waiting for a key to become ready - for example, BLPOP waiting on a list push. When signalDeletedKeyAsReady or a module-level signal fires, handleClientsBlockedOnKey iterates the list of waiting clients to serve them in order. Pre-fix, this used a direct listIter that could be invalidated mid-loop: serving one client's reply callback could reenter the server and call freeClient() on a successor in the same list (e.g., via CLIENT KILL issued inside a module reply handler), leaving the iterator pointing at freed memory. The fix snapshots client IDs before iteration and re-resolves each from the live list, skipping any that were freed. Although tagged CWE-119 (bounds violation) and 'Buffer Overflow', this is structurally a CWE-416 Use-After-Free triggered by reentrant list mutation. No CPE string was provided; the affected codebase is github.com/valkey-io/valkey at the 9.1.0 tag.

Know when the next one hits your stack

  • 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

Vendor (vuldb) PRIMARY 1.2 LOW
CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 2.2 LOW

Network-reachable but requires high-privilege authentication and complex race-condition orchestration; impact is limited to server availability with no confidentiality or integrity effect.

3.1 AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:H/AT:N/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (vuldb).

CVSS VectorVendor: vuldb

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

A security flaw has been discovered in valkey-io valkey 9.1.0. The affected element is the function handleClientsBlockedOnKey of the file src/blocked.c of the component Blocked-on-keys Subsystem. The manipulation results in use after free. The attack may be performed from remote. A high complexity level is associated with this attack. The exploitability is described as difficult. The exploit has been released to the public and may be used for attacks. The patch is identified as b2fb0e13f5b4c8c2fb63dcfc2c37a067a0d6d20b. Applying a patch is advised to resolve this issue.

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Medium
growing Redis fork with significant but not yet ubiquitous enterprise adoption
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High

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 LOW
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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