CVE-2026-59364: Spring Integration DefaultFtpsSessionFactory Does Not Verify FTPS Server Certificate and Hostname by Default

Published Dec 2, 2026
·
Updated

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 Software

1 affected component
Spring Spring Integration

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Explicitly configure a secure TrustManager for the FTPS connection.

    Spring Integration DefaultFtpsSessionFactory TrustManager = secure TrustManager
  2. Configuration

    Enable hostname verification (endpoint checking) for the FTPS connection.

    Spring Integration DefaultFtpsSessionFactory hostname verification (endpoint checking) = enabled

Event History

Dec 2, 2026
CVE Published
via MITRE·07:10 AM
Data Sourced
via MITRE·07:10 AM
DescriptionSeverity

Frequently Asked Questions

1

Which deployments are affected by this issue?

Applications using Spring Integration's DefaultFtpsSessionFactory are affected when they have not explicitly configured a secure TrustManager. The default behavior does not validate the server certificate chain against a trust anchor and does not enable hostname verification.

2

What does an attacker need to exploit this vulnerability?

An attacker must be in an active man-in-the-middle position between the application and its FTPS server. They can use any non-expired self-signed certificate to intercept the TLS connection.

3

What could an attacker obtain or change through a successful attack?

The attacker can capture FTP credentials sent during login and read or tamper with transferred files. This affects confidentiality and integrity of both credentials and FTPS transfers.

4

What configuration change addresses the unsafe default?

Explicitly configure a secure TrustManager for DefaultFtpsSessionFactory. Ensure the FTPS connection also performs hostname verification (endpoint checking), since it is not enabled by default.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203