Home › CVE › Vulnerabilities
CVE-2026-59381 — Spring Integration
One of 12 Spring Integration vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesSummary
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.
Severity breakdown
High · 7.1
An attacker with a normal user account can exploit this over the network if a user is tricked into an action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Login needed
- yes, a normal user account
- User action needed
- yes, someone must click, open or visit something
- Scope
- reaches beyond the vulnerable component (e.g. from a sandbox or VM to the host)
- Impact
- high on integrity, low on confidentiality and availability
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Spring Integration | ≥ 7.1.0, < 7.1.2.1 | 7.1.2.1 |
| ≥ 7.0.0, < 7.0.7.1 | 7.0.7.1 | |
| ≥ 6.5.0, < 6.5.12 | 6.5.12 | |
| ≥ 6.4.0, < 6.4.14 | 6.4.14 | |
| ≥ 5.5.0, < 5.5.23 | 5.5.23 | |
| ≥ 7.1.0, < 7.1.3 | 7.1.3 | |
| ≥ 7.0.0, < 7.0.8 | 7.0.8 |
References by type
Other references
Affected
- Spring Integration
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-59381?
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 .
How severe is CVE-2026-59381?
CVE-2026-59381 has a CVSS 3.1 base score of 7.1 (high), from the CNA (vmware.com). An attacker with a normal user account can exploit this over the network if a user is tricked into an action, but only under specific conditions.
Is CVE-2026-59381 being exploited?
Not as far as is known: CVE-2026-59381 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-59381?
Spring Integration ≥ 7.1.0, < 7.1.2.1 (fixed in 7.1.2.1); Spring Integration ≥ 7.0.0, < 7.0.7.1 (fixed in 7.0.7.1); Spring Integration ≥ 6.5.0, < 6.5.12 (fixed in 6.5.12); Spring Integration ≥ 6.4.0, < 6.4.14 (fixed in 6.4.14); and more, listed on this page.
How do I fix CVE-2026-59381?
Update to a fixed release: Spring Integration 7.1.2.1; Spring Integration 7.0.7.1; Spring Integration 6.5.12.