CVE-2026-59348: Incomplete Escaping in RedisChatMemoryRepository Query Methods

Published Dec 2, 2026
·
Updated

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.

Affected Software

1 affected component
Spring Spring AI

Event History

Dec 2, 2026
CVE Published
via MITRE·07:09 AM
Data Sourced
via MITRE·07:09 AM
DescriptionSeverity

Frequently Asked Questions

1

Which deployments are exposed?

Applications using Spring AI's RedisChatMemoryRepository are impacted if they pass end-user-controlled conversation content or metadata values into its search methods. The issue is limited to query-building paths that remain unescaped.

2

What does an attacker need to exploit this issue?

An attacker needs control over a value supplied to one of the unescaped query paths. They can then include RediSearch query syntax that changes the executed query structure.

3

What could exploitation allow?

A crafted query can broaden a search beyond its intended scope. This may allow retrieval of, or interference with, chat messages belonging to other conversations.

4

How can I reduce exposure before a fix is available?

Avoid passing untrusted end-user content or metadata directly into RedisChatMemoryRepository search methods. Ensure such values cannot contain RediSearch query syntax in the affected query-building paths.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203