Description
In Spring AI's Semantic Cache support, the context hash used to isolate cached responses between different system prompts could allow cached responses to be shared across unrelated contexts.
Affected versions:
Spring AI: 2.0.0
Published: 2026-08-21
Score: 4.2 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Spring AI does not separate cached responses for different system prompts as strictly as intended. The context hash, which is used to isolate cached replies, truncates a SHA‑256 value, creating the possibility that two unrelated prompts produce identical hashes. Because of this collision, a requester can retrieve a cached answer that was generated for a different context, exposing information that should have been isolated to the original tenant.

Affected Systems

Products affected are Spring AI version 2.0.0.

Risk and Exploitability

The CVSS score of 4.2 reflects a moderate risk. EPSS is not available and the vulnerability is not listed in the CISA KEV catalog, indicating no known widespread exploitation. The attack vector is inferred to involve normal usage of the Semantic Cache feature, which allows collision exploitation if an attacker can trigger identical truncated hashes for different tenant contexts.

Generated by OpenCVE AI on August 21, 2026 at 13:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Spring AI to the latest patched release that addresses the truncated hash collision bug.
  • If an immediate upgrade is not possible, disable the Semantic Cache feature or limit its use to single‑tenant contexts until the fix is available.
  • Review and reinforce tenant‑specific context handling in the application code to ensure cached data is never shared across unrelated tenants.

Generated by OpenCVE AI on August 21, 2026 at 13:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Fri, 21 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 21 Aug 2026 14:45:00 +0000

Type Values Removed Values Added
First Time appeared Spring
Spring spring Ai
Vendors & Products Spring
Spring spring Ai

Fri, 21 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Description In Spring AI's Semantic Cache support, the context hash used to isolate cached responses between different system prompts could allow cached responses to be shared across unrelated contexts. Affected versions: Spring AI: 2.0.0
Title Semantic Cache Cross-Tenant Isolation Bypass via SHA-256 Truncation
Weaknesses CWE-668
References
Metrics cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N'}


Subscriptions

Spring Spring Ai
cve-icon MITRE

Status: PUBLISHED

Assigner: vmware

Published:

Updated: 2026-08-21T14:29:06.814Z

Reserved: 2026-07-04T18:13:46.709Z

Link: CVE-2026-59308

cve-icon Vulnrichment

Updated: 2026-08-21T14:29:01.164Z

cve-icon NVD

Status : Received

Published: 2026-08-21T12:16:30.270

Modified: 2026-08-21T15:16:42.360

Link: CVE-2026-59308

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T14:30:07Z

Weaknesses
  • CWE-668

    Exposure of Resource to Wrong Sphere