CVE-2018-8041 is a medium-severity (CVSS 5.3) Path Traversal vulnerability in org.apache.camel:camel-mail. A fix is available for org.apache.camel:camel-mail — see the affected versions and patch details below.
Apache Camel's Mail is vulnerable to path traversal
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.apache.camel:camel-mail☕org.apache.camel:camel-mail☕org.apache.camel:camel-mailReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Apache Camel's Mail 2.20.0 through 2.20.3, 2.21.0 through 2.21.1 and 2.22.0 is vulnerable to path traversal.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.camel:camel-mail | ≥ 2.20.0&&< 2.20.4 | 2.20.4org.apache.camel:camel-mail:2.20.4 |
| ☕Maven | org.apache.camel:camel-mail | ≥ 2.21.0&&< 2.21.2 | 2.21.2org.apache.camel:camel-mail:2.21.2 |
| ☕Maven | org.apache.camel:camel-mail | ≥ 2.22.0&&< 2.22.1 | 2.22.1org.apache.camel:camel-mail:2.22.1 |
Affected Products
camelapacheDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.camel:camel-mail, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.camel:camel-mail to 2.20.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2018-8041 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Fuse 7.2 | camel-mail | RHSA-2018:3768 |
Frequently Asked Questions
Is CVE-2018-8041 in your dependencies?
Find it across Maven, including transitive dependencies.