Path traversal in Spring AI - CVE-2026-59294
Published: August 31, 2026
Vulnerability details
The vulnerability allows a remote user to write arbitrary files.
The vulnerability exists due to path traversal in ResourceCacheService.getCacheName() when handling model or tokenizer URIs from a less-trusted source. A remote user can supply a URI with a crafted fragment to write arbitrary files.
Exploitation requires an application to pass model or tokenizer URIs from a less-trusted source, such as tenant configuration, an admin UI, or an external catalogue, to TransformersEmbeddingModel.setModelResource() or setTokenizerResource().
Affected software
Library Support for Spring
How to mitigate CVE-2026-59294
Library Support for Spring - update to 3.5.19