# CVE-2026-130822: Valkey: Use-after-free when client eviction frees the client whose command is still executing

- Priority: **Routine**
- Reason: Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-24 · Modified: 2026-12-01
- Aliases: ALPINE-CVE-2026-130822, UBUNTU-CVE-2026-130822, DEBIAN-CVE-2026-130822, openSUSE-SU-2026:12724-1
- Record: https://cvemate.com/vulnerability/CVE-2026-130822 · JSON: https://cvemate.com/vulnerability/CVE-2026-130822/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.765%, percentile 56.8%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine valkey (Alpine Linux): \< 7.2.16-r0 \| \< 8.1.12-r0 \| \< 9.0.8-r0 \| \< 9.2.0-r0
- debian valkey (Debian): All versions (No fix recorded) \| \< 9.1.4-1
- ubuntu valkey (Ubuntu): All versions (No fix recorded)
- opensuse valkey&distro=openSUSE Tumbleweed (openSUSE): \< 9.2.0-1.1
- valkey valkey: \< 7.2.16 \| ≥ 8.0.0, \< 8.0.13 \| ≥ 8.1.0, \< 8.1.12 \| ≥ 9.0.0, \< 9.0.8 \| ≥ 9.1.0, \< 9.1.4 \| ≥ 9.2.0-rc1, \< 9.2.0

## References

- <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://security.alpinelinux.org/vuln/CVE-2026-130822>
- <https://ubuntu.com/security/CVE-2026-130822>
- <https://www.cve.org/CVERecord?id=CVE-2026-130822>
- <https://security-tracker.debian.org/tracker/CVE-2026-130822>
- <https://www.suse.com/security/cve/CVE-2026-130822>

---

Data as of 2026-12-05T04:41:38.797Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
