1. Accueil
  2. Vulnérabilités
  3. CVE-2026-136158

CVE-2026-136158

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

Publiée le 24 nov. 2026 · modifiée le 1 déc. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Moyen 52/100

Résumé

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.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Valkey (1 ligne(s))
Valkey
ProduitVersionsCorrigé dansSource
JSON de 1.0.0 (inclus) à 1.0.3 (exclu) — CNA (éditeur ou attributeur)

Correctif

Correctifsource officielle

Upgrade to Valkey JSON 1.0.3 or later, or to a valkey-bundle release that ships it.

Source : CNA (éditeur ou attributeur)

Contournement

Contournementsource officielle

Use Valkey ACLs to restrict JSON.ARRAPPEND, JSON.ARRINSERT, JSON.ARRPOP, JSON.ARRTRIM and JSON.CLEAR if your application does not use them. Applications that pass user-controlled JSONPath expressions to these commands are the most exposed; limiting paths to non-recursive expressions also avoids the defect.

Source : CNA (éditeur ou attributeur)

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1, CNA:Akrites)
Faiblesse
CWE-416 · Corruption mémoire

Comment sont obtenues et calculées ces données