CVE-2026-136156Valkey: Integer truncation in cluster publish message construction causes a heap buffer…
In Valkey before 7.2.15, 8.0.x before 8.0.12, 8.1.x before 8.1.11, 9.0.x before 9.0.7, 9.1.x before 9.1.3 and 9.2.0-rc1, running in cluster mode, clusterCreatePublishMsgBlock computes the length of the cluster bus message for a PUBLISH or SPUBLISH as a size_t but passes it to createClusterMsgSendBlock as a uint32_t. When the channel and message together exceed 4 GiB, the length is truncated, a buffer far smaller than the message is allocated, and the full channel and message are then copied into it. An authenticated user who can publish, for example by building the arguments in a script, can overflow the heap with attacker-controlled bytes. This reliably crashes the server and may lead to remote code execution. Servers that do not run in cluster mode are not affected.
What to do
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | valkey | Fix pending | UBUNTU-CVE-2026-136156 | |
| Ubuntu 26.04 | valkey | Under investigation | UBUNTU-CVE-2026-136156 | |
| Ubuntu 24.04 | valkey | Fix pending | UBUNTU-CVE-2026-136156 | |
| Red Hat Enterprise Linux 10 | valkey | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | valkey-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | valkey-rdma | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | redis | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | redis-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | redis-doc | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | valkey | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | valkey-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | redis | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | redis-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | redis-doc | Fix pending Affected |
What the vendor says
As published in the CVE record by Akrites, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Valkey: affected: before 7.2.15, 8.0.0 to before 8.0.12, 8.1.0 to before 8.1.11, 9.0.0 to before 9.0.7, 9.1.0 to before 9.1.3, 9.2.0-rc1 to before 9.2.0-rc2; fixed in
7.2.15,8.0.12,8.1.11,9.0.7,9.1.3,9.2.0-rc2
Solution: Upgrade to Valkey 7.2.15, 8.0.12, 8.1.11, 9.0.7, 9.1.3, 9.2.0-rc2 or later.
Workaround: Use Valkey ACLs to restrict the scripting commands (EVAL, EVALSHA, EVAL_RO, EVALSHA_RO, FCALL, FCALL_RO and FUNCTION) if your application does not use them, and do not raise proto-max-bulk-len above its default.
References
- https://github.com/valkey-io/valkey/security/advisories/GHSA-f4q9-j22m-xqq9
- https://github.com/valkey-io/valkey/pull/5030
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.