MODERATE

CVE-2026-59362

Spring Integration SFTP Revoked known_hosts Entry Does Not Veto Server Key Acceptance

Description

If an administrator marks a compromised SFTP server key as @revoked in the known_hosts 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 known_hosts 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 known_hosts 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 Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.integration » spring-integration-sftp
>= 6.4.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

1affected artifacts
33affected versions
6dependent artifacts (est.)
16dependent versions

100% of the dependent artifacts (6) still pull an affected version in their latest release.

DepthDependent versions
Direct
8
2 hops
8

Most used dependents

Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.