Valkey JSONに認証済みユーザーからリモートでコードを実行される脆弱性
Summary
Valkey JSON 1.0.0から1.0.2には、再帰的なJSONPathを使った配列操作で解放済みメモリを書き換えてしまう脆弱性があります。認証済みのユーザーがサーバーを確実にクラッシュさせられるほか、サーバーの実行権限でリモートからコードを実行される可能性も報告されています。修正版の1.0.3で対処できるため、速やかに更新してください。JSONモジュールを読み込まないサーバーは影響を受けません。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Valkey JSON 1.0.0から1.0.2には、再帰的なJSONPathを使った配列操作で解放済みメモリを書き換えてしまう脆弱性があります。認証済みのユーザーがサーバーを確実にクラッシュさせられるほか、サーバーの実行権限でリモートからコードを実行される可能性も報告されています。修正版の1.0.3で対処できるため、速やかに更新してください。JSONモジュールを読み込まないサーバーは影響を受けません。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| ValkeyValkey JSON |
≥ 1.0.0, < 1.0.3→ 1.0.3 |
1.0.3 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- web github.com