Impact
Apache Camel’s Mina SFTP component builds a file’s absolute remote path by concatenating a configured directory with the filename returned in the server’s LIST response. The implementation performs no lexical normalization or containment check, so a filename that contains ".." or other directory‑separating characters resolves to a remote path outside the intended polling directory. When the consumer processes the file, Camel subsequently performs whatever file operation it is configured to execute—retrieval, deletion, or renaming—using the endpoint’s own credentials. This flaw enables an attacker who can influence the directory listing to read, delete, or rename arbitrary files on the remote server, effectively bypassing the logical directory boundary that Camel expects to enforce. The weakness is a classic directory traversal (CWE‑22).
Affected Systems
The issue is present in Apache Camel 4.18.0 through 4.18.4, 4.19.0 through 4.21.x, and 4.22.0 through 4.22.0 (and earlier 4.22 releases). Users on the 4.22.x release stream should upgrade to 4.22.1 or later, while those on the 4.18.x LTS stream must upgrade to 4.18.5. The 4.14.x stream has reached end of life and is not receiving a fix; users on that stream should move to a supported release.
Risk and Exploitability
The CVSS score of 7.4 indicates a high‑severity flaw. EPSS data are not available, but the vulnerability can be exploited by any system that accepts a directory listing from a remote server whose content the user cannot trust, such as a compromised or malicious SFTP server or a multi‑tenant host. The attack does not require additional authentication beyond the consumer’s existing credentials, and the listing is transmitted over the SSH control channel which encrypts the traffic but offers no integrity protection. Because the flaw allows both read and destructive operations, an attacker with a manipulated listing could cause data theft or loss. The vulnerability is not currently catalogued in CISA’s Known Exploited Vulnerabilities list, but its high CVSS score and potential impact warrant immediate attention.
OpenCVE Enrichment