CVE-2026-59381
Spring Integration Remote File MGET Local Directory Path Traversal via Server-Controlled Remote Directory
Mitigation
- Upgrade Spring Integration to 7.0.8 or later.
Who should check
- Anyone running Spring Integration >= 7.1.0, < 7.1.2.1; >= 7.0.0, < 7.0.7.1; >= 6.5.0, < 6.5.12; >= 6.4.0, < 6.4.14; >= 5.5.0, < 5.5.23; >= 7.1.0, < 7.1.3; >= 7.0.0, < 7.0.8
Vulnerability facts
- Affected
- Spring Integration >= 7.1.0, < 7.1.2.1; >= 7.0.0, < 7.0.7.1; >= 6.5.0, < 6.5.12; >= 6.4.0, < 6.4.14; >= 5.5.0, < 5.5.23; >= 7.1.0, < 7.1.3; >= 7.0.0, < 7.0.8
- Fixed in
- Spring Integration 7.1.2.1, Spring Integration 7.0.7.1, Spring Integration 6.5.12, Spring Integration 6.4.14, Spring Integration 5.5.23, Spring Integration 7.1.3, Spring Integration 7.0.8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 7.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: Low
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: Low
- Integrity impact: High
- Availability impact: Low
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Spring Integration | >= 7.1.0, < 7.1.2.1; >= 7.0.0, < 7.0.7.1; >= 6.5.0, < 6.5.12; >= 6.4.0, < 6.4.14; >= 5.5.0, < 5.5.23; >= 7.1.0, < 7.1.3; >= 7.0.0, < 7.0.8 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-59381. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-59381.md Affected: Spring Integration >= 7.1.0, < 7.1.2.1; >= 7.0.0, < 7.0.7.1; >= 6.5.0, < 6.5.12; >= 6.4.0, < 6.4.14; >= 5.5.0, < 5.5.23; >= 7.1.0, < 7.1.3; >= 7.0.0, < 7.0.8 Fixed in: Spring Integration 7.1.2.1, Spring Integration 7.0.7.1, Spring Integration 6.5.12, Spring Integration 6.4.14, Spring Integration 5.5.23, Spring Integration 7.1.3, Spring Integration 7.0.8 Steps: 1. Search this machine and project for Spring Integration: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2026-59381 being exploited?
There is no confirmed exploitation: CVE-2026-59381 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-59381?
High: CVSS 7.1 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-59381?
Spring Integration >= 7.1.0, < 7.1.2.1; >= 7.0.0, < 7.0.7.1; >= 6.5.0, < 6.5.12; >= 6.4.0, < 6.4.14; >= 5.5.0, < 5.5.23; >= 7.1.0, < 7.1.3; >= 7.0.0, < 7.0.8.
Is there a fix for CVE-2026-59381?
Yes. Fixed in Spring Integration 7.1.2.1, Spring Integration 7.0.7.1, Spring Integration 6.5.12, Spring Integration 6.4.14, Spring Integration 5.5.23, Spring Integration 7.1.3, Spring Integration 7.0.8. Upgrade Spring Integration to 7.0.8 or later.
How do I check if I'm affected by CVE-2026-59381?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More spring vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| HIGH 7.5 | CVE-2026-59444 Spring Integration Redis Queue Unsafe Java Deserialization | Spring | ||
| MEDIUM 6.5 | CVE-2026-59443 Spring Integration FluxAggregatorMessageHandler unbounded memory consumption via the sequenceSize message header | Spring | ||
| LOW 3.1 | CVE-2026-59441 Subpackage Deserialization in Spring Cloud Stream | Spring | ||
| LOW 3.1 | CVE-2026-59440 Potential for arbitrary Class Loading in Spring Cloud Function | Spring | ||
| LOW 3.1 | CVE-2026-59439 Spring Cloud Function allows unbounded JSON Collection | Spring |