ADVISORIES

GitHub Advisory Database

GHSA-44f4-gvwj-6qg3

Spring AI Redis Store has TAG Field Query Injection Through Improper Neutralization of Special Characters

Details

In RedisFilterExpressionConverter of spring-ai-redis-store, when a user-controlled string is passed as a filter value for a TAG field, stringValue() inserts the value directly into the @field:{VALUE} RediSearch TAG block without escaping characters. This issue affects Spring AI: from 1.0.0 before 1.0.5, from 1.1.0 before 1.1.4.

Affected packages

EcosystemPackageAffected versions
Mavenorg.springframework.ai:spring-ai-redis-store
From 1.0.0-M5 before 1.0.5 (fixed in 1.0.5)
Mavenorg.springframework.ai:spring-ai-redis-store
From 1.1.0-M1 before 1.1.4 (fixed in 1.1.4)

References