Path traversal in Spring AI - CVE-2026-41863

 

Path traversal in Spring AI - CVE-2026-41863

Published: May 23, 2026


Vulnerability identifier: #VU132209
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-41863
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Pivotal
Affected software:
Spring AI

Detailed vulnerability description

The vulnerability allows a remote user to write files outside the intended target directory.

The vulnerability exists due to path traversal in Path.resolve when writing files to disk using LLM-influenced filenames. A remote user can provide a crafted filename to write files outside the intended target directory.

The issue can affect writes into restricted directories.


How to mitigate CVE-2026-41863

Install security update from vendor's website.

Sources