CVE-2019-0194: Path Traversal in Apache Camel

org.apache.camel:camel-core Updated 02 Oct 2025

Summary

02/05/2019
Yes i
High
7.5

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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.5 2.21.5
  • >= 2.22.0, < 2.22.3 2.22.3
  • >= 2.23.0, < 2.23.1 2.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 →

Share this vulnerability

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.

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.5 2.21.5
  • >= 2.22.0, < 2.22.3 2.22.3
  • >= 2.23.0, < 2.23.1 2.23.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback