Incomplete Escaping in RedisChatMemoryRepository Query Methods
- CVE-2026-59348
- GHSA-cw7h-ww36-rjwf
- EUVD-2026-141030
Description
RedisChatMemoryRepository is vulnerable to RediSearch query injection when processing untrusted input. The repository builds RediSearch queries from caller-supplied conversation content and metadata values. A prior fix added escaping to one of these query-building paths, but other paths that construct queries the same way were left unescaped. An attacker who controls a value passed into one of the unescaped paths can include RediSearch query syntax that alters the structure of the executed query rather than being treated as plain search text. This can broaden a search beyond its intended scope, allowing retrieval of, or interference with, chat messages outside the caller's own conversation. Any application that passes end-user-supplied content or metadata into RedisChatMemoryRepository's search methods is impacted.
Text from the CVE.org record.
Affected
Spring Spring AI
- from 2.0.0 to before 2.0.2.1
- from 2.0.0 to before 2.0.3
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.