camel-smb is vulnerable to Path Traversal
74
CVE Score
High
Path Traversal
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.
Upgrade the org.apache.camel:camel-smb package to a fixed release on your branch: 4.18.5, 4.22.1.
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.
4.2.0 - 4.18.4
Fixed in 4.18.54.19.0 - 4.22.0
Fixed in 4.22.1camel-smb is vulnerable to Path Traversal in versions 4.2.0 - 4.18.4 and 4.19.0 - 4.22.0.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.