CVE-2026-59230: Apache Camel-Mail The MimeMultipart Data Format Copied Vulnerability

MODERATE
Advisory Identifier: GHSA-cx47-qxp5-mmh2
CVSS 6.5
CWE-20
Published
Advisory Summary

CVE-2026-59230 is a MODERATE (CVSS 6.5) the mimemultipart data format copied vulnerability (CWE-20: Improper Input Validation) affecting Apache Camel-Mail libraries in the Maven ecosystem. The issue involves the mimemultipart data format copied mime headers onto the camel message without a header filter strategy when unmarshalling with headersinline enabled. Remediation is available by upgrading affected packages to version 4.14.9, 4.18.4, 4.22.0.

CVE-2026-59230 at a Glance

CVE Identifier CVE-2026-59230
GHSA Identifier GHSA-cx47-qxp5-mmh2
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Apache Camel-Mail
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-59230

To remediate this vulnerability, upgrade all affected Apache Camel-Mail dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.camel:camel-mail fixed: 4.14.9
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-mail</artifactId>
    <version>4.14.9</version>
</dependency>
org.apache.camel:camel-mail fixed: 4.18.4
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-mail</artifactId>
    <version>4.18.4</version>
</dependency>
org.apache.camel:camel-mail fixed: 4.22.0
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-mail</artifactId>
    <version>4.22.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.camel

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-59230, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.camel

Analyze the terminal output to locate any version of Apache Camel-Mail in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.14.9), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.camel command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Apache Camel-Mail, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Improper input validation vulnerability in Apache Camel. This issue affects Apache Camel: from 2.17.0 before 4.14.9, from 4.15.0 before 4.18.4, from 4.19.0 before 4.22.0. The camel-mail component ships a MimeMultipart data format that can unmarshal a MIME multipart message. When it is configured with headersInline set to true, the unmarshal path copies the MIME headers of the incoming message onto the Camel message: it enumerates every header that is not one of the three standard ones it generates itself - Message-ID, MIME-Version and Content-Type - and calls setHeader for each, applying no HeaderFilterStrategy. The names of those MIME headers come from the message being unmarshalled, so a sender able to influence the message could place a header whose name falls in the Camel-internal namespace and have it set on the Exchange. Camel components read control headers from that namespace to override their configured behaviour - the camel-sql producer, for instance, takes the statement to execute from a Camel header when one is present - so an injected header could redirect what a downstream step in the route does with data the route author never intended it to take from the message. Which sinks are reachable, and what the consequences are, depends entirely on what the route does after the unmarshal step. The camel-mail consumer already applied a header filter strategy on its own inbound path, so this was the parallel inbound path into the same component that the earlier hardening did not cover. The affected copy is reached only when headersInline is enabled, which is not the default: with the default setting the MIME headers are surfaced as attachments rather than as message headers, and are not affected. The behaviour dates back to the introduction of the data format in 2.17.0 and was present on every release line until this fix. Users are recommended to upgrade to version 4.22.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.9. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.4. For deployments that cannot upgrade immediately, leave headersInline at its default of false where the inline headers are not needed, since the copy is only reached when it is enabled. Where it must stay enabled, strip Camel-internal headers immediately after the unmarshal step, for example with removeHeaders(“Camel*”) placed before any processor or producer that reads control headers, and do not unmarshal MIME content from an untrusted sender into a route that dispatches on header values. As defence in depth, treat the header names of any MIME message arriving from outside the trust boundary as untrusted input.

CVE-2026-59230 Affected Apache Camel-Mail Versions

3 component(s)
Fixed Versions:
4.14.94.18.44.22.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.camel:camel-mail
Maven
≥ 2.17.0
< 4.14.9
4.14.9
org.apache.camel:camel-mail
Maven
≥ 4.15.0
< 4.18.4
4.18.4
org.apache.camel:camel-mail
Maven
≥ 4.19.0
< 4.22.0
4.22.0

References

NVD — CVE-2026-59230 NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-59230
Apache Camel-Mail Source Repository REPOSITORY
https://github.com/apache/camel/pull/24406
Apache Camel-Mail Source Repository REPOSITORY
https://github.com/apache/camel/pull/24409
Apache Camel-Mail Source Repository REPOSITORY
https://github.com/apache/camel/pull/24445
Apache Camel-Mail Source Repository REPOSITORY
https://github.com/apache/camel/pull/24454
Apache Camel-Mail Source Repository REPOSITORY
https://github.com/apache/camel/pull/24456
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/4d03138dc27c04afdaae6cd40f026c23ed8d7973
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/ca74898bdef4f2917755ed8911eedfc7f09bd589
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/ccdeebc2ae378ba75e5563ddab508fc887527f0c
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/cd1333ca1c1d491b4d121878dc025b130554d367
Apache Camel-Mail Security Information SECURITY
https://camel.apache.org/security/CVE-2026-59230.html
Apache Camel-Mail Source Repository REPOSITORY
https://github.com/apache/camel
Apache Camel-Mail Release RELEASE
https://github.com/apache/camel/releases/tag/camel-4.14.9
Apache Camel-Mail Release RELEASE
https://github.com/apache/camel/releases/tag/camel-4.18.4
Apache Camel-Mail Release RELEASE
https://github.com/apache/camel/releases/tag/camel-4.22.0
Apache Camel-Mail Security Information SECURITY
http://www.openwall.com/lists/oss-security/2026/08/24/7

