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
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: 9.1.0 , < 9.1.2 (semver)
guessed 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": {
    "epss": {
      "cve": "CVE-2026-136155",
      "date": "2026-11-25",
      "epss": "0.00948",
      "percentile": "0.59685"
    },
    "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"
    }
  }
}


Solutions

CNA · Akrites
Upgrade to Valkey 9.1.2 or later.

Workarounds

CNA · Akrites
Use Valkey ACLs to restrict the SCRIPT command, in particular SCRIPT DEBUG, if your application does not use the script debugger.

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.