Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

Valkey JSON Use-After-Free and RCE (CVE-2026-136158)

CVE-2026-136158 is a use-after-free vulnerability in Valkey JSON 1.0.0 through 1.0.2.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-136158
Vendor
Valkey
Affected Product
Valkey JSON
Exploitation
Not confirmed
Published
2026-11-24

A user with authentication and permission to run JSON mutation commands can reliably crash the server. The vendor says researchers also developed the flaw into remote code execution with the server process privileges.The issue matters when the JSON module is loaded, including through valkey-bundle. A server without the module loaded is unaffected. The vendor released Valkey JSON 1.0.3 as the fixed version.

What it allows

How Does CVE-2026-136158 Cause a Use-After-Free?

The Valkey advisory says recursive JSONPath matching can place an array and its descendants in the same result set. Selected mutation commands process the parent first. Resizing the parent can release storage while later matches still reference it. The module then writes through those stale references.

The affected commands are JSON.ARRAPPEND, JSON.ARRINSERT, JSON.ARRPOP, JSON.ARRTRIM and JSON.CLEAR. According to the vendor, this produces a reliable server crash. Researchers developed an execution chain on an official valkey-bundle image, running code with the server account privileges.

Which Deployments Face the Greatest Risk?

Authentication and JSON mutation permissions are required. Applications that pass user-controlled recursive JSONPath expressions to these commands are especially exposed, according to Valkey. Our defensive priority is to identify those application paths before the patch window. The CVE record scores the network attack with low privileges and no user interaction.

Use a Vulnerability Intelligence platform to organize affected deployments and patch priority. Compare this distinct issue with the Valkey cluster publish vulnerability when reviewing a broader Valkey inventory. The 24 November 2026 CISA KEV catalog snapshot did not list this CVE.

Who is affected

Version Check

Valkey JSON
Release LineAffected RangeFixed In
1.0.x1.0.0 to before 1.0.31.0.3
Release ranges source

For distribution packages and custom builds, check the supplier’s advisory.

Check the loaded JSON module version. For valkey-bundle, verify which module version the running bundle includes.

Which Valkey JSON Versions Need an Update?

The vendor description and CVE record identify Valkey JSON 1.0.0, 1.0.1 and 1.0.2 as affected. Version 1.0.3 is the fixed release. The same exposure applies to valkey-bundle distributions that ship and load an affected JSON module. Check the loaded module and its running version, not only the server package name.

Valkey recommends restricting the five affected mutation commands through ACLs when applications do not require them. Confining application-supplied paths to non-recursive expressions also avoids this defect. These measures reduce exposure during an upgrade but do not replace the fix. Track the change through a patch management process.

Timeline

  1. 2026-08-31

    Valkey JSON advisory became public, according to its advisory date.

  2. 2026-11-24

    The CVE record for CVE-2026-136158 was published.

What to do

  1. Inventory loaded JSON modules

    Identify Valkey and valkey-bundle servers with the JSON module loaded. Record the module version and which accounts can run JSON mutation commands.

  2. Upgrade the affected module

    Install Valkey JSON 1.0.3 or later. For valkey-bundle, choose a release that ships the fixed module and follow the vendor deployment procedure.

  3. Verify the running version

    After deployment, confirm the loaded JSON module reports 1.0.3 or later on each server. Recheck bundle packaging and restart status where applicable.

  4. Restrict unnecessary mutation access

    Use Valkey ACLs to remove unneeded access to JSON.ARRAPPEND, JSON.ARRINSERT, JSON.ARRPOP, JSON.ARRTRIM and JSON.CLEAR during the patch window.

  5. Review service health and access

    Review unexpected server restarts and authenticated use of affected JSON commands. Investigate anomalies with surrounding evidence; they do not alone establish exploitation of this CVE.

What Brandefense can do

Frequently Asked Questions

Does CVE-2026-136158 require authentication?

Yes. The vendor says an authenticated user needs permission to run affected Valkey JSON mutation commands. Applications passing user-controlled recursive paths are especially exposed.

Is a Valkey server without the JSON module affected?

No. The vendor says a server that does not load Valkey JSON is unaffected, including when valkey-bundle is installed without loading that module.

Which version fixes CVE-2026-136158?

Valkey JSON 1.0.3 fixes the issue. For valkey-bundle, verify that the running bundle includes the fixed JSON module.

Does the advisory describe a real-world intrusion?

The advisory describes reliable crashes and researcher-developed code execution. It does not present an incident investigation or an affected customer.

Sources

  1. Valkey JSON UAF AdvisoryValkey
  2. CVE-2026-136158 RecordCVE Program
  3. Known Exploited Vulnerabilities CatalogCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →