CVE-2026-136155 (GCVE-0-2026-136155)

Vulnerability from cvelistv5 – Published: 2026-11-24 14:06 – Updated: 2026-11-24 14:06
VLAI
Title
Valkey: Use-after-free of the Lua interpreter state through the script debugger's command cache
Summary
In Valkey 9.1.0 and 9.1.1, the Lua script debugger builds its command table once and caches it with a pointer to the Lua interpreter state that was current at the time. SCRIPT FLUSH ASYNC recreates the scripting engine and frees the previous interpreter state without invalidating that cache, so the next debugger command dereferences freed memory. An authenticated user who can run scripting commands can use this to reliably crash the server, and by reclaiming the freed heap chunk with attacker-controlled bytes can escalate it to control of an indirect call, which may lead to remote code execution. The fix also addresses a second use-after-free in ldbLogStackValue. Valkey 8.0.x and 8.1.x use the previous debugger and are not affected.
CWE
Impacted products
Vendor Product Version
Valkey Valkey Affected: 9.1.0 , < 9.1.2 (semver)
Create a notification for this product.
Date Public
2026-08-31 23:36
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Valkey",
          "repo": "https://github.com/valkey-io/valkey",
          "vendor": "Valkey",
          "versions": [
            {
              "lessThan": "9.1.2",
              "status": "affected",
              "version": "9.1.0",
              "versionType": "semver"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "finder",
          "value": "Trung Nguyen of CyStack"
        },
        {
          "lang": "en",
          "type": "finder",
          "value": "Phuc Nguyen Dinh of CyStack"
        },
        {
          "lang": "en",
          "type": "finder",
          "value": "Han Sang-Kyung"
        },
        {
          "lang": "en",
          "type": "remediation developer",
          "value": "Bara\u0027 Hasheesh"
        }
      ],
      "datePublic": "2026-08-31T23:36:20.000Z",
      "descriptions": [
        {
          "lang": "en",
          "value": "In Valkey 9.1.0 and 9.1.1, the Lua script debugger builds its command table once and caches it with a pointer to the Lua interpreter state that was current at the time. SCRIPT FLUSH ASYNC recreates the scripting engine and frees the previous interpreter state without invalidating that cache, so the next debugger command dereferences freed memory. An authenticated user who can run scripting commands can use this to reliably crash the server, and by reclaiming the freed heap chunk with attacker-controlled bytes can escalate it to control of an indirect call, which may lead to remote code execution. The fix also addresses a second use-after-free in ldbLogStackValue. Valkey 8.0.x and 8.1.x use the previous debugger and 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-416",
              "description": "CWE-416 Use After Free",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-24T14:06:27.220Z",
        "orgId": "7fefd608-56a6-419f-a002-fd8543c0710a",
        "shortName": "Akrites"
      },
      "references": [
        {
          "url": "https://github.com/valkey-io/valkey/security/advisories/GHSA-fq2f-crmw-q97r"
        },
        {
          "url": "https://github.com/valkey-io/valkey/pull/4574"
        }
      ],
      "solutions": [
        {
          "lang": "en",
          "value": "Upgrade to Valkey 9.1.2 or later."
        }
      ],
      "title": "Valkey: Use-after-free of the Lua interpreter state through the script debugger\u0027s command cache",
      "workarounds": [
        {
          "lang": "en",
          "value": "Use Valkey ACLs to restrict the SCRIPT command, in particular SCRIPT DEBUG, if your application does not use the script debugger."
        }
      ],
      "x_generator": {
        "engine": "cvelib 1.8.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "7fefd608-56a6-419f-a002-fd8543c0710a",
    "assignerShortName": "Akrites",
    "cveId": "CVE-2026-136155",
    "datePublished": "2026-11-24T14:06:27.220Z",
    "dateReserved": "2026-11-24T13:53:38.491Z",
    "dateUpdated": "2026-11-24T14:06:27.220Z",
    "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": "9.1.2",
                    "status": "affected",
                    "version": "9.1.0",
                    "versionType": "semver"
                  }
                ]
              }
            ],
            "source": "7fefd608-56a6-419f-a002-fd8543c0710a"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In Valkey 9.1.0 and 9.1.1, the Lua script debugger builds its command table once and caches it with a pointer to the Lua interpreter state that was current at the time. SCRIPT FLUSH ASYNC recreates the scripting engine and frees the previous interpreter state without invalidating that cache, so the next debugger command dereferences freed memory. An authenticated user who can run scripting commands can use this to reliably crash the server, and by reclaiming the freed heap chunk with attacker-controlled bytes can escalate it to control of an indirect call, which may lead to remote code execution. The fix also addresses a second use-after-free in ldbLogStackValue. Valkey 8.0.x and 8.1.x use the previous debugger and are not affected."
          }
        ],
        "id": "CVE-2026-136155",
        "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.553",
        "references": [
          {
            "source": "7fefd608-56a6-419f-a002-fd8543c0710a",
            "url": "https://github.com/valkey-io/valkey/pull/4574"
          },
          {
            "source": "7fefd608-56a6-419f-a002-fd8543c0710a",
            "url": "https://github.com/valkey-io/valkey/security/advisories/GHSA-fq2f-crmw-q97r"
          }
        ],
        "sourceIdentifier": "7fefd608-56a6-419f-a002-fd8543c0710a",
        "vulnStatus": "Awaiting Analysis",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-416"
              }
            ],
            "source": "7fefd608-56a6-419f-a002-fd8543c0710a",
            "type": "Secondary"
          }
        ]
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Important",
      "current_release_date": "2026-11-24T19:57:57+00:00",
      "cve": "CVE-2026-136155",
      "id": "CVE-2026-136155",
      "initial_release_date": "2026-11-24T14:06:27.220000+00:00",
      "product_status:known_affected": "1",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "valkey: Valkey: Arbitrary code execution via use-after-free in Lua script debugger",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-136155.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…