Frequently Asked Questions

What is CVE-2026-59230?
CVE-2026-59230 is a security vulnerability in Apache Camel-Mail involving the MimeMultipart data format copied MIME headers onto the Camel message without a header filter strategy when unmarshalling with headersInline enabled under CWE-20: Improper Input Validation.
Which Apache Camel-Mail versions are affected?
Affected versions include releases prior to 4.14.9, 4.18.4, 4.22.0 across affected packages: org.apache.camel:camel-mail.
What version fixes CVE-2026-59230?
Upgrading to 4.14.9, 4.18.4, 4.22.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is camel-mail affected?
Yes, org.apache.camel:camel-mail is affected in releases prior to 4.14.9, 4.18.4, 4.22.0. Upgrade your dependency to 4.14.9, 4.18.4, 4.22.0 or later.
What is the CVSS score of CVE-2026-59230?
CVE-2026-59230 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2026-59230?
CVE-2026-59230 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2026-59230?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.camel'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cx47-qxp5-mmh2",
  "modified" : "2026-08-28T20:19:11Z",
  "published" : "2026-08-24T18:31:51Z",
  "aliases" : [ "CVE-2026-59230" ],
  "summary" : "Apache Camel-Mail: the MimeMultipart data format copied MIME headers onto the Camel message without a header filter strategy when unmarshalling with headersInline enabled",
  "details" : "Improper input validation vulnerability in Apache Camel.\n\nThis issue affects Apache Camel: from 2.17.0 before 4.14.9, from 4.15.0 before 4.18.4, from 4.19.0 before 4.22.0.\n\nThe camel-mail component ships a MimeMultipart data format that can unmarshal a MIME multipart message. When it is configured with headersInline set to true, the unmarshal path copies the MIME headers of the incoming message onto the Camel message: it enumerates every header that is not one of the three standard ones it generates itself - Message-ID, MIME-Version and Content-Type - and calls setHeader for each, applying no HeaderFilterStrategy. The names of those MIME headers come from the message being unmarshalled, so a sender able to influence the message could place a header whose name falls in the Camel-internal namespace and have it set on the Exchange. Camel components read control headers from that namespace to override their configured behaviour - the camel-sql producer, for instance, takes the statement to execute from a Camel header when one is present - so an injected header could redirect what a downstream step in the route does with data the route author never intended it to take from the message. Which sinks are reachable, and what the consequences are, depends entirely on what the route does after the unmarshal step. The camel-mail consumer already applied a header filter strategy on its own inbound path, so this was the parallel inbound path into the same component that the earlier hardening did not cover. The affected copy is reached only when headersInline is enabled, which is not the default: with the default setting the MIME headers are surfaced as attachments rather than as message headers, and are not affected. The behaviour dates back to the introduction of the data format in 2.17.0 and was present on every release line until this fix.\n\nUsers are recommended to upgrade to version 4.22.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.9. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.4. For deployments that cannot upgrade immediately, leave headersInline at its default of false where the inline headers are not needed, since the copy is only reached when it is enabled. Where it must stay enabled, strip Camel-internal headers immediately after the unmarshal step, for example with removeHeaders(“Camel*”) placed before any processor or producer that reads control headers, and do not unmarshal MIME content from an untrusted sender into a route that dispatches on header values. As defence in depth, treat the header names of any MIME message arriving from outside the trust boundary as untrusted input.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-mail"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.17.0"
      }, {
        "fixed" : "4.14.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-mail"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.15.0"
      }, {
        "fixed" : "4.18.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-mail"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.19.0"
      }, {
        "fixed" : "4.22.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-59230"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/24406"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/24409"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/24445"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/24454"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/24456"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/4d03138dc27c04afdaae6cd40f026c23ed8d7973"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/ca74898bdef4f2917755ed8911eedfc7f09bd589"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/ccdeebc2ae378ba75e5563ddab508fc887527f0c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/cd1333ca1c1d491b4d121878dc025b130554d367"
  }, {
    "type" : "WEB",
    "url" : "https://camel.apache.org/security/CVE-2026-59230.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/camel"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/releases/tag/camel-4.14.9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/releases/tag/camel-4.18.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/releases/tag/camel-4.22.0"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2026/08/24/7"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-28T20:19:11Z",
    "nvd_published_at" : "2026-08-24T17:17:28Z"
  }
}