CVE-2026-136156
published high CVSS 3.1 · 8.8Valkey: Integer truncation in cluster publish message construction causes a heap buffer overflow
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Valkey | — | Valkey0 to < 7.2.15 · 8.0.0 to < 8.0.12 · 8.1.0 to < 8.1.11 · 9.0.0 to < 9.0.7 · 9.1.0 to < 9.1.3 · 9.2.0-rc1 to < 9.2.0-rc2 · Other versions: unaffected | Affected | Not stated | Akrites |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3524 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | valkeyaarch64 | Listed in advisory | Not stated | ALAS2023-2026-3524 |
| Amazon Linux | AL2023 | valkeysrc | Listed in advisory | Not stated | ALAS2023-2026-3524 |
| Amazon Linux | AL2023 | valkeyx86_64 | Listed in advisory | Not stated | ALAS2023-2026-3524 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- Akrites · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Valkey | Valkey | 0 to < 7.2.15 (affected · semver)8.0.0 to < 8.0.12 (affected · semver)8.1.0 to < 8.1.11 (affected · semver)9.0.0 to < 9.0.7 (affected · semver)9.1.0 to < 9.1.3 (affected · semver)9.2.0-rc1 to < 9.2.0-rc2 (affected · semver)Default: unaffected | Akrites · cna |
Weaknesses
2- CWE-197 CWE-197 Numeric Truncation Error
- CWE-122 CWE-122 Heap-based Buffer Overflow
References
2Provider assertions
2Akrites · cna
Valkey: Integer truncation in cluster publish message construction causes a heap buffer overflow
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0c0be4b2a579b96771b0d2c9d1e2b48ba91a0e5a936b169d1c8e7148cbf6e5b6
- Ingested
- 01 Dec 2026, 19:45:57 UTC
- Source record
- Official CVE record