Vulnerability DatabaseCVE-2026-130822

CVE-2026-130822: 
Redis vulnerability analysis and mitigation

Overview

CVE-2026-130822 is a use-after-free (CWE-416) vulnerability in Valkey, an open-source in-memory data store, affecting versions before 7.2.16, 8.0.x before 8.0.13, 8.1.x before 8.1.12, 9.0.x before 9.0.8, 9.1.x before 9.1.4, and 9.2.0 release candidates. The flaw was discovered by nadav-levanoni during fuzz/soak testing and reported on November 16, 2026, with the security advisory published on November 19, 2026 and CVE assigned on November 24, 2026. It only affects servers where client eviction is explicitly enabled (maxmemory-clients is not 0); the default configuration is not vulnerable. The vulnerability carries a CVSS v3.1 base score of 7.5 (High) (GitHub Advisory, Red Hat Bugzilla).

Technical details

The root cause is a use-after-free (CWE-416) in the evictClients() function within Valkey's src/networking.c. When a client (X) executes a command that makes a key ready for blocked clients, processCommand() calls handleClientsBlockedOnKeys(), which re-executes each blocked client's command via processCommandAndResetClient(). During this re-execution, processCommand() invokes evictClients() with server.current_client pointing to the blocked client (Y), not the original client (X). If client memory exceeds maxmemory-clients at this point, evictClients() can select and immediately free client X — which is still on the call stack — because freeClient() only defers freeing for server.current_client (Y). After the blocked client's command completes, server.current_client is restored to the now-freed X, and subsequent calls to commandProcessed(), updateClientMemUsageAndBucket(), and beforeNextClient() operate on freed memory, resulting in a reliable server crash (assertion failure 'c->conn' is not true or SIGSEGV in resetClient()). The fix introduces a processing_command flag on the client struct; evictClients() skips any client with this flag set unless it is server.current_client (GitHub Issue, GitHub PR, GitHub Advisory).

Impact

Successful exploitation allows an authenticated attacker with write access to any key to reliably crash the Valkey server process, resulting in a complete denial of service. The CVSS score also reflects potential high confidentiality and integrity impact, consistent with the memory corruption nature of use-after-free bugs, which can theoretically be leveraged for arbitrary code execution in some scenarios. The attacker does not need to control or own the blocked clients — any clients blocked on the target key (e.g., via BLPOP, BLMPOP, BZPOPMIN, or XREAD BLOCK) can serve as unwitting participants in triggering the crash (GitHub Advisory, Red Hat Bugzilla).

Exploitability

There is no public proof-of-concept exploit code and no evidence of in-the-wild exploitation as of the time of publication (Feedly). The NVD SSVC assessment classifies exploitation as "none" and the attack as non-automatable, reflecting the specific preconditions required: client eviction must be enabled, at least two clients must be blocked on the same key, and the executing client must be the largest eviction candidate. The EPSS score is approximately 0.76%, indicating a low probability of exploitation in the near term. No threat actor attribution or CISA KEV catalog listing has been identified (GitHub Advisory).

Exploitation steps

  1. Precondition check: Confirm the target Valkey server has maxmemory-clients set to a non-zero value (client eviction enabled). Servers with the default maxmemory-clients 0 are not vulnerable.
  2. Authenticate: Obtain valid credentials for the Valkey server with at least write access to one or more keys.
  3. Set up blocked clients: Using two or more separate client connections, issue blocking commands (e.g., BLMPOP 0 1 mylist LEFT COUNT 20000) on a target key (e.g., mylist) so those clients block waiting for data.
  4. Inflate executing client memory: Using the attacker-controlled client (X), issue repeated commands (e.g., GET on a large key) without reading the replies, causing X's unread output buffer to grow until it becomes the largest client by memory usage.
  5. Set memory limit: Configure maxmemory-clients to a value just above the current total client memory, so the limit will be exceeded once the first blocked client's reply is added.
  6. Trigger the vulnerability: From client X, write to the key the blocked clients are waiting on (e.g., RENAME src mylist or LPUSH mylist value). This makes the key ready, causing handleClientsBlockedOnKeys() to serve the blocked clients. As the first blocked client's large reply is added to total memory, the limit is exceeded. When the second blocked client's command re-executes and calls evictClients(), client X (the largest) is freed while still executing, triggering the use-after-free.
  7. Result: The server crashes with an assertion failure ('c->conn' is not true) or SIGSEGV, achieving denial of service (GitHub Issue, GitHub Advisory).

