Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with publish and scripting rights
-
DeliveryRun script to build >4 GiB channel/message
-
ExploitIssue PUBLISH/SPUBLISH in cluster mode
-
ExecutionLength truncated, undersized buffer allocated
-
Persistmemcpy overflows heap with attacker bytes
-
ImpactServer crash or potential RCE
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Numeric truncation prevention
|
| Exploitation Conditions | Requires ALL of: (1) the Valkey server running in cluster mode (cluster_enabled; standalone servers are explicitly not affected); (2) an authenticated user with permission to PUBLISH or SPUBLISH; and (3) the ability to execute server-side scripting (EVAL, EVALSHA, EVAL_RO, EVALSHA_RO, FCALL, FCALL_RO, FUNCTION), because with the default proto-max-bulk-len of 512 MB a client cannot transmit the >4 GiB channel+message directly - it must be constructed on the server via a script. Exploitation also needs more than 4 GiB of available server memory to build the oversized payload. LIMITING FACTORS: cluster mode must be enabled, the account needs both publish and scripting privileges, proto-max-bulk-len must not be hardened below where the script can assemble the payload, and no unauthenticated path exists. Vendor mitigations: use Valkey ACLs to restrict the scripting commands if unused, and do not raise proto-max-bulk-len above its default; updating to a fixed version is the complete fix. |
| Impact | The vendor CVSS of 8.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) rates this network-exploitable by an authenticated user (PR:L) with high impact across confidentiality, integrity and availability. The real-world risk is narrower than the raw score implies. Three preconditions must hold simultaneously: the server must run in cluster mode (standalone deployments are explicitly unaffected), the attacker must hold an authenticated account able to PUBLISH/SPUBLISH, and the attacker must be able to run server-side scripting (EVAL/EVALSHA/FCALL/FUNCTION) because a normal client cannot send a >4 GiB argument under the default proto-max-bulk-len of 512 MB - the oversized channel+message must be assembled on the server. Constructing a payload exceeding UINT32_MAX also requires more than 4 GiB of server memory. The confirmed, reliable outcome is a server crash (denial of service); remote code execution is described by the vendor only as a possibility ('may be possible to escalate'), so I treat RCE as plausible-but-unconfirmed rather than demonstrated. KEV status: not listed - no evidence of active exploitation. EPSS: not provided in the input, so exploitation probability cannot be quantified here. POC: no working exploit code is referenced; the only links are the GHSA advisory and the fix PR #5030. The vuln.today decision label is 'this_week', consistent with a serious authenticated-but-privileged bug that is not an active-exploitation emergency. Net: a genuine high-severity memory-corruption flaw, but exploitation is gated by cluster mode plus privileged scripting access, which materially reduces the exposed population relative to the 8.8 score. |
| Exploit ScenarioDerived | On a Valkey server running in cluster mode, an authenticated user who holds PUBLISH plus scripting privileges runs a script (e.g. EVAL) that builds a channel and message whose combined length exceeds 4 GiB, then issues PUBLISH/SPUBLISH. The size_t length is truncated to uint32_t, a far-too-small heap buffer is allocated, and the full attacker-controlled bytes are memcpy'd past its end, reliably crashing the node and potentially corrupting the heap toward code execution. No public working exploit is identified at time of analysis; only the vendor advisory and fix PR are available. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Heap buffer overflow in Valkey's cluster bus publish path allows an authenticated user who can issue PUBLISH or SPUBLISH on a cluster-mode server to write attacker-controlled bytes past a heap allocation. In clusterCreatePublishMsgBlock the serialized length of a channel plus message is computed as a size_t but handed to createClusterMsgSendBlock as a uint32_t, so a payload exceeding 4 GiB is truncated to a small allocation that the full channel and message are then memcpy'd into, reliably crashing the node and potentially yielding remote code execution as the server user. Exploitation is constrained: cluster mode must be enabled, the attacker needs publish rights plus server-side scripting capability to assemble a payload above 4 GiB in memory (the default proto-max-bulk-len of 512 MB prevents sending it directly as client arguments), and more than 4 GiB of server memory must be available; standalone Valkey is explicitly unaffected, and no public exploit code was identified at time of analysis.
RemediationAI
Upgrade to a fixed release: Valkey 7.2.15, 8.0.12, 8.1.11, 9.0.7, 9.1.3, or 9.2.0-rc2 for the 9.2 pre-release line; patched builds validate the full serialized publish length before any 32-bit conversion or allocation and reject oversized PUBLISH/SPUBLISH with "Publish message is too large for the cluster bus". Per the vendor advisory (https://github.com/valkey-io/valkey/security/advisories/GHSA-f4q9-j22m-xqq9, fix in https://github.com/valkey-io/valkey/pull/5030), interim mitigation is to use Valkey ACLs to restrict the scripting commands EVAL, EVALSHA, EVAL_RO, EVALSHA_RO, FCALL, FCALL_RO and FUNCTION when applications do not need them, which removes the practical way of assembling a payload above 4 GiB in server memory, and to avoid raising proto-max-bulk-len above its 512 MB default; both measures only reduce reachability, and the vendor states that updating is the complete fix. Note that the scripting ACL restrictions will break legitimate Lua/function workloads, and that a publish-capable account can still exhaust memory even when the overflow is blocked.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Valkey's cluster bus carries inter-node messages, and when a node must propagate a PUBLISH or SPUBLISH to the rest of the cluster it builds a send block via clusterCreatePublishMsgBlock in src/cluster_legacy.c (src/cluster.c on the 7.2 branch). The defect is CWE-197 numeric truncation: the function derives channel_len and message_len as size_t, but createClusterMsgSendBlock accepts a uint32_t total length, so once channel plus message exceed UINT32_MAX the value silently wraps to a small number, a far smaller buffer is allocated than the payload requires, and the two following memcpy calls copy the complete channel and message past the end of it. The overflow bytes are attacker-chosen, which is what lifts this from a crash to a possible code-execution primitive. Both the regular and light cluster bus header paths are affected, as are the module publish APIs that route through the same helper. The upstream fix (PR #5030) introduces clusterPublishMessageLengthValid(), which computes the maximum representable payload from UINT32_MAX minus the clusterMsgSendBlock data offset, CLUSTERMSG_MIN_LEN and the clusterMsgDataPublish bulk_data offset, and validates the complete serialized length before any 32-bit conversion or allocation; publishCommand and the module publish path now return the error "Publish message is too large for the cluster bus" without publishing locally or propagating, and clusterSendModuleMessageToTarget bails out when the message block is NULL. The CPE entry cpe:2.3:a:valkey:valkey:*:*:*:*:*:*:*:* covers the affected release streams.
Know when Valkey gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable but needs authenticated publish plus scripting rights (PR:L) and assembly of a >4 GiB payload requiring substantial memory and server-side scripting (AC:H); crash is reliable and heap is attacker-controlled (C/I/A:H).
Primary rating from Vendor (Akrites).
CVSS VectorVendor: Akrites
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CVE-2026-136156 is a CWE-197 numeric truncation error that becomes a heap buffer overflow.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A critical heap buffer overflow in Valkey's cluster-mode publish path (CVE-2026-136156, CVSS 8.8) could allow an authenticated user with publish rights to crash cluster nodes and potentially achieve remote code execution as the server user. This affects only cluster-mode deployments; standalone instances are unaffected. Leadership should prioritise remediation because exploitation could lead to service disruption and full server compromise, though high preconditions limit real-world risk.
No vendor-released patch identified at time of analysis. Interim mitigations: disable cluster mode if not required, revoke PUBLISH and SPUBLISH permissions from untrusted users, restrict server-side scripting capabilities, enforce memory limits to make >4 GiB allocations infeasible, and monitor for abnormal publish payload sizes.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
UAF in Redis 8.2.1 via crafted Lua scripts by authenticated users. EPSS 12.4%. Patch available.
Out-of-bounds read in Valkey's cluster slot-migration RDB loader allows a network-positioned attacker to crash affected
Use-after-free in Valkey's RESTORE command allows a low-privileged remote attacker to potentially execute arbitrary code
Use-after-free in the Valkey JSON module (1.0.0 through 1.0.2, including valkey-bundle distributions that ship it) lets
Use-after-free in Valkey 9.1.0 and 9.1.1's module-based Lua scripting engine lets an authenticated user whose ACL permit
Use-after-free in Valkey's TLS connection handler allows an authenticated remote attacker to crash the server or potenti
Use-after-free in Valkey's client-eviction path allows an authenticated user to reliably crash the server process. The a
Redis is an open source, in-memory database that persists on disk. Rated high severity (CVSS 7.5), this vulnerability is
Denial of service in Valkey 9.0.0 through 9.0.2 allows unauthenticated network attackers to crash the server by exploiti
Out-of-bounds read in Valkey clusterbus port processing allows network-adjacent attackers to crash affected systems by s
Use-after-free in Valkey's RDMA transport lets an authenticated user crash the server process reliably by running a comm
Response-stream injection in Valkey (the Redis fork) lets an authenticated user abuse Lua scripting commands to smuggle
EUVD-2026-134077
GHSA-2hgv-4f6x-9hfg
NVD
CVE.org
EPSS
Exploit-DB