CVE-2026-136156 (GCVE-0-2026-136156)

Vulnerability from cvelistv5 – Published: 2026-11-24 14:06 – Updated: 2026-11-24 14:06
VLAI
Title
Valkey: Integer truncation in cluster publish message construction causes a heap buffer overflow
Summary
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.
CWE
  • CWE-197 - Numeric Truncation Error
  • CWE-122 - Heap-based Buffer Overflow
Assigner
Akrites CNA under the mitre root
CNA scorecard C 70/100 over 10 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Valkey Valkey Affected: 0 , < 7.2.15 (semver)
Affected: 8.0.0 , < 8.0.12 (semver)
Affected: 8.1.0 , < 8.1.11 (semver)
Affected: 9.0.0 , < 9.0.7 (semver)
Affected: 9.1.0 , < 9.1.3 (semver)
Affected: 9.2.0-rc1 , < 9.2.0-rc2 (semver)
guessed Create a notification for this product.
Date Public
2026-10-26 22:49
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Valkey",
          "repo": "https://github.com/valkey-io/valkey",
          "vendor": "Valkey",
          "versions": [
            {
              "lessThan": "7.2.15",
              "status": "affected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThan": "8.0.12",
              "status": "affected",
              "version": "8.0.0",
              "versionType": "semver"
            },
            {
              "lessThan": "8.1.11",
              "status": "affected",
              "version": "8.1.0",
              "versionType": "semver"
            },
            {
              "lessThan": "9.0.7",
              "status": "affected",
              "version": "9.0.0",
              "versionType": "semver"
            },
            {
              "lessThan": "9.1.3",
              "status": "affected",
              "version": "9.1.0",
              "versionType": "semver"
            },
            {
              "lessThan": "9.2.0-rc2",
              "status": "affected",
              "version": "9.2.0-rc1",
              "versionType": "semver"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "finder",
          "value": "Nenad Stojanovski working with Trend Micro Zero Day Initiative"
        },
        {
          "lang": "en",
          "type": "remediation developer",
          "value": "Roshan Khatri"
        }
      ],
      "datePublic": "2026-10-26T22:49:43.000Z",
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-197",
              "description": "CWE-197 Numeric Truncation Error",
              "lang": "en",
              "type": "CWE"
            }
          ]
        },
        {
          "descriptions": [
            {
              "cweId": "CWE-122",
              "description": "CWE-122 Heap-based Buffer Overflow",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-24T14:06:28.061Z",
        "orgId": "7fefd608-56a6-419f-a002-fd8543c0710a",
        "shortName": "Akrites"
      },
      "references": [
        {
          "url": "https://github.com/valkey-io/valkey/security/advisories/GHSA-f4q9-j22m-xqq9"
        },
        {
          "url": "https://github.com/valkey-io/valkey/pull/5030"
        }
      ],
      "solutions": [
        {
          "lang": "en",
          "value": "Upgrade to Valkey 7.2.15, 8.0.12, 8.1.11, 9.0.7, 9.1.3, 9.2.0-rc2 or later."
        }
      ],
      "title": "Valkey: Integer truncation in cluster publish message construction causes a heap buffer overflow",
      "workarounds": [
        {
          "lang": "en",
          "value": "Use Valkey ACLs to restrict the scripting commands (EVAL, EVALSHA, EVAL_RO, EVALSHA_RO, FCALL, FCALL_RO and FUNCTION) if your application does not use them, and do not raise proto-max-bulk-len above its default."
        }
      ],
      "x_generator": {
        "engine": "cvelib 1.8.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "7fefd608-56a6-419f-a002-fd8543c0710a",
    "assignerShortName": "Akrites",
    "cveId": "CVE-2026-136156",
    "datePublished": "2026-11-24T14:06:28.061Z",
    "dateReserved": "2026-11-24T13:53:38.491Z",
    "dateUpdated": "2026-11-24T14:06:28.061Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-136156",
      "date": "2026-11-25",
      "epss": "0.00968",
      "percentile": "0.60487"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Valkey",
                "repo": "https://github.com/valkey-io/valkey",
                "vendor": "Valkey",
                "versions": [
                  {
                    "lessThan": "7.2.15",
                    "status": "affected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "8.0.12",
                    "status": "affected",
                    "version": "8.0.0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "8.1.11",
                    "status": "affected",
                    "version": "8.1.0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "9.0.7",
                    "status": "affected",
                    "version": "9.0.0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "9.1.3",
                    "status": "affected",
                    "version": "9.1.0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "9.2.0-rc2",
                    "status": "affected",
                    "version": "9.2.0-rc1",
                    "versionType": "semver"
                  }
                ]
              }
            ],
            "source": "7fefd608-56a6-419f-a002-fd8543c0710a"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "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."
          }
        ],
        "id": "CVE-2026-136156",
        "lastModified": "2026-11-24T15:19:53.317",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 8.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 2.8,
              "impactScore": 5.9,
              "source": "7fefd608-56a6-419f-a002-fd8543c0710a",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-24T15:17:33.677",
        "references": [
          {
            "source": "7fefd608-56a6-419f-a002-fd8543c0710a",
            "url": "https://github.com/valkey-io/valkey/pull/5030"
          },
          {
            "source": "7fefd608-56a6-419f-a002-fd8543c0710a",
            "url": "https://github.com/valkey-io/valkey/security/advisories/GHSA-f4q9-j22m-xqq9"
          }
        ],
        "sourceIdentifier": "7fefd608-56a6-419f-a002-fd8543c0710a",
        "vulnStatus": "Awaiting Analysis",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-122"
              },
              {
                "lang": "en",
                "value": "CWE-197"
              }
            ],
            "source": "7fefd608-56a6-419f-a002-fd8543c0710a",
            "type": "Secondary"
          }
        ]
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Important",
      "current_release_date": "2026-11-25T11:31:13+00:00",
      "cve": "CVE-2026-136156",
      "id": "CVE-2026-136156",
      "initial_release_date": "2026-11-24T14:06:28.061000+00:00",
      "product_status:fixed": "111",
      "product_status:known_affected": "1",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "valkey: valkey: Arbitrary code execution via integer truncation in cluster mode",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-136156.json",
      "version": "3"
    }
  }
}


Solutions

CNA · Akrites
Upgrade to Valkey 7.2.15, 8.0.12, 8.1.11, 9.0.7, 9.1.3, 9.2.0-rc2 or later.

Workarounds

CNA · Akrites
Use Valkey ACLs to restrict the scripting commands (EVAL, EVALSHA, EVAL_RO, EVALSHA_RO, FCALL, FCALL_RO and FUNCTION) if your application does not use them, and do not raise proto-max-bulk-len above its default.

Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.