KeygraphLabs · CVE MCP

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.

CVSS
5.3
medium, from NVD
EPSS
9.47%
percentile 95.6%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-17Published
2018-10-16Package advisory GHSA-jv74-f9pj-xp3f
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 9.47%
2026-12-01Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-jv74-f9pj-xp3forg.apache.camel:camel-mail (Maven)2.20.4
GHSA-jv74-f9pj-xp3forg.apache.camel:camel-mail (Maven)2.21.2
GHSA-jv74-f9pj-xp3forg.apache.camel:camel-mail (Maven)2.22.1

Also known as: GHSA-jv74-f9pj-xp3f

Related

CVEPublishedCVSSSummary
CVE-2026-592302026-08-246.5Apache 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-465842026-07-063.7Apache Camel Mail: The mail producer applied attacker-supplied message headers as JavaMail session properties, allowing an attacker to influence SMTP parameters
CVE-2026-334542026-04-279.4Apache Camel: Inbound Header Filter Missing in MailHeaderFilterStrategy Allows Remote Code Execution via MIME Header Injection (CVE-2025-30177 Variant)
CVE-2026-1349282026-12-03-Apache OFBiz: Path Traversal in Catalog URL Filters Enables Unauthenticated WEB-INF File Disclosure
CVE-2026-1299172026-12-03-Apache OFBiz: Path Traversal in Image Frame Feature Enables File Read and Write Outside the Image Directory
CVE-2026-1289842026-12-036.5Apache Camel: Camel-SFTP passes file names to JSch as glob patterns, so wildcards act on other files in the directory
CVE-2026-861562026-11-244Apache Jena Fuseki: Web requests using SPARQL Update can escape file restrictions for graph data
CVE-2026-1048132026-11-245.4Apache 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.

NVD · CVE.org