概要
認証なしで、検索条件を差し込まれ、見えないはずの文書を読まれる。
元の説明(英語)を読む
TypesenseVectorStore is vulnerable to a filter expression injection that can bypass application-enforced metadata filters. TypesenseFilterExpressionConverter escapes user-controlled filter values only as JSON string literals before embedding them in the filter_by string sent to Typesense. Typesense's own filter-query tokenizer does not treat those escapes as delimiting a literal value and instead splits on characters that can appear inside an unescaped value, so a crafted value can terminate the intended clause and introduce additional filter conditions of the attacker's choosing. Applications that incorporate untrusted input into a metadata filter value passed to SearchRequest.filterExpression(...) (or otherwise reach TypesenseVectorStore 's filter conversion, including delete operations) are affected. An attacker who controls such a value can inject an additional clause that overrides or extends an application's own restrictions, such as a tenant- or permission-scoping filter, resulting in disclosure of documents that should not have been visible to them.
影響を受ける人
Spring AI で Typesense を使う開発者
対策
- Spring AI を 2.0.3 以降(1.1 系は 1.1.10、1.0 系は 1.0.11)に更新する
国内の動き
本文に同じ CVE 番号のある国内の注意喚起・報道は、まだ無い。
海外の動き
本文に同じ CVE 番号のある海外の注意喚起・報道は、まだ無い。
PoC
公開されている PoC は、まだ見つかっていない。