CVE-2026-136158: Valkey JSON: Use-after-free in array mutation commands through a recursive JSONPath

Published Nov 24, 2026
·
Updated

In Valkey JSON 1.0.0 through 1.0.2, a recursive JSONPath expression such as $.. returns both an array and elements nested inside it. The size-changing mutators (JSON.ARRAPPEND, JSON.ARRINSERT, JSON.ARRPOP, JSON.ARRTRIM and JSON.CLEAR) process the ancestor first, which can reallocate its element buffer and free the old storage while the descendant entries in the result set still point into it; the module then writes through those dangling pointers. An authenticated user who can run these commands can use this to reliably crash the server, and it has been developed into remote code execution as the user the server runs as. Servers that do not load the JSON module, including through valkey-bundle, are not affected.

Affected Software

1 affected component
Valkey Valkey JSON>=1.0.0<=1.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.0.3

Event History

Nov 24, 2026
CVE Published
via MITRE·02:06 PM
Data Sourced
via MITRE·02:06 PM
RemedyDescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are affected?

Only Valkey instances that load the Valkey JSON module, including through valkey-bundle, are affected. Servers that do not load the JSON module are not affected.

2

What access does an attacker need?

An attacker needs authenticated access and permission to run the affected JSON array mutation commands. Exploitation uses a recursive JSONPath such as $..* together with JSON.ARRAPPEND, JSON.ARRINSERT, JSON.ARRPOP, JSON.ARRTRIM, or JSON.CLEAR.

3

What is the practical impact?

An attacker can reliably crash the server. The issue has also been developed into remote code execution as the operating-system user running the Valkey server.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203