CVE-2018-8041 Apache Camel's Mail is vulnerable to path traversal
Attackers can exploit path traversal in Apache Camel Mail component to read or modify arbitrary files on the server.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-8041?
CVE-2018-8041 is a medium-severity path traversal vulnerability in Apache Camel, published on 17 Sep 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-22
Which versions are affected by CVE-2018-8041?
6 open source packages ship an affected version, including org.apache.camel:camel-mail. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.camel:camel-mail Maven | From 2.20.0 | 2.20.4 |
org.apache.camel:camel-mail Maven | From 2.20.0 | 2.20.4 |
org.apache.camel:camel-mail Maven | From 2.21.0 | 2.21.2 |
org.apache.camel:camel-mail Maven | From 2.21.0 | 2.21.2 |
org.apache.camel:camel-mail Maven | From 2.22.0 | 2.22.1 |
org.apache.camel:camel-mail Maven | From 2.22.0 | 2.22.1 |
Products include Apache Camel.
How do I fix CVE-2018-8041?
Upgrade org.apache.camel:camel-mail to a fixed version for your release line: 2.20.4, 2.21.2 or 2.22.1.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2018-8041 being exploited?
There is no known exploitation of CVE-2018-8041 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Apache Camel
- CVE-2026-33453 Apache camel-coap allows header injection that can lead to remote code execution
- CVE-2026-40453 Apache Camel has an incomplete fix for CVE-2025-27636
- CVE-2026-80351 Apache Camel K: Camel K Tenant repositories reach Maven execution inside operator pod
- CVE-2026-80352 Apache Camel K: Camel K Master trait serviceAccountName YAML injection lets CR author apply arbitrary objects
- CVE-2026-71300 Apache Camel: Camel-Atmosphere-Websocket: WebSocket dispatch header injection
Sources
Also known as GHSA-jv74-f9pj-xp3f.