Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreSpring 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.
Spring Integration:
| Fix version | Availability |
|---|---|
| 7.1.3 | OSS |
| 7.1.2.1 | Enterprise Support Only |
| 7.0.8 | OSS |
| 7.0.7.1 | Enterprise Support Only |
| 6.5.12 | Enterprise Support Only |
| 6.4.14 | Enterprise Support Only |
| 5.5.23 | Enterprise Support Only |
No further mitigation steps are necessary.
This vulnerability was discovered and responsibly reported by anand1139.
To report a security vulnerability for a project within the Spring portfolio, see the Security Policy