CVE-2026-59381
Received Received - Intake

Path Traversal in Spring Integration FTP/SFTP/SMB Outbound Gateway

Vulnerability report for CVE-2026-59381, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-02

Last updated on: 2026-12-02

Assigner: VMware

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-02
Last Modified
2026-12-02
Generated
2026-12-02
AI Q&A
2026-12-02
EPSS Evaluated
N/A
NVD
EUVD

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-59381 is a path traversal vulnerability in Spring Integration's FTP, SFTP, or SMB outbound gateways. It occurs when using the MGET command with a local directory expression that references the #remoteDirectory SpEL variable. The directory canonicalization before containment checks allows a malicious server to write files to arbitrary paths outside the intended directory.

Detection Guidance

Check if your Spring Integration application uses the MGET command with a local directory expression referencing #remoteDirectory. Review logs for unexpected file writes outside configured directories. No specific commands are provided in the context.

Impact Analysis

An attacker could exploit this to write malicious files to unintended locations on your system. This could lead to code execution, data corruption, or unauthorized access if the files are executed or accessed by other processes.

Compliance Impact

This vulnerability could lead to unauthorized file writes outside intended directories, potentially exposing sensitive data stored in those locations. For GDPR, this may violate principles of data protection and integrity. For HIPAA, it could result in unauthorized access to protected health information if files are written to restricted paths.

Mitigation Strategies

Upgrade to fixed versions: 7.1.3 OSS, 7.1.2.1 Enterprise, 7.0.8 OSS, 7.0.7.1 Enterprise, 6.5.12 Enterprise, 6.4.14 Enterprise, or 5.5.23 Enterprise. Avoid referencing #remoteDirectory in local directory expressions and validate resolved directories. Only connect to trusted servers.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-59381. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...