🔍 CVE-2026-66906

9.1
CVSS Score
CRITICAL
2026-08-24
2026-10-12 15:10
✅ 완료

🇰🇷 한글 설명

Apache Camel의 Azure Storage Blob 컴포넌트에서 발생하는 상대 경로 탐색(Relative Path Traversal) 취약점입니다. 공격자가 컨테이너 내의 Blob 이름을 조작할 수 있다면, 설정된 디렉토리를 벗어나 시스템의 임의 위치에 파일을 생성하거나 덮어쓸 수 있습니다.

💡 쉬운 설명

클라우드 저장소에 저장된 파일 이름에 '상위 폴더로 이동'하는 특수 문자가 포함되어 있으면, 프로그램이 정해진 폴더가 아닌 컴퓨터의 중요한 시스템 폴더에 파일을 저장해버리는 문제입니다. 이를 통해 해커가 중요한 파일을 망가뜨리거나 시스템 권한을 탈취할 수 있습니다.

🇺🇸 원문 (English)

Relative path traversal vulnerability in Apache Camel Azure Storage Blob component. This issue affects Apache Camel: from 4.0.0 before 4.14.9, from 4.15.0 before 4.18.4, from 4.19.0 before 4.22.0. The camel-azure-storage-blob component can download an Azure Storage blob to the local filesystem through its downloadBlobToFile operation, writing into the directory named by the fileDir endpoint option, which is documented as usable from both the producer and the consumer. BlobOperations.downloadBlobToFile built the local target by joining fileDir with the remote blob name exactly as the Azure SDK reported it (new File(fileDir, client.getBlobName())) and passed the result straight to the SDK download call, with no lexical normalization and no check that the resolved location stayed inside fileDir. The blob name is not route-controlled data: the consumer enumerates the container in BlobConsumer.createBatchExchangesFromContainer, which lists blobs and creates one exchange per entry from BlobItem.getName() verbatim, applying no name filtering by default. A blob name containing parent-directory segments therefore resolved to a location outside the configured fileDir, letting anyone able to influence the names present in the consumed container cause Camel to create or overwrite a file at a location of their choosing, with the privileges of the Camel process. Depending on what the process can write to, overwriting a file outside the download directory can escalate beyond the loss of integrity of that file. Azure Storage blob containers use a flat namespace in which the blob name is an opaque key, so a name carrying such segments is stored and listed as given. The fileDir option is an ordinary common-group configuration parameter and carries no security marker, so nothing signalled to users that its value was not being enforced as a containment boundary. Camel's other file-download consumers - camel-file, camel-ftp, camel-smb, camel-mina-sftp and camel-azure-files - already constrained their local downloads to the configured directory using a path-segment boundary check; the camel-azure-storage-blob download path was not covered by that work. Users are recommended to upgrade to version 4.22.0, which fixes the issue. If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.9. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.4. For deployments that cannot upgrade immediately, constrain the names the consumer will act on using the regex endpoint option, which is applied to each listed blob name as a full-string match, so that only simple single-segment names are accepted and any name carrying a path separator or a parent-directory segment is filtered out before an exchange is created; the prefix option can additionally narrow the listing server-side, noting that when both are set regex takes priority and prefix is ignored. Alternatively, avoid the downloadBlobToFile operation on untrusted containers and write the payload from the route under a file name the route itself controls, rather than one taken from the remote listing. As defence in depth, treat the blob names in any externally writable container as untrusted input and do not derive local filesystem paths from them.

📍 영향받는 시스템

Apache Camel: 4.0.0 < 4.14.9, 4.15.0 < 4.18.4, 4.19.0 < 4.22.0

⚔️ 공격 벡터

조작된 Blob 이름(예: ../../etc/passwd)이 포함된 Azure Storage 컨테이너를 소비하여 파일 경로 검증 미비점을 악용

🛡️ 대응 방법

Apache Camel을 4.22.0, 4.14.9, 또는 4.18.4 이상의 보안 패치 버전으로 업그레이드하거나, regex 옵션을 사용하여 경로 세그먼트가 포함된 이름을 필터링함

🔧 검증 코드

출력 결과에 취약한 버전 범위의 camel-azure-storage-blob 라이브러리가 포함되어 있다면 해당 취약점에 노출된 상태입니다.

Shell / Script
mvn dependency:list | grep -E 'camel-azure-storage-blob:[[:space:]]+(4\.[0-1][4-9]\.[0-9]|4\.[1[5-8]\.[0-9]|4\.[19]\.[0-9])'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

💻 영향받는 소프트웨어

Azure