# CVE-2026-136156: Valkey: Integer truncation in cluster publish message construction causes a heap buffer overflow

- Severity: High 8.8 (CVSS:3.1, scored by Akrites) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.97%, higher than 62% of CVEs (2026-12-01)
- Published: 2026-11-24T14:06:28.061Z
- Modified: 2026-12-01T20:18:44.093Z
- Weaknesses: CWE-122, CWE-197
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Akrites

## Description

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.

(As written by CVE List.)

## Affected

- Valkey Valkey: before 7.2.15; from 8.0.0 before 8.0.12; from 8.1.0 before 8.1.11; from 9.0.0 before 9.0.7; from 9.1.0 before 9.1.3; from 9.2.0-rc1 before 9.2.0-rc2

## References

- <https://github.com/valkey-io/valkey/security/advisories/GHSA-f4q9-j22m-xqq9>
- <https://github.com/valkey-io/valkey/pull/5030>

## Sources

- CVE List: [CVE-2026-136156](https://www.cve.org/CVERecord?id=CVE-2026-136156), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-136156](https://nvd.nist.gov/vuln/detail/CVE-2026-136156), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-136156 · Whole record: https://cve.day/CVE-2026-136156.json · Rebuilt by cve.day 2026-12-01T20:32:19.147Z
