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

HIGH | JUNE 10, 2026 | CVE-2026-40987

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 Spring Products and Versions

Spring Integration:

  • 7.0.0 - 7.0.4
  • 6.5.0 - 6.5.8
  • 6.4.0 - 6.4.11
  • 6.3.0 - 6.3.14
  • 5.5.20 and earlier

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
7.0.4.1Enterprise Support Only
7.0.5OSS
6.5.8.1Enterprise Support Only
6.5.9OSS
6.4.12Enterprise Support Only
6.3.15Enterprise Support Only
5.5.21Enterprise Support Only

No further mitigation steps are necessary.

Credit

The issue was reported responsibly by:

  • M0untainShley
  • SharlongWen
  • daehyuh

History

  • 2026-06-10: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all