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 HatNVDcve.org
Base Score8.8N/A8.8
Attack VectorNetworkN/ANetwork
Attack ComplexityLowN/ALow
Privileges RequiredLowN/ALow
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityHighN/AHigh
Integrity ImpactHighN/AHigh
Availability ImpactHighN/AHigh

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

Want to get errata notifications? Sign up here.