CVE-2026-46584
Apache Camel Mail: The mail producer applied attacker-supplied message headers as JavaMail session properties, allowing an attacker to influence SMTP parameters
Also known as GHSA-29vj-9mgp-mwp2
Mitigation
- Upgrade org.apache.camel:camel-mail to one of 4.14.8, 4.18.3, 4.21.0 (or later in the same release line).
Who should check
- Projects that depend on Maven package org.apache.camel:camel-mail (>= 4.0.0, < 4.14.8)
- Anyone running Apache Software Foundation Apache Camel Mail >= 4.0.0, < 4.14.8; >= 4.15.0, < 4.18.3; >= 4.19.0, < r
Vulnerability facts
- Affected
- org.apache.camel:camel-mail >= 4.0.0, < 4.14.8
- Fixed in
- 4.14.8, 4.18.3, 4.21.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 3.7 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.56% chance of exploitation in 30 days (percentile 40, 2026-11-26)
- CWE
- CWE-20, CWE-200
- Modified
Description
Improper Input Validation, Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Camel Mail Component. The camel-mail producer (MailProducer.getSender) scanned the outgoing Exchange for message headers in the mail.smtp. / mail.smtps. namespace and, when any were present, built a per-message JavaMail sender with those values applied as JavaMail session properties, overriding the endpoint configuration. This namespace is Camel-internal - only MailProducer interprets it - and was not blocked by any HeaderFilterStrategy, so the values could originate from any inbound protocol (for example platform-http query parameters or request headers, or JMS / Kafka messages from untrusted producers) that feeds a route ending in an smtp / smtps producer without an intervening removeHeaders. The maximal impact is version-dependent: on releases before 4.19.0, setting mail.smtp.host redirects the SMTP connection to a server under the attacker's control, and because the producer then authenticates with the endpoint's configured username and password those credentials are transmitted to the attacker; on 4.19.0 and later the producer connects to the endpoint's configured host explicitly, so the reachable impact is limited to weakening transport security (for example mail.smtp.ssl.trust, mail.smtp.starttls.enable or mail.smtp.socks.host) and interception of the outgoing message rather than host redirect. Exploitation requires a route that channels untrusted input into the mail producer without stripping the namespace. This issue affects Apache Camel: from 4.0.0 before 4.14.8, from 4.15.0 before 4.18.3, from 4.19.0 before 4.21.0. Users are recommended to upgrade to version 4.21.0, which fixes the issue. If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.8. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.3. After upgrading, the per-message override is disabled by default; enable it only on trusted endpoints with useJavaMailSessionPropertiesFromHeaders=true. For deployments that cannot upgrade immediately, strip the namespace before the mail producer with removeHeaders('mail.smtp.*') and removeHeaders('mail.smtps.*') between any untrusted ingress and the smtp / smtps producer. Even with the opt-in enabled, route authors should still strip the namespace on any path that carries untrusted input.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.apache.camel:camel-mail | >= 4.0.0, < 4.14.8 | 4.14.8, 4.18.3, 4.21.0 | osv |
| Apache Software Foundation Apache Camel Mail | >= 4.0.0, < 4.14.8; >= 4.15.0, < 4.18.3; >= 4.19.0, < r | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-46584. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-46584.md Affected: org.apache.camel:camel-mail >= 4.0.0, < 4.14.8 Fixed in: 4.14.8, 4.18.3, 4.21.0 Steps: 1. Search this machine and project for org.apache.camel:camel-mail (Maven), Apache Software Foundation Apache Camel Mail: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/apache/camel/pull/23362
- https://github.com/apache/camel/pull/23381
- https://github.com/apache/camel/pull/23416
- https://github.com/apache/camel/commit/1e31abca3213cde447a2ded1adc070ffec6836f1
- https://github.com/apache/camel/commit/2d2815d256068f15d42da3af27fa86fb5efad2ab
- https://github.com/apache/camel/commit/725175e3aa16216361acc8497345f8e00536d2e0
Other
- http://www.openwall.com/lists/oss-security/2026/07/05/11
- https://github.com/apache/camel
- https://github.com/apache/camel/releases/tag/camel-4.14.8
- https://github.com/apache/camel/releases/tag/camel-4.18.3
- https://github.com/apache/camel/releases/tag/camel-4.21.0
- https://issues.apache.org/jira/browse/CAMEL-23522
FAQ
Is CVE-2026-46584 being exploited?
There is no confirmed exploitation: CVE-2026-46584 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.56% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-46584?
Low: CVSS 3.7 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-46584?
org.apache.camel:camel-mail >= 4.0.0, < 4.14.8.
Is there a fix for CVE-2026-46584?
Yes. Fixed in 4.14.8, 4.18.3, 4.21.0. Upgrade org.apache.camel:camel-mail to one of 4.14.8, 4.18.3, 4.21.0 (or later in the same release line).
How do I check if I'm affected by CVE-2026-46584?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.