Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-79985 — Reproducer and analysis for CVE-2026-79985, a path traversal in Apache Camel camel-smb where share-listing names bypass directory containment, with affected routes and fix details. | Kitploit
Tools/GitHubGitHub/oscerd/cve-2026-79985
Defensive ToolsVulnerability AnalysisExploitationWeb Application ExploitationPapers & ResearchLearning & Education
GitHuboscerd/cve-2026-79985

CVE-2026-79985

Reproducer and analysis for CVE-2026-79985, a path traversal in Apache Camel camel-smb where share-listing names bypass directory containment, with affected routes and fix details.

View Repository
2 days agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-79985 — camel-smb: consumer builds the remote path from the share listing without containment

Reproducer repository for the Apache Camel vulnerability where the smb consumer builds the remote path of each polled file by concatenating the configured directory with the name reported in the SMB share listing, with no containment check. SmbConsumer walks the listing itself (not through RemoteFileConsumer), skipping only the exact . and .. entries, so a name carrying traversal segments in any other form was concatenated unchecked — resolving to a path outside the polled directory for retrieval and, with delete/move/preMove/moveFailed/ readLock=rename, deletion or rename.

This reproducer is author-only — see below — and is the SMB sibling of the runnable CVE-2026-79983 (camel-ftp) and CVE-2026-79984 (camel-mina-sftp), which demonstrate the identical root cause and fix end to end against an embedded malicious server.

Why author-only

As the advisory itself states, reaching the issue over SMB

"requires a server that emits a listing name which is not a single path segment, which a conforming SMB2 implementation does not do; the exposure was corrected on the same basis as the other remote-file consumers rather than from a demonstrated proof of concept against this scheme."

There is no embeddable malicious SMB server that emits such a name (unlike FTP, where Apache MINA FtpServer's VFS can be made to, and SFTP, where Apache MINA SSHD's getShortName can be overridden). So this repository carries the exact affected consumer wiring (a real camel-smb route, see SmbRoute.java / SmbRoutes.java) and documents the mechanism and fix, and defers the runnable end-to-end demonstration to the FTP and SFTP reproducers above.

RuntimeDirectoryStack
Camel Spring Bootcamel-spring-boot/Spring Boot 3.5.13 + camel-smb 4.22.0 (affected; fixed 4.22.1)
Camel Quarkuscamel-quarkus/Quarkus 3.29.0 + camel-quarkus-smb 3.29.0 (Camel 4.15.0, affected)

Both modules compile and start cleanly without an SMB server (the route is defined with autoStartup=false). Set -Dsmb.enabled=true with smb.host/smb.share/smb.username/smb.password to point the exact affected route at an SMB server of your own.

cd camel-spring-boot
mvn clean package
docker compose up -d --build
curl -s http://localhost:8080/exploit/attack   # prints the explanation + links to the runnable PoCs
docker compose down

Vulnerability Summary

PropertyValue
Componentcamel-smb (smb scheme)
CWECWE-22 (Improper Limitation of a Pathname to a Restricted Directory)
SeverityHIGH
Attack vectorA share-listing name (server-supplied) that is not a single path segment
ImpactRead — and, with delete/move/readLock=rename, delete or rename — files outside the polled directory, using the endpoint's credentials
Affected VersionsFrom 4.2.0 before 4.18.5, from 4.19.0 before 4.22.1
Fixed Versions4.18.5, 4.22.1, 4.23.0
JIRACAMEL-24487
CreditDilrevx from NSSL, SJTU

Advisory: https://camel.apache.org/security/CVE-2026-79985.html

The fix

SmbConsumer now applies the same containment check as the other remote-file consumers: a resolved path that falls outside the polled directory is skipped with a warning, so a listing name carrying traversal segments no longer reaches the retrieve/delete/rename operand.

Mitigation if you cannot upgrade

Constrain the consumer with filter/antInclude/include to accept only single-segment names, and avoid delete/move/preMove/moveFailed/readLock=rename against servers whose listings are not fully trusted. Where possible, confine the server account to the polled directory.

Disclaimer

This repository is published for educational and defensive purposes: to help Apache Camel users understand the vulnerability, verify whether they are affected, and confirm that upgrading resolves it. Do not use this material against systems you do not own or operate.

Download Tool