Query injection in Spring AI RedisChatMemoryRepository search methods
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
Spring AI's RedisChatMemoryRepository builds RediSearch queries from caller-supplied conversation content and metadata, and some query-building paths lack the escaping that a prior fix added to one path. An attacker who controls a value passed into an unescaped path can inject RediSearch query syntax that changes the executed query, broadening searches to chat messages outside the caller's conversation. Applications that pass end-user content or metadata into the repository's search methods are affected. The affected versions are from 2.0.0 before 2.0.2.1 and from 2.0.0 before 2.0.3 of Spring AI.
Written with Claude Haiku 5.5 from the sources below · 2026-12-02
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade Spring AI to 2.0.2.1 or 2.0.3, the fixed versions listed for this product. The sources list no advisory identifier for this fix.
Written with Claude Haiku 5.5 from the sources below · 2026-12-02
- Fix · CNA Spring AI (Spring) Fixed in 2.0.2.1, 2.0.3
Timeline
- 2026-12-02 Threatist record created from CVE-2026-59348
- 2026-12-02 Alias added: GHSA-cw7h-ww36-rjwf
References
More VMware vulnerabilities
- TI-2026-94633 Authentication bypass in VMware vCenter Directory Service KEVCVSS 3.1CRITICAL 9.8
- TI-2026-42442 Directory traversal in VMware vCenter Syslog server KEVCVSS 3.1CRITICAL 9.8
- TI-2024-26040 VMware vCenter Server privilege escalation to root via network packet KEVCVSS 3.1CRITICAL 9.8
- TI-2024-26039 Heap overflow in VMware vCenter Server lets attackers run code KEVCVSS 3.1CRITICAL 9.8
- TI-2024-24610 Heap overflow in VMware vCenter Server DCERPC implementation KEVCVSS 3.1CRITICAL 9.8
- TI-2023-16914 Out-of-bounds write in VMware vCenter Server DCERPC implementation KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-59348 · CVE Program
- CVE-2026-59348 · NVD
- GHSA-cw7h-ww36-rjwf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences