p PatchFirst

CVE-2026-136156

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

CVSS 8.8 · High · EPSS 1.0% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • valkeyUpdate to 7.2.15 / 8.0.12 / 8.1.11 …
  • valkey Debian 13No fix published
  • valkey Debian 14Update to 9.1.3-1
  • valkey Ubuntu Pro 24.04 LTSNo fix published
  • and 2 more

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="valkey"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system · database

Affected products and versions

  • valkey

    Versions
    • ≥ 0, < 7.2.15: Affected (semver)
    • ≥ 8.0.0, < 8.0.12: Affected (semver)
    • ≥ 8.1.0, < 8.1.11: Affected (semver)
    • ≥ 9.0.0, < 9.0.7: Affected (semver)
    • ≥ 9.1.0, < 9.1.3: Affected (semver)
    • ≥ 9.2.0-rc1, < 9.2.0-rc2: Affected (semver)

    Update to 7.2.15; Update to 8.0.12; Update to 8.1.11; Update to 9.0.7; Update to 9.1.3; Update to 9.2.0-rc2

  • valkey Debian 13

    Versions
    • 8.1.1+dfsg1-3
    • 8.1.1+dfsg1-3+deb13u1
    • 8.1.1+dfsg1-3+deb13u2
    • 8.1.1+dfsg1-3+deb13u3
    • 8.1.4+dfsg1-1
    • 8.1.4+dfsg1-2
    All versions (10)
    • 9.1.1-1
    • 9.1.2-1
    • 9.1.3-1
    • 9.1.4-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • valkey Debian 14

    Versions
    • 8.1.1+dfsg1-3
    • 8.1.4+dfsg1-1
    • 8.1.4+dfsg1-2
    • 9.1.1-1
    • 9.1.2-1
    Affected ranges
    • ECOSYSTEM: < 9.1.3-1

    Update to 9.1.3-1

  • valkey Ubuntu Pro 24.04 LTS

    Versions
    • 7.2.5+dfsg1-2ubuntu4~24.04.1
    • 7.2.7+dfsg1-0ubuntu0.24.04.1
    • 7.2.8+dfsg1-0ubuntu0.24.04.1
    • 7.2.8+dfsg1-0ubuntu0.24.04.2
    • 7.2.8+dfsg1-0ubuntu0.24.04.3
    • 7.2.10+dfsg1-0ubuntu0.1
    All versions (12)
    • 7.2.11+dfsg1-0ubuntu0.1
    • 7.2.11+dfsg1-0ubuntu0.2
    • 7.2.12+dfsg1-0ubuntu0.1
    • 7.2.13+dfsg1-0ubuntu0.1
    • 7.2.13+dfsg1-0ubuntu0.1+esm1
    • 7.2.14+dfsg1-0ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • valkey Ubuntu 26.10

    Versions
    • 9.0.3-0ubuntu2
    • 9.0.4-0ubuntu1
    • 9.1.1-0ubuntu2
    • 9.1.2-0ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • valkey Ubuntu 26.04 LTS

    Versions
    • 8.1.3+dfsg1-0ubuntu2
    • 8.1.4+dfsg1-0ubuntu1
    • 9.0.2-0ubuntu1
    • 9.0.3-0ubuntu1
    • 9.0.3-0ubuntu2
    • 9.0.4-0ubuntu0.1
    All versions (8)
    • 9.0.4-0ubuntu0.2
    • 9.0.6-0ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →