Spring AIのTypesense連携で、フィルター式の注入により情報が閲覧される脆弱性
Summary
Spring AIのTypesenseVectorStoreに、フィルター式の注入により、アプリケーションが設定したテナント分離などの絞り込み条件を回避される脆弱性が見つかりました。悪用されると、本来見えてはいけない文書が閲覧される可能性があります。影響するのは1.0.11未満、1.1.10未満、2.0.2.1未満、2.0.3未満の版で、修正版は1.0.11、1.1.10、2.0.2.1、2.0.3です。修正版への更新をおすすめします。
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.
Spring AIのTypesenseVectorStoreに、フィルター式の注入により、アプリケーションが設定したテナント分離などの絞り込み条件を回避される脆弱性が見つかりました。悪用されると、本来見えてはいけない文書が閲覧される可能性があります。影響するのは1.0.11未満、1.1.10未満、2.0.2.1未満、2.0.3未満の版で、修正版は1.0.11、1.1.10、2.0.2.1、2.0.3です。修正版への更新をおすすめします。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| SpringSpring AI |
≥ 2.0.0, < 2.0.2.1→ 2.0.2.1 ≥ 1.1.0, < 1.1.10→ 1.1.10 ≥ 1.0.0, < 1.0.11→ 1.0.11 ≥ 2.0.0, < 2.0.3→ 2.0.3 |
2.0.2.1 1.1.10 1.0.11 2.0.3 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web spring.io
- web nvd.nist.gov
- web nvd.nist.gov
- web github.com