Improper Neutralization of Special Elements in Data Query Logic in Spring AI - CVE-2026-59348

 

Improper Neutralization of Special Elements in Data Query Logic in Spring AI - CVE-2026-59348

Published: November 20, 2026


Vulnerability identifier: #VU168599
CSH Severity: Medium
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-59348
CWE-ID: CWE-943
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to retrieve or interfere with chat messages outside their own conversation.

The vulnerability exists due to incomplete escaping of RediSearch query syntax in RedisChatMemoryRepository search methods when building queries from untrusted conversation content or metadata. A remote attacker can manipulate the search query to retrieve or interfere with chat messages outside their own conversation.


Affected software

Spring AI

How to mitigate CVE-2026-59348

Install security update from vendor's website.

Spring AI - addressed in versions 2.0.2.1, 2.0.3

External References

Related Security Bulletins