CVE-2026-59294: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Spring Spring AI
Description
CVE-2026-59294 is a path traversal vulnerability in Spring AI affecting versions 1.0.9 and earlier, 1.1.0 through 1.1.8, and 2.0.0. The vulnerability arises because ResourceCacheService.getCacheName() constructs file paths by appending URI fragments without sanitizing path separators or '..' sequences, allowing potentially unauthorized file writes. The CVSS 3.1 score is 5.9 (medium severity). No official patch or remediation guidance is currently available.
CVSS v3.1
Score 5.9medium
Affected software
Spring
Spring AI
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Spring AI's ResourceCacheService.getCacheName() method involves improper limitation of a pathname to a restricted directory (CWE-22). The method builds an on-disk filename by directly appending the URI fragment without removing path traversal characters such as '..' or path separators. This filename is then used to create a File object under a resource parent folder, where downloaded bytes are written. This flaw can allow an attacker with low privileges to write files outside the intended directory, potentially leading to integrity impacts. Affected versions include 1.0.9 and earlier, 1.1.0 through 1.1.8, and 2.0.0. The CVSS vector indicates network attack vector, high attack complexity, low privileges required, no user interaction, unchanged scope, no confidentiality impact, high integrity impact, and low availability impact.
Potential Impact
The vulnerability allows an attacker to write files outside the intended directory by exploiting path traversal in the file naming process. This can lead to integrity compromise of the system by overwriting or placing malicious files in unauthorized locations. There is no confidentiality impact reported. Availability impact is low. The attack requires network access and low privileges but has high attack complexity.
Mitigation Recommendations
No official patch or remediation level is currently provided by the vendor. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should consider restricting access to the vulnerable service and monitor for suspicious file writes related to this component.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- vmware
- Date Reserved
- 2026-07-04T18:13:34.323Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a909cf8acd9273b49b2d05c
Added to database: 08/27/2026, 20:24:24 UTC
Last enriched: 09/10/2026, 04:23:14 UTC
Last updated: 10/11/2026, 18:48:20 UTC
Views: 79
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.