ZeroDay Brief
CVE-2026-59381

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.

CVSS
7.1High
Chance of exploitation (EPSS)
0.20%
Published
Dec 2, 2026
In the news
Not yet
More from this vendor

What to do

A serious security flaw in Spring Integration that can be attacked over the network by someone with an account. No attacks are reported yet; it can go in your normal patch cycle.

Action: Check the vendor's advisory in the references and apply updates as soon as they are available.

Fixed in: 5.5.23, 6.4.14, 6.5.12, 7.0.7.1, 7.0.8, 7.1.2.1, 7.1.3

Affected versions
Spring Integration
5.5.0 to before 5.5.23; 6.4.0 to before 6.4.14; 6.5.0 to before 6.5.12; 7.0.0 to before 7.0.7.1; 7.0.0 to before 7.0.8; 7.1.0 to before 7.1.2.1; 7.1.0 to before 7.1.3

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 products

Get alerts for these →

Timeline 1

Latest change: CVE-2026-59381 published (CVSS 7.1) (Dec 2, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

Wed, Dec 2, 2026

  1. CVECVE-2026-59381 published (CVSS 7.1)CVE Program · 07:10 UTC

References 2

  • spring.io /security/cve-2026-59381
  • nvd.nist.gov /vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:L&version=3.1

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”