CVE-2026-136156
Description
A flaw was found in Valkey. When running in cluster mode, an integer truncation issue occurs in message length calculations when a publish message exceeds four gigabytes. An authenticated user can exploit this flaw to trigger a heap-based buffer overflow by sending an oversized publish message. This reliably crashes the server, resulting in a Denial of Service (DoS), and may potentially allow arbitrary code execution.
Statement
This vulnerability is rated as Important severity because successful exploitation allows authenticated network clients to achieve heap corruption and potentially arbitrary code execution within the service process. In typical Red Hat deployments, Valkey runs in standalone mode by default and is unaffected unless cluster functionality is explicitly enabled. In clustered environments, the flaw poses a significant availability and integrity risk to database nodes handling untrusted client traffic.
Mitigation
If cluster functionality is not required, disable cluster mode in the Valkey configuration file (typically `/etc/valkey/valkey.conf`):
cluster-enabled no
If cluster mode is required, use Access Control Lists (ACL) to restrict untrusted clients from running publish commands:
valkey-cli ACL SETUSER <username> -publish -spublish
Additionally, restrict network access so that Valkey ports are reachable only by trusted clients using host firewall rules.
Apply configuration changes by restarting the Valkey service:
sudo systemctl restart valkey
Warning: Modifying ACL permissions or disabling cluster mode may impact client applications relying on publish/subscribe mechanisms or distributed clustering. Restarting the Valkey service will terminate active client connections and cause a temporary service disruption.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 8.8 | N/A | 8.8 |
| Attack Vector | Network | N/A | Network |
| Attack Complexity | Low | N/A | Low |
| Privileges Required | Low | N/A | Low |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | High | N/A | High |
| Integrity Impact | High | N/A | High |
| Availability Impact | High | N/A | High |
Vector
Red Hat: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cve.org: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Understanding the Weakness (CWE)
Integrity
Technical Impact: Modify Memory; Execute Unauthorized Code or Commands
Write operations could cause memory corruption. In some cases, an adversary can modify control data such as return addresses in order to execute unexpected code.
Availability
Technical Impact: DoS: Crash, Exit, or Restart
Attempting to access out-of-range, invalid, or unauthorized memory could cause the product to crash.
Other
Technical Impact: Unexpected State
Subsequent write operations can produce undefined or unexpected results.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.