MODERATE

CVE-2026-59364

Spring Integration DefaultFtpsSessionFactory Does Not Verify FTPS Server Certificate and Hostname by Default

Description

When no TrustManager is explicitly configured, DefaultFtpsSessionFactory relies on the Apache Commons Net FTPSClient default trust manager, which only checks each certificate's validity dates and does not verify the certificate chain against a trust anchor. In addition, the factory does not enable hostname verification (endpoint checking) for the FTPS connection.

As a result, an attacker with an active man-in-the-middle position between the application and the FTPS server can present any non-expired self-signed certificate, transparently intercept the TLS connection, capture the FTP credentials sent during login, and read or tamper with transferred files. Any application that uses DefaultFtpsSessionFactory without explicitly configuring a secure TrustManager is affected.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.integration » spring-integration-ftp
<= 5.5.22>= 6.0.0, <= 6.4.13>= 6.5.0, <= 6.5.11>= 7.0.0, < 7.0.8>= 7.1.0, < 7.1.3
7.0.8, 7.1.3

Blast radius

Dependency propagation for this vulnerability will be available after the next index build.