All vulnerabilities

Servers and applications

CVE-2026-136156

Valkey: Integer truncation in cluster publish message construction causes a heap buffer overflow

Severity
High 8.8
Published
24 Nov 2026
Last changed
24 Nov 2026
Added to UpHeron
24 Nov 2026
Fixed in
7.2.15, 8.0.12, 8.1.11, 9.0.7, 9.1.3, 9.2.0-rc2
Weakness
CWE-197Heap-based buffer overflow (CWE-122)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
ValkeyServers and applications · cna:valkey|valkey
  • Every version 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

About Valkey

NoSQL database management software forked from Redis

From Wikidata, CC0 1.0.
Developers who used it in the past year
2.4%Stack Overflow Developer Survey 2025, 2025
Docker Hub pulls
421,606,403Docker Hub, 22 Nov 2026
GitHub stars
27,817GitHub, 22 Nov 2026
Forks
1,481GitHub, 22 Nov 2026
Latest release
9.2.0GitHub, 22 Nov 2026
Released
19 Nov 2026GitHub
License
3-clause BSD LicenseWikidata
Written in
CWikidata
First released
28 Mar 2024Wikidata
First published on GitHub
22 Mar 2024GitHub

Release lines

ReleaseLatestSecurity fixes
9.29.2.0Until 19 Nov 2031
9.19.1.4Until 19 May 2031
9.09.0.8Until 21 Oct 2028
8.18.1.12Until 31 Mar 2030
8.08.0.13Until 15 Sept 2027
7.27.2.16Until 16 Apr 2029

From endoflife.date.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-136156