Horizon Alert
Summary of the vulnerability and why it matters
Applications utilizing spring-ai-redis-semantic-cache may expose sensitive user information or malicious content to other users due to a shared cache vulnerability. This could allow unauthorized access to data or the distribution of harmful content.
- User data and sensitive information can be exposed.
- Shared AI caches pose a risk to user privacy.
- Confirm relevance and exposure for shared cache usage.
Attack Path
How an attacker could exploit the issue
Attackers can exploit applications using a shared semantic cache by crafting requests that lead to unauthorized data exposure or manipulation. When multiple users access a system where the semantic cache is not properly isolated per user, an attacker can potentially access sensitive information from other users' interactions or inject malicious content into the cache, which is then served to unsuspecting users. This allows for cross-user information disclosure and cache poisoning, as cached responses are only differentiated by the system prompt's hash, not by user or session.
- No specific entry condition is needed.
- Triggered by asking similar questions.
- Risk of data exposure and poisoning.
Live Threat
Current exploitation, exposure, and threat context
When supported by the advisory, applications using spring-ai-redis-semantic-cache with a shared SemanticCacheAdvisor could expose one user's cached data to another user, or allow an attacker to poison the cache with malicious content. This occurs because cached responses are not isolated by user, session, or tenant, but only by the hash of the system prompt, creating a shared cache pool.
- User data could be disclosed.
- Cache is shared across users.
- Sensitive information may be exposed.
Operational Fix
Recommended remediation, mitigation, and detection steps
Applications utilizing spring-ai-redis-semantic-cache, particularly when the SemanticCacheAdvisor is shared across users, face a critical risk of cross-user data exposure and cache poisoning. The absence of user-specific isolation in the caching mechanism means sensitive information from one user could be disclosed to others, and malicious actors can inject their own content into the cache. The first practical step is to identify all instances of this vulnerable component, confirm their reachability and business criticality, and then assign ownership for remediation planning.
- Application owners should address this vulnerability.
- Verify cache reachability and user exposure.
- Plan remediation based on identified risk.