CVE-2026-59362: Spring Integration SFTP Revoked known_hosts Entry Does Not Veto Server Key Acceptance
If an administrator marks a compromised SFTP server key as @revoked in the knownhosts resource but the original (non-revoked) line for that key is still present, Spring Integration continues to accept the compromised key. An attacker who has stolen that server's private key can therefore continue to impersonate the SFTP server despite the revocation.
ResourceKnownHostsServerKeyVerifier accepts a server key if any matching knownhosts entry is not revoked. Under OpenSSH semantics, a @revoked marker is an explicit deny that must take precedence over any other matching entry.
An application is affected if it uses setKnownHostsResource() with a knownhosts file containing both a @revoked entry and a residual non-revoked entry for the same host key, and the attacker can intercept the application's outbound SFTP connection while holding the compromised private key.
Affected Software
Event History
Frequently Asked Questions
Which deployments are affected by this issue?
An application is affected when it uses setKnownHostsResource() and its known_hosts file contains both an @revoked entry and a remaining non-revoked entry for the same SFTP server host key.
What must an attacker be able to do to exploit it?
The attacker must possess the compromised SFTP server's private key and be able to intercept the application's outbound SFTP connection. Under those conditions, the application can accept the impersonating server despite the revoked entry.
What can be done before a fix is applied?
Remove residual non-revoked known_hosts entries for any key marked @revoked. Ensure that no active non-revoked entry matches the compromised host key.
How can administrators determine whether they are exposed?
Review the known_hosts resource configured through setKnownHostsResource(). Look for the same host key appearing both on an @revoked line and on a non-revoked line.