CVE-2026-40987

Remote-file synchronizer in Spring Integration writes server-supplied filename under localDirectory without canonicalization

Published Jun 11, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
Description
A malicious or compromised FTP/SFTP/SMB server can write arbitrary files anywhere on the client filesystem (outside the configured local-directory) with attacker-controlled content.

Affected versions:
Spring Integration 7.0.0 through 7.0.4; 6.5.0 through 6.5.8; 6.4.0 through 6.4.11; 6.3.0 through 6.3.14; 5.5.0 through 5.5.20.

Analysis

AI-generated

Technical impact

The vulnerability allows a malicious or compromised FTP, SFTP, or SMB server to cause Spring Integration's remote-file synchronizer to write files under a specified local directory using a filename supplied by the server. Because the filename is not canonicalized, an attacker can manipulate the path to write arbitrary files outside the intended directory, potentially overwriting critical system files or placing malicious code on the client machine, which can enable remote code execution or privilege escalation.

Affected Systems

Spring Integration versions 7.0.0 through 7.0.4, 6.5.0 through 6.5.8, 6.4.0 through 6.4.11, 6.3.0 through 6.3.14, and 5.5.0 through 5.5.20 are affected. The flaw is triggered when the remote-file synchronizer component is used with an insecure remote server.

Risk and Exploitability

The CVSS score of 7.1 indicates a high severity. The EPSS score is not available, so the current likelihood of exploitation is unknown, but the widespread affected versions and the ability to exploit the flaw whenever the synchronizer connects to an attacker‑controlled server raise concern. The issue is not listed in the CISA KEV catalog, yet the potential for remote code execution warrants monitoring and rapid remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Spring Integration to a version that contains the fix – for example, 7.0.5 or newer, or any later release that excludes the affected 6.x and 5.5 series.
  • If an immediate upgrade is not viable, place the application behind a network firewall or other filtering device that blocks unauthorized FTP, SFTP, or SMB traffic, and restrict the synchronizer to trusted servers only.
  • Ensure the localDirectory parameter is configured to a fully canonicalized, non‑relative path and consider implementing additional client‑side validation to reject any filename that resolves outside this directory.

Generated by OpenCVE AI on June 11, 2026 at 07:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-792x-6vq6-j8r9 Spring Integration File Support: FTP/SFTP/SMB server can write arbitrary files anywhere on the client filesystem
History
Type Values Removed Values Added
First Time appeared Vmware
Vmware spring Integration
CPEs cpe:2.3:a:vmware:spring_integration:*:*:*:*:*:*:*:*
Vendors & Products Vmware
Vmware spring Integration
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Spring
Spring spring Integration
Vendors & Products Spring
Spring spring Integration
Type Values Removed Values Added
Description A malicious or compromised FTP/SFTP/SMB server can write arbitrary files anywhere on the client filesystem (outside the configured local-directory) with attacker-controlled content. Affected versions: Spring Integration 7.0.0 through 7.0.4; 6.5.0 through 6.5.8; 6.4.0 through 6.4.11; 6.3.0 through 6.3.14; 5.5.0 through 5.5.20.
Title Remote-file synchronizer in Spring Integration writes server-supplied filename under localDirectory without canonicalization
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:L'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Jun 23, 2026, 7:45 PM
Reserved
Apr 16, 2026, 2:19 AM
Status
Analyzed
Published
Jun 11, 2026, 7:16 AM
Modified
Sep 4, 2026, 6:07 PM
Severity
Important
Public date
Jun 11, 2026, 5:03 AM