Impact
Apache Camel Mail allows an attacker to inject headers prefixed with mail.smtp. or mail.smtps. into outgoing exchanges. These headers are interpreted by the MailProducer and are applied as JavaMail session properties on a per‑message basis. In releases prior to 4.19.0 an attacker can set mail.smtp.host to point to a malicious server, causing the producer to send the endpoint’s configured username and password to that server, resulting in credential disclosure. For versions 4.19.0 and later the host parameter is bound to the endpoint’s configured host, but the attacker can still weaken transport security by manipulating properties such as mail.smtp.ssl.trust, mail.smtp.starttls.enable, or mail.smtp.socks.host, and can intercept the message content. The flaw is rooted in improper input validation (CWE‑20), exposure of sensitive information (CWE‑200), and the ability to coerce the component to connect to arbitrary hosts (CWE‑918), which effectively gives the attacker a server‑side request forgery vector for internal or external services.
Affected Systems
The flaw affects the Apache Camel Mail component distributed by the Apache Software Foundation. Vulnerable releases are 4.0.0 through 4.14.7, 4.15.0 through 4.18.2, and 4.19.0 through 4.20.9. Any deployment that uses Camel routes to produce email via SMTP or SMTPS and does not remove the mail.* namespace from untrusted input is at risk.
Risk and Exploitability
The CVSS base score of 3.7 classifies the vulnerability as low severity, and the EPSS score of less than 1 % indicates a low likelihood of exploitation. KEV does not list this flaw, suggesting limited known exploitation. Attacks require that untrusted data reach the mail producer without header removal, which can occur through HTTP query parameters, JMS, or Kafka messages. In pre‑4.19.0 releases this can lead to credential theft; in later releases the impact is limited to transport security weakening and potential message interception. Additionally, the ability to override the host property provides an SSRF vector, allowing an attacker to reach arbitrary hosts from within the environment. The overall risk is moderate, driven by the confidentiality compromise that could arise from host redirection, but exploitation remains unlikely under current conditions.
OpenCVE Enrichment