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

Published Nov 24, 2026
·
Updated

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 sizet but passes it to createClusterMsgSendBlock as a uint32t. 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.

Affected Software

1 affected component
Valkey Valkey<7.2.15, >=8.0.0<8.0.12, >=8.1.0<8.1.11, >=9.0.0<9.0.7, >=9.1.0<9.1.3, =9.2.0-rc1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Valkey to a version that resolves this vulnerability.

    Fixed in 7.2.15
  2. Upgrade

    Upgrade Valkey to a version that resolves this vulnerability.

    Fixed in 8.0.12
  3. Upgrade

    Upgrade Valkey to a version that resolves this vulnerability.

    Fixed in 8.1.11
  4. Upgrade

    Upgrade Valkey to a version that resolves this vulnerability.

    Fixed in 9.0.7
  5. Upgrade

    Upgrade Valkey to a version that resolves this vulnerability.

    Fixed in 9.1.3
  6. Upgrade

    Upgrade Valkey to a version that resolves this vulnerability.

    Fixed in 9.2.0-rc2

Event History

Nov 24, 2026
CVE Published
via MITRE·02:06 PM
Data Sourced
via MITRE·02:06 PM
RemedyDescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Only Valkey servers running in cluster mode are affected. Servers not running in cluster mode are not affected.

2

What level of access does an attacker need?

An attacker needs authenticated access with permission to issue PUBLISH or SPUBLISH commands. The advisory notes that they can construct the required oversized arguments in a script.

3

What makes exploitation possible?

The combined channel and message size must exceed 4 GiB. This causes the cluster message length to truncate to a 32-bit value, after which Valkey copies the full attacker-controlled data into an undersized heap buffer.

4

What is the expected impact?

The overflow reliably crashes the server and may allow remote code execution. Confidentiality, integrity, and availability are all rated high.

5

Which versions contain the fix?

Upgrade to Valkey 7.2.15, 8.0.12, 8.1.11, 9.0.7, or 9.1.3, or later applicable releases. Version 9.2.0-rc1 is also identified as affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203