---
id: CVE-2026-103412
title: >-
  Improper limitation of a pathname to a restricted directory ('path traversal')
  vulnerability in Apache Camel Karavan.




  A project file name supplied through the project file API was used verbatim as
  a path segment when the project was w…
summary: >-
  Improper limitation of a pathname to a restricted directory ('path traversal')
  vulnerability in Apache Camel Karavan.




  A project file name supplied through the project file API was used verbatim as
  a path segment when the project was w…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-22
published: '2026-10-09'
updated: '2026-10-09'
sourceUpdated: '2026-10-09T16:33:39.007'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-103412'
references:
  - url: 'https://camel.apache.org/security/CVE-2026-103412.html'
    label: security@apache.org
  - url: >-
      https://github.com/apache/camel-karavan/commit/5e4252494817af0cd2697216bd02f361037fedcf
    label: security@apache.org
  - url: 'http://www.openwall.com/lists/oss-security/2026/10/09/16'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
ingestedAt: '2026-10-09T13:58:52.540Z'
---

## Overview

Improper limitation of a pathname to a restricted directory ('path traversal') vulnerability in Apache Camel Karavan.



A project file name supplied through the project file API was used verbatim as a path segment when the project was written to the working copy for a Git commit, so a name containing `../` sequences caused the file content to be written outside the project directory, to any location writable by the Karavan process. An authenticated user of any role could use this to overwrite application configuration or files on the application classpath and so execute code in the Karavan container.



This issue affects Apache Camel Karavan: from 3.18.0 before 4.22.1.



Users are recommended to upgrade to version 4.22.1, which fixes the issue.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
