CVE-2026-85314: CWE-20 Improper Input Validation in Apache Software Foundation Apache Camel
Description
Improper Input Validation vulnerability in Apache Camel Mail component. This issue affects Apache Camel: from 4.0.0 before 4.18.5, from 4.19.0 before 4.22.1. CVE-2026-46584 addressed mail headers reaching the Exchange without passing through a header filter, but the MimeMultipart data format retained an unfiltered path: unmarshalling a multipart message mapped mail.smtp headers onto the Exchange with no filter applied. Those names sit outside the Camel namespace that consumer filters block, so a message crafted by an external sender could still set them, and the mail.smtp namespace influences how a downstream mail producer connects and sends. This is an incomplete fix of CVE-2026-46584 rather than a new class of defect: a deployment that applied that advisory and considered camel-mail settled remained exposed on this path. Upgrade to Apache Camel 4.23.0, which fixes the issue. Users on the 4.18.x LTS releases stream should upgrade to 4.18.5. Users on the 4.22.x LTS releases stream should upgrade to 4.22.1. The MimeMultipart data format now applies the header filter on unmarshal, closing the path CVE-2026-46584 left open. For deployments that cannot upgrade immediately, strip the namespace after the data format with removeHeaders("mail.smtp*") before any mail producer.
CVSS v3.1
Score 6.5medium
Affected software
Apache Software Foundation
Apache Camel
pkg:maven/Apache Software Foundation/org.apache.camel:camel-mailRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in Apache Camel's Mail component arises because the MimeMultipart data format does not apply the necessary header filter when unmarshalling multipart messages. As a result, mail.smtp headers can be set by external senders and influence how downstream mail producers connect and send messages. This issue is a partial fix regression of CVE-2026-46584, meaning that deployments that applied the previous fix but did not upgrade further remain exposed. The vulnerability affects Apache Camel versions >=4.0.0 <4.18.5 and >=4.19.0 <4.22.1. The fix is included in versions 4.18.5, 4.22.1, and 4.23.0. For those who cannot upgrade immediately, a workaround is to remove mail.smtp headers after unmarshalling using removeHeaders("mail.smtp*").
Potential Impact
An attacker can craft multipart email messages with mail.smtp headers that bypass the intended header filtering, potentially influencing how downstream mail producers send mail. This could lead to unauthorized manipulation of mail sending behavior, impacting confidentiality and integrity of mail operations. The CVSS 3.1 score is 6.5 (medium severity), indicating a network attack vector with low complexity and no privileges or user interaction required, causing low confidentiality and integrity impact but no availability impact.
Mitigation Recommendations
A fix is available in Apache Camel versions 4.18.5, 4.22.1, and 4.23.0. Users should upgrade to one of these versions to fully remediate the vulnerability. For deployments that cannot upgrade immediately, it is recommended to apply a temporary mitigation by stripping mail.smtp headers after unmarshalling using removeHeaders("mail.smtp*") before any mail producer processes the message.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-09-03T16:45:25.143Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ad5f5a02cdf04f656435558
Added to database: 10/19/2026, 10:49:04 UTC
Last enriched: 10/19/2026, 11:04:47 UTC
Last updated: 10/19/2026, 19:06:47 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.