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
Impacted products
Vendor Product Version
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)
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": {
    "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-24T19:57:58+00:00",
      "cve": "CVE-2026-136156",
      "id": "CVE-2026-136156",
      "initial_release_date": "2026-11-24T14:06:28.061000+00:00",
      "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"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

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.

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.


Loading…