Intel

AIKIDO-2026-749546

camel-smb is vulnerable to Path Traversal

CVE-2026-79985Published Oct 31, 2026
October 31, 2026

74

CVE Score

High

Path Traversal

Are you affected? Scan for Free

TL;DR

SmbConsumer.pollDirectory concatenates the polled directory path with each name the SMB server reports in its directory listing. Before the fix, a malicious or non-conforming SMB server could supply a name containing traversal segments, and isValidFile performed no containment check, so retrieval, deletion when delete=true is set, and renaming when move, preMove, moveFailed or readLock=rename is configured could operate on files outside the polled directory. The fix adds an isWithinStartingDirectory check that skips listing entries whose resolved path leaves the polled directory before retrieval, deletion or renaming proceeds.

How do I fix this?

Upgrade the org.apache.camel:camel-smb package to a fixed release on your branch: 4.18.5, 4.22.1.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and use the camel-smb consumer to poll a directory on a remote SMB server that can return a listing entry containing traversal segments.

Package

Versions

4.2.0 - 4.18.4

Fixed in 4.18.5

4.19.0 - 4.22.0

Fixed in 4.22.1

Background info

camel-smb is vulnerable to Path Traversal in versions 4.2.0 - 4.18.4 and 4.19.0 - 4.22.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea