{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-130822","assignerOrgId":"7fefd608-56a6-419f-a002-fd8543c0710a","state":"PUBLISHED","assignerShortName":"Akrites","dateReserved":"2026-11-17T17:23:33.028Z","datePublished":"2026-11-24T13:57:55.729Z","dateUpdated":"2026-11-24T13:57:55.729Z"},"containers":{"cna":{"title":"Valkey: Use-after-free when client eviction frees the client whose command is still executing","datePublic":"2026-11-19T17:42:05.000Z","problemTypes":[{"descriptions":[{"lang":"en","cweId":"CWE-416","description":"CWE-416 Use After Free","type":"CWE"}]}],"affected":[{"vendor":"Valkey","product":"Valkey","repo":"https://github.com/valkey-io/valkey","versions":[{"status":"affected","version":"0","lessThan":"7.2.16","versionType":"semver"},{"status":"affected","version":"8.0.0","lessThan":"8.0.13","versionType":"semver"},{"status":"affected","version":"8.1.0","lessThan":"8.1.12","versionType":"semver"},{"status":"affected","version":"9.0.0","lessThan":"9.0.8","versionType":"semver"},{"status":"affected","version":"9.1.0","lessThan":"9.1.4","versionType":"semver"},{"status":"affected","version":"9.2.0-rc1","lessThan":"9.2.0","versionType":"semver"}],"defaultStatus":"unaffected"}],"descriptions":[{"lang":"en","value":"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."}],"references":[{"url":"https://github.com/valkey-io/valkey/security/advisories/GHSA-3885-pq5f-788j"},{"url":"https://github.com/valkey-io/valkey/issues/5422"},{"url":"https://github.com/valkey-io/valkey/pull/5435"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseSeverity":"HIGH","baseScore":7.5,"vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"}}],"workarounds":[{"lang":"en","value":"Set maxmemory-clients to 0, which disables client eviction; if you do, make sure client-output-buffer-limit and maxmemory still bound client memory. If client eviction is required, use Valkey ACLs so that untrusted users cannot write to keys that other clients block on, and cannot run the blocking commands (BLPOP, BRPOP, BLMOVE, BRPOPLPUSH, BLMPOP, BZPOPMIN, BZPOPMAX, BZMPOP, and XREAD or XREADGROUP with BLOCK)."}],"solutions":[{"lang":"en","value":"Upgrade to Valkey 7.2.16, 8.0.13, 8.1.12, 9.0.8, 9.1.4, 9.2.0 or later."}],"credits":[{"lang":"en","value":"Nadav Levanoni","type":"finder"},{"lang":"en","value":"Nadav Levanoni","type":"remediation developer"}],"providerMetadata":{"orgId":"7fefd608-56a6-419f-a002-fd8543c0710a","shortName":"Akrites","dateUpdated":"2026-11-24T13:57:55.729Z"},"x_generator":{"engine":"cvelib 1.8.0"}}}}