Search

Find a vulnerability

Search criteria

    2 vulnerabilities found for Valkey JSON by Valkey

    CVE-2026-136158 (GCVE-0-2026-136158)

    Vulnerability from nvd – Published: 2026-11-24 14:06 – Updated: 2026-11-24 14:06
    VLAI
    Title
    Valkey JSON: Use-after-free in array mutation commands through a recursive JSONPath
    Summary
    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.
    CWE
    Impacted products
    Vendor Product Version
    Valkey Valkey JSON Affected: 1.0.0 , < 1.0.3 (semver)
    Create a notification for this product.
    Date Public
    2026-08-31 23:59
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "Valkey JSON",
              "repo": "https://github.com/valkey-io/valkey-json",
              "vendor": "Valkey",
              "versions": [
                {
                  "lessThan": "1.0.3",
                  "status": "affected",
                  "version": "1.0.0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Joao Teles"
            },
            {
              "lang": "en",
              "type": "finder",
              "value": "Pham Huong Giang"
            },
            {
              "lang": "en",
              "type": "finder",
              "value": "Troy Coll of Heroku Data Services (Salesforce)"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "zackcam"
            }
          ],
          "datePublic": "2026-08-31T23:59:19.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "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."
            }
          ],
          "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:29.651Z",
            "orgId": "7fefd608-56a6-419f-a002-fd8543c0710a",
            "shortName": "Akrites"
          },
          "references": [
            {
              "url": "https://github.com/valkey-io/valkey-json/security/advisories/GHSA-q7rf-74qm-hr9g"
            },
            {
              "url": "https://github.com/valkey-io/valkey-json/pull/118"
            },
            {
              "url": "https://github.com/valkey-io/valkey-json/pull/120"
            }
          ],
          "solutions": [
            {
              "lang": "en",
              "value": "Upgrade to Valkey JSON 1.0.3 or later, or to a valkey-bundle release that ships it."
            }
          ],
          "title": "Valkey JSON: Use-after-free in array mutation commands through a recursive JSONPath",
          "workarounds": [
            {
              "lang": "en",
              "value": "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."
            }
          ],
          "x_generator": {
            "engine": "cvelib 1.8.0"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "7fefd608-56a6-419f-a002-fd8543c0710a",
        "assignerShortName": "Akrites",
        "cveId": "CVE-2026-136158",
        "datePublished": "2026-11-24T14:06:29.651Z",
        "dateReserved": "2026-11-24T13:53:38.491Z",
        "dateUpdated": "2026-11-24T14:06:29.651Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136158 (GCVE-0-2026-136158)

    Vulnerability from cvelistv5 – Published: 2026-11-24 14:06 – Updated: 2026-11-24 14:06
    VLAI
    Title
    Valkey JSON: Use-after-free in array mutation commands through a recursive JSONPath
    Summary
    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.
    CWE
    Impacted products
    Vendor Product Version
    Valkey Valkey JSON Affected: 1.0.0 , < 1.0.3 (semver)
    Create a notification for this product.
    Date Public
    2026-08-31 23:59
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "Valkey JSON",
              "repo": "https://github.com/valkey-io/valkey-json",
              "vendor": "Valkey",
              "versions": [
                {
                  "lessThan": "1.0.3",
                  "status": "affected",
                  "version": "1.0.0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Joao Teles"
            },
            {
              "lang": "en",
              "type": "finder",
              "value": "Pham Huong Giang"
            },
            {
              "lang": "en",
              "type": "finder",
              "value": "Troy Coll of Heroku Data Services (Salesforce)"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "zackcam"
            }
          ],
          "datePublic": "2026-08-31T23:59:19.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "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."
            }
          ],
          "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:29.651Z",
            "orgId": "7fefd608-56a6-419f-a002-fd8543c0710a",
            "shortName": "Akrites"
          },
          "references": [
            {
              "url": "https://github.com/valkey-io/valkey-json/security/advisories/GHSA-q7rf-74qm-hr9g"
            },
            {
              "url": "https://github.com/valkey-io/valkey-json/pull/118"
            },
            {
              "url": "https://github.com/valkey-io/valkey-json/pull/120"
            }
          ],
          "solutions": [
            {
              "lang": "en",
              "value": "Upgrade to Valkey JSON 1.0.3 or later, or to a valkey-bundle release that ships it."
            }
          ],
          "title": "Valkey JSON: Use-after-free in array mutation commands through a recursive JSONPath",
          "workarounds": [
            {
              "lang": "en",
              "value": "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."
            }
          ],
          "x_generator": {
            "engine": "cvelib 1.8.0"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "7fefd608-56a6-419f-a002-fd8543c0710a",
        "assignerShortName": "Akrites",
        "cveId": "CVE-2026-136158",
        "datePublished": "2026-11-24T14:06:29.651Z",
        "dateReserved": "2026-11-24T13:53:38.491Z",
        "dateUpdated": "2026-11-24T14:06:29.651Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }