CVE-2026-59381
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| spring | spring_integration | {"startIncluding":"7.1.0","endExcluding":"7.1.2.1"} | 7.1.2.1 |
| spring | spring_integration | {"startIncluding":"7.0.0","endExcluding":"7.0.7.1"} | 7.0.7.1 |
| spring | spring_integration | {"startIncluding":"6.5.0","endExcluding":"6.5.12"} | 6.5.12 |
| spring | spring_integration | {"startIncluding":"6.4.0","endExcluding":"6.4.14"} | 6.4.14 |
| spring | spring_integration | {"startIncluding":"5.5.0","endExcluding":"5.5.23"} | 5.5.23 |
| spring | spring_integration | {"startIncluding":"7.1.0","endExcluding":"7.1.3"} | 7.1.3 |
| spring | spring_integration | {"startIncluding":"7.0.0","endExcluding":"7.0.8"} | 7.0.8 |
References
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.