CVE-2019-0194: Path Traversal in Apache Camel
Summary
CVE-2019-0194: Path Traversal in Apache Camel. Affects org.apache.camel:camel-core across 3 version ranges.
>= 2.21.0, < 2.21.5
>= 2.22.0, < 2.22.3
>= 2.23.0, < 2.23.1
Fixed in 2.21.5, 2.22.3 or 2.23.1, depending on the release line you run. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Apache Camel is an open-source integration framework that provides a rule-based routing and mediation engine. It allows developers to easily integrate different systems using various protocols and technologies. The vulnerable component in Apache Camel is the File component, which is responsible for reading and writing files. This vulnerability affects versions 2.21.0 to 2.21.3, 2.22.0 to 2.22.2, and 2.23.0, as well as unsupported versions 2.x (2.19 and earlier).
Vulnerability Detail
The vulnerability in Apache Camel's File component is a path traversal issue. It allows an attacker to access files outside of the intended directory by manipulating the file path. This can lead to unauthorized disclosure of sensitive information or even remote code execution. The vulnerability has a CVSS score of 7.5, indicating a high severity level.
How To Fix
Latest published version: 4.23.0 as of 22 Oct 2026
Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.
If you can't move to the latest
The minimum fixed version depends on the release line you run.
-
>= 2.21.0, < 2.21.52.21.5 -
>= 2.22.0, < 2.22.32.22.3 -
>= 2.23.0, < 2.23.12.23.1
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
As a temporary workaround, you can implement input validation and sanitization in your code to prevent path traversal attacks. Ensure that user-supplied file paths are properly validated and restricted to the intended directory. Here is an example of how to sanitize a file path in Java:
import org.apache.commons.io.FilenameUtils;
public class FileUtil {
public static String sanitizeFilePath(String filePath) {
String baseDirectory = "/path/to/base/directory";
String sanitizedPath = FilenameUtils.concat(baseDirectory, filePath);
return FilenameUtils.normalize(sanitizedPath);
}
}
Conclusion
The path traversal vulnerability in Apache Camel's File component can have serious security implications. It is crucial to upgrade to the latest version of Apache Camel and review any custom code that uses the File component. Implementing input validation and sanitization can also provide temporary protection. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.apache.camel:camel-core →
FAQ
Apache Camel is an open-source integration framework that provides a rule-based routing and mediation engine. It allows developers to easily integrate different systems using various protocols and technologies.
The File component in Apache Camel is responsible for reading and writing files. It provides functionality for file-based integration scenarios.
Path traversal is a vulnerability that allows an attacker to access files or directories outside of the intended directory. It occurs when user input is not properly validated or sanitized before being used in file operations.
The path traversal vulnerability in Apache Camel's File component can lead to unauthorized disclosure of sensitive information or even remote code execution. An attacker could access files outside of the intended directory and potentially manipulate or delete critical files.
You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities using just the pom.xml file, without requiring access to the code or installation.
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.camel:camel-core.