CVE-2018-8041 · apache
CVE-2018-8041
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.
Published 2018-09-17, last changed 2026-06-17. Weakness: CWE-22.
How to fix
Upgrade to a fixed version: org.apache.camel:camel-mail 2.20.4, 2.21.2, 2.22.1 (Maven) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in apache/camel by 4580e4d6c6, 4f401c09d2, 63c7c080de. Functions changed by the fix: DelegatingDataSource, getContentType, getInputStream, getName, getOutputStream, extractAttachmentsFromMultipart. Regression tests: components/camel-mail/src/test/java/org/apache/camel/component/mail/MailBindingAttachmentFileTest.java. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2018-09-17 | Published |
| 2018-10-16 | Package advisory GHSA-jv74-f9pj-xp3f |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 9.47% |
| 2026-12-01 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-jv74-f9pj-xp3f | org.apache.camel:camel-mail (Maven) | 2.20.4 |
| GHSA-jv74-f9pj-xp3f | org.apache.camel:camel-mail (Maven) | 2.21.2 |
| GHSA-jv74-f9pj-xp3f | org.apache.camel:camel-mail (Maven) | 2.22.1 |
Also known as: GHSA-jv74-f9pj-xp3f
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-59230 | 2026-08-24 | 6.5 | Apache Camel: Camel-Mail: the MimeMultipart data format copied MIME headers onto the Camel message without a header filter strategy when unmarshalling with head |
| CVE-2026-46584 | 2026-07-06 | 3.7 | Apache Camel Mail: The mail producer applied attacker-supplied message headers as JavaMail session properties, allowing an attacker to influence SMTP parameters |
| CVE-2026-33454 | 2026-04-27 | 9.4 | Apache Camel: Inbound Header Filter Missing in MailHeaderFilterStrategy Allows Remote Code Execution via MIME Header Injection (CVE-2025-30177 Variant) |
| CVE-2026-134928 | 2026-12-03 | - | Apache OFBiz: Path Traversal in Catalog URL Filters Enables Unauthenticated WEB-INF File Disclosure |
| CVE-2026-129917 | 2026-12-03 | - | Apache OFBiz: Path Traversal in Image Frame Feature Enables File Read and Write Outside the Image Directory |
| CVE-2026-128984 | 2026-12-03 | 6.5 | Apache Camel: Camel-SFTP passes file names to JSch as glob patterns, so wildcards act on other files in the directory |
| CVE-2026-86156 | 2026-11-24 | 4 | Apache Jena Fuseki: Web requests using SPARQL Update can escape file restrictions for graph data |
| CVE-2026-104813 | 2026-11-24 | 5.4 | Apache BuildStream: path traversal via unvalidated CAS Directory |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2018-8041, or call /api/v1/vulnerabilities/CVE-2018-8041. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.