CVE-2026-130822
Valkey: Use-after-free when client eviction frees the client whose command is still executing
- CVSS
- 7.5
- EPSS
- 0.77% (p52)
- Published
- 2026-11-24
- Age
- 5d old
- Modified
- 2026-11-28
- Product
- Valkey Valkey
- Aliases
- GHSA-3885-pq5f-788j
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Fixed in
7.2.16 · 8.0.13 · 8.1.12 · 9.0.8 · 9.1.4 · 9.2.0
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | Valkey | >=0, <7.2.16 | 7.2.16 |
| vendor | Valkey | >=8.0.0, <8.0.13 | 8.0.13 |
| vendor | Valkey | >=8.1.0, <8.1.12 | 8.1.12 |
| vendor | Valkey | >=9.0.0, <9.0.8 | 9.0.8 |
| vendor | Valkey | >=9.1.0, <9.1.4 | 9.1.4 |
| vendor | Valkey | >=9.2.0-rc1, <9.2.0 | 9.2.0 |
Sources
- NVD · first seen 5d ago · NVD terms of use
- OSV · first seen 5d ago · CC-BY 4.0
- CVE List · first seen 5d ago · CVE Terms of Use
References
- https://github.com/valkey-io/valkey/security/advisories/GHSA-3885-pq5f-788j other
- https://github.com/valkey-io/valkey/issues/5422 other
- https://github.com/valkey-io/valkey/pull/5435 other
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/130xxx/CVE-2026-130822.json advisory
- https://github.com/valkey-io/valkey package
- https://nvd.nist.gov/vuln/detail/CVE-2026-130822 advisory