Spring AIのRedisVectorStoreに検索クエリを改ざんされる脆弱性 テナント分離を回避される恐れ
Summary
Spring AIのRedisVectorStoreでは、信頼できない値をメタデータのフィルター式に入れると検索クエリの構造を変えられ、ほかのテナントの文書や埋め込みが返される恐れがあります。影響するのは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のRedisVectorStoreでは、信頼できない値をメタデータのフィルター式に入れると検索クエリの構造を変えられ、ほかのテナントの文書や埋め込みが返される恐れがあります。影響するのは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.
RedisVectorStore is vulnerable to RediSearch query injection when metadata filter expressions are built from untrusted values.
RedisFilterExpressionConverter translates Spring AI filter expressions into RediSearch query clauses, but escapes only a subset of the characters that RediSearch treats as query syntax.
A value that reaches a filter expression from an untrusted source can therefore change the structure of the executed query instead of being matched as literal text.
Compound filter expressions are additionally emitted without grouping, so RediSearch operator precedence can alter the effective meaning of a filter that combines several conditions.
In applications that rely on metadata filters to enforce authorization or tenant isolation, this can broaden a similarity search beyond its intended scope and return documents and embeddings belonging to other tenants.
Any application that incorporates user-supplied values into Redis vector store filter expressions is impacted.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web security@vmware.com
- web security@vmware.com
- web nvd.nist.gov
- web github.com