Improper Certificate Validation Affecting org.springframework.integration:spring-integration-ftp package, versions [,7.0.8)[7.1.0-M1,7.1.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKINTEGRATION-22732831
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • creditUnknown

Introduced: 19 Nov 2026

NewCVE-2026-59364  (opens in a new tab)
CWE-295  (opens in a new tab)

How to fix?

Upgrade org.springframework.integration:spring-integration-ftp to version 7.0.8, 7.1.3 or higher.

Overview

Affected versions of this package are vulnerable to Improper Certificate Validation in the DefaultFtpsSessionFactory class, which by default relies on Apache Commons Net's trust manager that checks only certificate validity dates, never the chain against a trust anchor, and does not enable FTPS endpoint (hostname) checking. An attacker in a MitM position between the application and the FTPS server can present any unexpired self-signed certificate, intercept the TLS session, capture the login credentials, and read or alter transferred files. This affects any application that uses DefaultFtpsSessionFactory without an explicitly configured TrustManager.

Workaround

This vulnerability can be avoided by configuring DefaultFtpsSessionFactory with an explicit TrustManager via setTrustManager() that performs full chain validation, for example one from the JRE default TrustManagerFactory.

CVSS Base Scores

version 4.0
version 3.1