Cabecera Penligente

CVE-2026-59417: Spring AI Redis Cache Scope and Fixes

CVE-2026-59417 concerns a boundary that an AI application can miss even when Redis access is restricted: which authenticated user may receive a cached answer. Spring AI applications using Redis-backed semantic caching need both a corrected release and a scope that follows the application’s trusted security context. Similar questions do not establish that two callers may share the same response.

En Spring security advisory, published November 19, 2026, describes semantic caching that does not adequately account for the calling user’s principal. The result can be reuse across security boundaries, including exposure of information or cache poisoning. This concerns the affected caching path; it does not mean every Redis deployment or every Spring AI application exposes answers.

Choose the corrected release for the support track

Support trackAffected releasesAdvisory correction
Open source 2.x2.0.0–2.0.22.0.3
Commercial 2.x2.0.0–2.0.22.0.2.1
Commercial 1.1.x1.1.0–1.1.91.1.10
Commercial 1.0.x1.0.0–1.0.101.0.11

Use the advisory as the version authority. The rolling upgrade documentation explains current API behavior and migration work; its section placement should not override the security release matrix. Record the dependency actually resolved into the deployed application, including any overridden or shaded copy, before treating a build-file edit as remediation.

A required resolver still needs a meaningful scope

En migration notes require an explicit SemanticCacheScopeResolver para SemanticCacheAdvisor. Scope should come from authenticated principal, tenant, or equivalent trusted context. A user-supplied identity inside the prompt does not establish that identity. Likewise, one constant shared by all users creates one shared cache boundary, however securely Redis itself is hosted.

Current migration semantics also change the previous implicit system-prompt boundary. When a system policy, retrieval entitlement, or policy revision affects which answer a caller may receive, include that distinction in the application’s scope design. This is a security-policy decision: two requests may share a cache only when they are allowed to share the resulting answer.

Trusted identity defines separate answer scopes; a null or blank scope bypasses both semantic-cache reads and writes.
Conceptual scope relationships from current Spring documentation; no cache reproduction was executed.

Keep a small isolation evidence matrix

Use an isolated Redis namespace and synthetic canary answers. Replace the model call with a controlled test double where practical, so cache reuse can be distinguished from fresh generation. The following expected outcomes are a proposed validation method, not tests performed for this article.

CasoEvidence to retain
Principal A repeats an eligible questionA hit is possible within the same authorized scope.
Principal B asks the same questionA’s scoped canary answer is not reused for B.
Resolver returns null or blankBoth cache reads and writes are bypassed.
Security-relevant policy version changesThe changed scope prevents reuse of an answer from the earlier policy.
Legacy cache entry remainsIts old context hash does not match the new scheme; storage retention is handled explicitly.

Observe both the returned answer and whether the cache and provider paths were invoked. A plausible response alone cannot show where it originated. Keep sensitive customer prompts out of this check, and state which principal and entitlement distinctions the chosen scope represents.

Separate authorization from cache housekeeping

En Redis integration documentation describes context-hash-scoped matching and optional cache TTL, with no expiry by default. Expiring old answers can reduce retention, but it does not supply missing principal isolation. Entries under the earlier context-hash scheme no longer match; decide separately whether to clear them or let an explicit retention policy remove them.

Custom SemanticCache implementations need attention too: their lookup and write paths must honor the context hash instead of silently ignoring it. Close the issue with three records: the running corrected artifact, the trusted scope contract, and observed isolation outcomes. A dependency version alone does not establish trusted scoping or observed isolation.

Check same and different principals, security-policy scope changes and unmatched legacy hashes; TTL is optional retention housekeeping rather than principal isolation.
Expected outcomes for an isolated synthetic-data check, not results from an executed test.

For an AI pentesting workflow, retain this matrix with authorized assessment evidence. The official Penligent 3.0 video below demonstrates a general product workflow; it does not demonstrate this CVE’s exploitation or remediation.

Method: AI-assisted synthesis checked against Spring’s advisory and current migration and Redis documentation on December 2, 2026. The evidence matrix is editorial analysis. No first-hand cache reproduction, customer leak, or deployment test is claimed.

Comparte el post:
Entradas relacionadas
es_ESSpanish