Summary
The camel-ftp component in Apache Camel (FtpOperations and FtpsOperations) passed file and directory names straight onto the FTP control connection without validation. If a name contains a carriage return (CR) or line feed (LF), the FTP server executes an additional injected FTP command beyond the intended operation.
Per the CVSS vector (7.1, high), the attack is network-based, low complexity, requires low privileges (the attacker must be able to influence a file or directory name processed by Camel) and needs no user interaction. The impact is high on integrity (execution of unintended FTP commands on the server, e.g. modifying or deleting data) and low on availability; confidentiality is not directly affected.
Fixed releases reject file and directory names containing CR or LF before they reach the control connection. The vulnerability is not listed in the CISA KEV catalog.
Who is affected
Organizations running Apache Camel 4.0.0 – 4.18.5, 4.19.0 – 4.22.2 or 4.23.x with the camel-ftp component (FTP/FTPS) in integration routes.
What to do
- Upgrade to Apache Camel 4.24.0.
- On the 4.22.x LTS stream, upgrade to 4.22.3; on the 4.18.x LTS stream, upgrade to 4.18.6.
- Check exposure: inventory applications and dependencies (e.g. Maven/Gradle) that include camel-ftp and determine whether they use affected versions.
- Until upgraded, review routes where file or directory names come from untrusted sources (message headers, user input) and inspect FTP server logs for unexpected commands.
- Follow the official advisory: https://camel.apache.org/security/CVE-2026-129902.html
Vendor solution
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.
Original text from the vendor's CVE record.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- High impact
- Availability
- Low impact
Weakness type (CWE)
- CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection')
References
- camel.apache.org/security/CVE-2026-129902.html vendor advisory
- issues.apache.org/jira/browse/CAMEL-27054
- github.com/apache/camel/pull/30211 patch
- github.com/apache/camel/pull/30424 patch
- github.com/apache/camel/pull/30425 patch
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.