Read the docs

Use-after-free in Valkey Lua script debugger cache

Priority MEDIUM 42CWE-416Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 1 fixed, 1 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-416 and the CVSS impact.

Summary

Valkey from 9.1.0 before 9.1.2 has a use-after-free (CWE-416) in its Lua script debugger. The debugger keeps a pointer to a Lua interpreter state that SCRIPT FLUSH ASYNC frees, so the next debugger command uses freed memory. An authenticated user who can run scripting commands can crash the server and may be able to achieve remote code execution. Valkey 8.0.x and 8.1.x are not affected.

Written with Claude Haiku 5.5 from the sources below · 2026-11-27

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00948 59th percentileScored 2026-11-30
Fix Partial Valkey (Valkey): 9.1.2Red Hat: 1 advisoryRed Hat: 1 fixed, 1 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
ValkeyValkey9.1.0 to before 9.1.29.1.2Patch availableCNA
  • Valkey VendorValkey Affected 9.1.0 to before 9.1.2 Fixed in 9.1.2 Patch available CNA

Remediation

Upgrade Valkey to 9.1.2. Red Hat fixes Red Hat Hardened Images in RHSA-2026:103160.

Written with Claude Haiku 5.5 from the sources below · 2026-11-27

  • Fix · CNA Valkey (Valkey) Fixed in 9.1.2

Red Hat 1 advisory

  • RHSA-2026:103160 Released 2026-11-24 · Red Hat rating Important
    Red Hat Hardened Images RPMs bug fix and enhancement update
    • Red Hat Hardened Images valkey9.1-9.1.4-0.1.hum1@aarch64, valkey9.1-9.1.4-0.1.hum1@s390x, valkey9.1-9.1.4-0.1.hum1@src +16

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Hardened ImagesAffectedNo fix yet
Red Hat Hardened ImagesFixed RHSA-2026:103160
Not affected: 3 products
  • Red Hat Enterprise Linux 10
  • Red Hat Enterprise Linux 9
  • Red Hat Hardened Images

Timeline

  1. 2026-11-24 Threatist record created from CVE-2026-136155
  2. 2026-11-24 Alias added: GHSA-89j7-2m74-w72r
  3. 2026-11-25 Affected versions changed · Red Hat
  4. 2026-11-25 CVSS score added · Red Hat
  5. 2026-11-27 Fix available: Red Hat Hardened Images · Red Hat
  6. 2026-11-27 Fix available: RHSA-2026:103160 · Red Hat
  7. 2026-12-01 CISA SSVC decision points changed

References

  • TI-2026-97447 Use-after-free in Valkey JSON array mutation commands CVSS 3.1HIGH 8.8
  • TI-2026-97445 Valkey cluster publish integer truncation causes heap overflow CVSS 3.1HIGH 8.8
  • TI-2026-95074 Use-after-free in Valkey client eviction frees a running client CVSS 3.1HIGH 7.5
  • TI-2026-97446 Use-after-free in Valkey RDMA transport can crash the server CVSS 3.1HIGH 7.5
  • TI-2025-31203 setDeferredReply in networking.c in Valkey through 8.1.1 has an integer underflow for prev->size - prev->used. CVSS 3.1LOW 3.1

Sources