Spring AI Redis Store has TAG Field Query Injection Through Improper Neutralization of Special Characters
Date: 2026-03
Affected: maven/org.springframework.ai:spring-ai-redis-store, maven/org.springframework.ai:spring-ai-redis-store
Attack vector: sql-injection
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2026-22743
CVE-2026-22744
CWE: CWE-74
CWE-89
CWE-943
CVSS: 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N)

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.


Mitigations:

Architectural layers (MAESTRO):