CVE-2026-59381
HIGH 7.1
Summary
The fix for CVE-2026-40987 validates only the file name against the local directory. For the remote file outbound gateway MGET command, the local directory itself can be derived from the server-controlled listing entry via the documented #remoteDirectory SpEL variable in a local-directory-expression . Since the directory is canonicalized before the containment check, the check passes even though the directory has already escaped the intended root, and the framework then creates the escaped directory. As a result, a malicious FTP, SFTP or SMB server can write files with attacker-controlled content to arbitrary paths outside the configured local directory. Applications are affected if they use the MGET command of an FTP, SFTP or SMB outbound gateway with a local directory expression that references #remoteDirectory (as in the reference documentation examples) and connect to a server that may be malicious or compromised.
Key facts
- Vendor: spring
- CVSS 3.1: 7.1 (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:L)
- EPSS (30-day exploitation probability): 0.20%
- Published: 2026-12-02
- Last modified: 2026-12-02
Data aggregated from NVD, CISA KEV, FIRST EPSS and OSV.dev. Updated 2026-12-03.
Get alerts and watchlists for vulnerabilities like this · Browse all vulnerabilities