CVE-2026-66906
CRITICAL(9.1)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- CVSS 9.1 — Kritisch
Erwähnungen (letzte 60 Tage)
EPSS-Score
0.5%
Exploit-Wahrscheinlichkeit (30 Tage)
CVSS Score
9.1
Technische Schwere
Beschreibung
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.
Erkennung & Indikatoren
Ausnutzung
In den geprüften Quellen nicht genannt
Behobene Versionen
- 4.14.9
- 4.18.4
- 4.22.0
Threat-Hunting-Queries
Suche nach Dateisystem-Schreibvorgängen durch den Apache Camel-Prozess außerhalb der erwarteten 'fileDir' im Kontext der Azure Storage Blob-Komponente. Dies erfordert eine detaillierte Überwachung von Prozessaktivitäten und Dateisystemereignissen.
Sentinel/Defender KQL
DeviceFileEvents
| where InitiatingProcessFileName contains "camel" or InitiatingProcessCommandLine contains "camel-azure-storage-blob"
| where ActionType == "FileCreated" or ActionType == "FileModified"
| where FolderPath !startswith "<expected_fileDir_path>" // Ersetzen Sie <expected_fileDir_path> durch den tatsächlichen konfigurierten Pfad
| project Timestamp, DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, FolderPath, SHA256Splunk SPL
index=<your_index> (sourcetype=<your_sysmon_sourcetype> OR sourcetype=<your_process_sourcetype>)
| (process_name="*camel*" OR command_line="*camel-azure-storage-blob*")
| (event_type="file_create" OR event_type="file_write")
| NOT dest_file_path LIKE "<expected_fileDir_path>%" // Ersetzen Sie <expected_fileDir_path> durch den tatsächlichen konfigurierten Pfad
| table _time, host, process_name, command_line, dest_file_path, file_hashSigma
title: Apache Camel Azure Storage Blob Path Traversal
id: <generate_uuid>
status: experimental
description: Detects potential path traversal attempts in Apache Camel Azure Storage Blob component by monitoring file creations/modifications outside expected directories.
author: SecBoard
date: <current_date>
logsource:
category: file_event
product: windows # Or linux, depending on your environment
detection:
selection:
- Image|endswith: 'camel.exe' # Adjust for Linux/Java process name
- CommandLine|contains: 'camel-azure-storage-blob'
condition: selection and not file_in_expected_dir
file_in_expected_dir:
TargetFilename|startswith: '<expected_fileDir_path>' # Ersetzen Sie <expected_fileDir_path>
falsepositives:
- Legitimate file operations if the expected directory is not accurately defined.
level: highElastic ES|QL
FROM filebeat-* OR winlogbeat-*
| WHERE event.category == "file"
| WHERE process.name : "*camel*" OR process.command_line : "*camel-azure-storage-blob*"
| WHERE event.action == "file_create" OR event.action == "file_change"
| WHERE NOT file.path LIKE "<expected_fileDir_path>%" // Ersetzen Sie <expected_fileDir_path> durch den tatsächlichen konfigurierten Pfad
| SELECT @timestamp, host.name, process.name, process.command_line, file.path, file.hash.sha256SecBoard-generated · behavioral · requires customization — Von SecBoard erzeugt und nicht in einer Zielumgebung validiert. Vor dem Einsatz an die eigene Protokollierung anpassen.
Indikatoren
Datei-Hashes (4)
- 55fcbaf8bc1936cae90abdea5adecbc43e57340e
- 007929bb732a8c5e3e49d4d3c6c8adc2aab13340
- 857d0cd3024b706ce80f3d2a4aa111e5e94a3e59
- 513d0e18a4b54220f6c12ab84d3bea9641f9776d
Übernommen wurden nur Indikatoren, die wörtlich in einer Hersteller- oder Research-Quelle standen.
Betroffene Produkte
- cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:*
- cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:*
- cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:*
GitHub Advisories
Apache Camel-Azure-Storage-Blob: the downloadBlobToFile operation built the local download target from the remote blob name without constraining it to the configured fileDir