What happened
The Spring AI Coherence vector store builds its query extractor directly from a quoted key in the user-supplied filter DSL, without validating it against known metadata fields. This lets a filter expression bypass the metadata-scope constraint and read vectors outside the intended user/tenant partition — an authorization/access-control flaw (CWE-639-style key-based bypass) in the RAG retrieval path.
Why it matters
Spring AI vector stores commonly implement tenant/user isolation by metadata-filtering embeddings during retrieval. If the filter key is attacker-influenced and unchecked, a tenant can request vectors outside its scope — a cross-tenant information disclosure that breaks RAG isolation in multi-tenant enterprise AI deployments.
Attack vector
CoherenceFilterExpressionConverter builds the underlying Coherence extractor directly from a quoted key in the Spring AI filter DSL without validating that the key is a real metadata field, so a crafted filter expression can bypass the intended metadata-scope restriction and return records from other users/tenants in the Coherence backend.
Affected systems
Spring AI CoherenceVectorStore (CoherenceFilterExpressionConverter) — affected versions in the 1.0/1.1 line
Mitigation
Upgrade to the Spring AI version that fixes CoherenceFilterExpressionConverter (patched in the relevant Spring AI GA release); validate/whitelist metadata filter keys before transmission.