← Security advisories
Apache Camel security advisory

CVE-2026-129902

Camel-FTP command injection - a CR or LF in a file or directory name sends an extra FTP command

Description

camel-ftp passed file and directory names straight onto the FTP control connection (FtpOperations and the FtpsOperations that extends it), so a name containing a carriage return or line feed injected a second FTP command that the server executed, letting a crafted file or directory name issue additional FTP commands beyond the intended operation. The fixed releases reject file and directory names that contain CR or LF before they reach the control connection.

Mitigation

Upgrade to Apache Camel 4.24.0, which fixes the issue. Users on the 4.22.x LTS release stream should upgrade to 4.22.3. Users on the 4.18.x LTS release stream should upgrade to 4.18.6.

Credit

This issue was discovered by Federico Mariani from Apache Software Foundation

Notes

The JIRA ticket: https://issues.apache.org/jira/browse/CAMEL-27054 refers to the various commits that resolved the issue, and have more details.

References