Indicators of compromise

  • Logs: Valkey server log entries containing Evicting client: immediately followed by a crash log starting with === VALKEY BUG REPORT START ===; assertion failure messages such as server.c: 'c->conn' is not true in clientEvictionAllowed() or updateClientMemUsageAndBucket().
  • Process: Unexpected termination of the valkey-server process with signal 11 (SIGSEGV) or an assertion failure; crash stack traces referencing evictClients, processCommandAndResetClient, handleClientsBlockedOnKeys, beforeNextClient, or resetClient.
  • Network: Multiple client connections to the Valkey server issuing blocking commands (BLMPOP, BLPOP, BZPOPMIN, XREAD BLOCK) on the same key, combined with a separate connection accumulating large unread output buffers and then writing to that key.
  • Configuration: maxmemory-clients set to a non-zero value in the server configuration, which is a prerequisite for the vulnerable code path to be reachable (GitHub Issue, GitHub Advisory).

Mitigation and workarounds

Upgrade Valkey to one of the patched versions: 7.2.16, 8.0.13, 8.1.12, 9.0.8, 9.1.4, or 9.2.0 (stable release). As an immediate temporary workaround, set maxmemory-clients 0 in the Valkey configuration to disable client eviction entirely — this prevents the vulnerable code path from being triggered. If client eviction is required and patching is delayed, use Valkey ACLs to restrict untrusted users from writing to keys that other clients block on, and prevent those users from issuing blocking commands (BLPOP, BRPOP, BLMOVE, BRPOPLPUSH, BLMPOP, BZPOPMIN, BZPOPMAX, BZMPOP, XREAD/XREADGROUP with BLOCK). Ensure client-output-buffer-limit and maxmemory are configured to bound client memory if client eviction is disabled (GitHub Advisory, Red Hat Bugzilla).

Community reactions

The vulnerability was discovered internally by Valkey contributor nadav-levanoni during fuzz/soak testing for the valkey-large-object module, and the fix was reviewed and merged by the Valkey maintainer team within one day of the report (GitHub Issue, GitHub PR). Red Hat tracked the issue as high severity in their Bugzilla system, and the vulnerability was picked up by Linux security roundup publications and vulnerability tracking platforms including VulDB, OSV, and Cloudflare Radar (Red Hat Bugzilla). Google Cloud's Memorystore for Redis maintenance changelog also referenced the issue, indicating downstream managed service awareness.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

sid

valkey: 9.1.4-1

Fixed

trixie

valkey

Affected

Ubuntu

Unknown

devel

valkey

Unknown

noble

valkey

Unknown

noble (esm-apps)

valkey

Unknown

resolute

valkey

Unknown

RHEL / CentOS

Affected

RHEL 8

redis:6/redis.src

Affected

RHEL 9

redis.src

Affected

RHEL 10

valkey.src

Affected

Alpine

Fixed

edge

valkey: 9.2.0-r0

Fixed

v3.21

valkey: 7.2.16-r0

Fixed

v3.22

valkey: 8.1.12-r0

Fixed

v3.23

valkey: 9.0.8-r0

Fixed

Source: This report was generated using AI

Related Redis vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-136156HIGH8.8
  • Redis logoRedis
  • valkey-doc
NoYesNov 24, 2026
CVE-2026-130822HIGH7.5
  • Redis logoRedis
  • redis:7::redis-doc
NoYesNov 24, 2026
CVE-2026-88382HIGH7.5
  • Redis logoRedis
  • redis
NoYesSep 24, 2026
CVE-2026-92925HIGH7.1
  • Redis logoRedis
  • valkey
NoYesSep 17, 2026
CVE-2026-82677LOW1.9
  • Redis logoRedis
  • valkey
NoYesAug 31, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management