HIGH

CVE-2026-59416

Spring Integration FTP SITE chmod Command Injection via Message-Controlled Remote Path

Description

Spring Integration FTP/FTPS outbound components (FtpMessageHandler and FtpOutboundGateway) build a textual FTP SITE chmod command by concatenating the remote file path into the command argument. If chmod is enabled and the remote filename or directory is derived from untrusted message data (for example, the FileHeaders.FILENAME header used by the default DefaultFileNameGenerator), a crafted value containing CRLF characters can inject additional FTP commands on the same control connection.

An attacker who can influence the remote filename or path can execute unintended FTP control commands with the privileges of the configured FTP account. Depending on server permissions, the impact can include deletion, renaming, permission changes, or other server-supported FTP/SITE operations.

An application is affected if it uses the Spring Integration FTP outbound channel adapter or gateway with the chmod option set and the remote file name or remote directory can be controlled by an untrusted message sender.

Affected Maven artifacts (1)

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

Dependency propagation for this vulnerability will be available after the next index build.