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 applicationsUpgrade org.springframework.integration:spring-integration-sftp to version 7.0.8, 7.1.3 or higher.
Affected versions of this package are vulnerable to Improper Authentication in the ResourceKnownHostsServerKeyVerifier process. An attacker can impersonate a trusted SFTP server by presenting a compromised private key if both a @revoked entry and a non-revoked entry for the same host key exist in the known_hosts resource, and the attacker is able to intercept outbound SFTP connections. This is only exploitable if the application uses setKnownHostsResource() with a known_hosts file containing both a @revoked entry and a non-revoked entry for the same host key, and the attacker possesses the compromised private key and can intercept the application's SFTP connection.
This vulnerability can be mitigated by removing any non-revoked entries for a compromised host key from the known_hosts resource, so that only the @revoked entry remains for that key.