Vulnerability  ·  2026-08-28

Spring AI — path traversal in ResourceCacheService and RediSearch tag injection in RedisChatMemoryRepository

VulnerabilityMedium impactGlobal
CVE-2026-59294: Spring AI's ResourceCacheService.getCacheName() appends a URI fragment verbatim into the cache filename without stripping path separators or '..' sequences before passing it to a File constructor, enabling arbitrary file write via path traversal. CVE-2026-59319: RedisChatMemoryRepository.findByMetadata() builds RediSearch tag/text queries from caller-supplied metadata without applying RediSearchUtil.escape(), unlike sibling methods in the same class, allowing query injection from user-controlled metadata values.
These allow an attacker to write arbitrary files onto the host running a Spring AI resource cache (potential RCE via file planting) or to inject RediSearch queries to expose or manipulate chat memory across conversations/tenants in Spring AI's Redis-backed memory store.
Crafted URI fragment written to cache file path; or user-controlled metadata values injected into RediSearch tag/text queries
Spring AI 1.0.0-1.0.9, 1.1.0-1.1.8, 2.0.0
Upgrade to Spring AI 2.0.1 or later
Spring AI 2.0.1 release notesNVD - CVE-2026-59294NVD - CVE-2026-59319
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →