SpEL Injection via Unescaped Filter Key in SimpleVectorStore Leads to Remote Code Execution
Spring AI
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.springframework.ai:spring-ai-vector-store Maven |
|
|
Original description
In Spring AI, a SpEL injection vulnerability exists in SimpleVectorStore when a user-supplied value is used as a filter expression key. A malicious actor could exploit this to execute arbitrary code. Only applications that use SimpleVectorStore and pass user-supplied input as a filter expression key are affected. This issue affects Spring AI: from 1.0.0 before 1.0.5, from 1.1.0 before 1.1.4.