# CVE-2026-46584: Apache Camel Mail information exposure via SMTP header injection

Source: https://junglewise.ai/threats/cve-2026-46584-apache-camel-mail-information-exposure-via-smtp-header-injection  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-06. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-46584 · Severity: low · CVSS 3.7 · Published 2026-07-06

Apache Camel's Mail component allows attackers to inject malicious SMTP configuration headers that override the intended mail server settings. On older versions (before 4.19.0), attackers can redirect email traffic to their own server and steal credentials; on newer versions, they can downgrade transport security or intercept messages. This attack requires a route that accepts untrusted input (such as HTTP query parameters or message queues) and sends email without filtering dangerous headers.

Technologies: [Apache Camel](https://junglewise.ai/threats/technologies/camel), [org.apache.camel:camel-mail (Maven)](https://junglewise.ai/threats/technologies/org-apache-camel-camel-mail). Vendors: [Apache](https://junglewise.ai/threats/vendors/apache), [Apache Software Foundation](https://junglewise.ai/threats/vendors/apache-software-foundation), [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2026-46584 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-46584 being exploited in the wild.

**How severe is CVE-2026-46584?** Low severity, with a CVSS score of 3.7, published 6 July 2026.

**Which products and versions are affected?** Apache Camel 4.0.0 to 4.14.7, 4.15.0 to 4.18.2, 4.19.0 to 4.20.x; Apache Software Foundation Camel Mail 4.0.0 to 4.14.7, 4.15.0 to 4.18.2, 4.19.0 to 4.20.x; org.apache.camel:camel-mail (Maven) ECOSYSTEM:introduced=4.0.0,fixed=4.14.8.

**Is there a fix for CVE-2026-46584?** Yes. org.apache.camel:camel-mail (Maven): upgrade to 4.14.8 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-46584 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-46584?** Check whether you run Apache Camel, Apache Software Foundation Camel Mail or org.apache.camel:camel-mail (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.camel:camel-mail (Maven): upgrade to 4.14.8 or later

  ```sh
  # set org.apache.camel:camel-mail to 4.14.8 in your pom.xml or build.gradle
  ```


## Technical details

The MailProducer.getSender method scans outgoing Exchange message headers for mail.smtp.* and mail.smtps.* namespaced properties and applies them as JavaMail session properties, overriding endpoint configuration. The Camel-internal namespace is not blocked by HeaderFilterStrategy, allowing untrusted sources (HTTP query parameters, JMS/Kafka messages) to inject these headers. Impact varies: pre-4.19.0 releases allow attacker-controlled mail.smtp.host to redirect SMTP connections to attacker infrastructure, transmitting endpoint credentials; 4.19.0+ releases connect to the configured host but permit weakening of transport security (ssl.trust, starttls.enable, socks.host) and message interception. Exploitation requires a route that feeds untrusted input to an smtp/smtps producer without intervening removeHeaders filtering. Patches are available in versions 4.14.8, 4.18.3, and 4.21.0, with the override disabled by default post-patch and configurable only via useJavaMailSessionPropertiesFromHeaders=true.

## Affected products

- Apache Camel 4.0.0 to 4.14.7, 4.15.0 to 4.18.2, 4.19.0 to 4.20.x

## Identifiers

- CVE-2026-46584
- GHSA-29vj-9mgp-mwp2

## Timeline

- 2026-07-06: disclosed: Vulnerability published
- 2026-07-06: patched: Patches available: versions 4.14.8, 4.18.3, 4.21.0

## References

- [https://api.github.com/users/oscerd](https://api.github.com/users/oscerd)
- [https://github.com/oscerd](https://github.com/oscerd)
- [https://api.github.com/users/oscerd/gists%7B/gist_id%7D](https://api.github.com/users/oscerd/gists%7B/gist_id%7D)
- [https://api.github.com/users/oscerd/repos](https://api.github.com/users/oscerd/repos)
- [https://avatars.githubusercontent.com/u/5106647?v=4](https://avatars.githubusercontent.com/u/5106647?v=4)
- [https://api.github.com/users/oscerd/events%7B/privacy%7D](https://api.github.com/users/oscerd/events%7B/privacy%7D)

## Related threats

- [Apache Camel SSRF in A2A webhook validator](https://junglewise.ai/threats/cve-2026-71569-server-side-request-forgery-ssrf-vulnerability-in-apache-camel)
- [Apache Camel OAuth component cache containing sensitive information](https://junglewise.ai/threats/cve-2026-94386-use-of-cache-containing-sensitive-information-vulnerability-in)
- [Apache Camel Saxon component XXE in XQuery evaluation](https://junglewise.ai/threats/cve-2026-90885-improper-restriction-of-xml-external-entity-reference)
- [Apache Camel AWS2-S3 expression language injection in key handling](https://junglewise.ai/threats/cve-2026-95664-improper-neutralization-of-special-elements-used-in-an-expression)
- [Apache Camel Keycloak security policy token expiration bypass](https://junglewise.ai/threats/cve-2026-95663-insufficient-session-expiration-vulnerability-in-apache-camel)
