Incorrect permission assignment for critical resource in Spring AI - CVE-2026-40979
Published: April 27, 2026
Spring AI
Detailed vulnerability description
The vulnerability allows a local user to disclose the ONNX model used by the application and modify cached model data.
The vulnerability exists due to improper access control in the ONNX model cache when using the default world-writable predictable /tmp directory. A local user can access or alter files in the cache directory to disclose the ONNX model used by the application and modify cached model data.
Only applications that use TransformersEmbeddingModel with caching enabled and the default cache location are affected.