Intel

AIKIDO-2026-448669

spring-ai-model-chat-memory-repository-redis is vulnerable to Improper Neutralization of Special Elements in Data Query Logic

Improper Neutralization of Special Elements in Data Query LogicCVE-2026-59319 Published 6 days ago

43

Medium Risk

This Affects:

Are you affected? Scan for Free

TL;DR

spring-ai-model-chat-memory-repository-redis findByMetadata() builds RediSearch queries without RediSearchUtil.escape(), unlike other methods in the same class. A tag value such as x} | * can break out of the clause and match all indexed chat messages. That exposes conversation memory across tenants. The patch escapes metadata values before building the query.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and user-controlled values are passed to RedisChatMemoryRepository.findByMetadata() on a tag-typed field.

Background info

spring-ai-model-chat-memory-repository-redis is vulnerable to Improper Neutralization of Special Elements in Data Query Logic in versions 2.0.0 - 2.0.0.

How to fix this

Upgrade the org.springframework.ai:spring-ai-model-chat-memory-repository-redis library to the patch version.