CVE-2026-59230 json
Apache Camel: Camel-Mail: the MimeMultipart data format copied MIME headers onto the Camel message without a header filter strategy when unmarshalling with headersInline enabled
published 2026-08-24 2 mo ago modified 2026-10-12 28 d ago also EUVD-2026-64953 , GHSA-cx47-qxp5-mmh2
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 46%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.apache.camel:camel-mail 4.14.9, 4.18.4, 4.22.0
- Apache Software Foundation Apache Camel 4.14.9, 4.18.4, 4.22.0
- github.com/apache/camel@4d03138 commit
- github.com/apache/camel@ca74898 commit
- github.com/apache/camel@ccdeebc commit
- github.com/apache/camel@cd1333c commit
- github.com/apache/camel#24406 pull request
- github.com/apache/camel#24409 pull request
- github.com/apache/camel#24445 pull request
- github.com/apache/camel#24454 pull request
- github.com/apache/camel#24456 pull request
- github.com/apache/camel/releases/tag/camel-4.14.9 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-59230 updated cvss 6.5
org.apache.camel/camel-mail: Apache Camel: Injected MIME headers can manipulate route behavior
-
Red Hat build of Apache Camel 4 for Quarkus 3 camel-mail 4.18.3.redhat-00001affected: workaround, no fix available
-
Red Hat Fuse 7 camel-mail 4.18.3.redhat-00001affected: workaround, no fix planned “Out of support scope”
-
Red Hat build of Apache Camel 4.18.4 for Spring Boot 3.5.16fixed: vendor fix RHSA-2026:71675
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 mo ago
Exploit prediction
0.56% chance of exploitation in the next 30 days, higher than 46% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.camel:camel-mail | >=2.17.0, <4.14.9 >=4.15.0, <4.18.4 >=4.19.0, <4.22.0 |
4.14.9 4.18.4 4.22.0 |
Affected products
- Apache Software Foundation Apache Camel
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/apache/camel/pull/24406
web
-
github.com
/apache/camel/pull/24409
web
-
github.com
/apache/camel/pull/24445
web
-
github.com
/apache/camel/pull/24454
web
-
github.com
/apache/camel/pull/24456
web
-
github.com
/apache/camel/commit/4d03138dc27c04afdaae6cd40f026c23ed8d7973
web
-
github.com
/apache/camel/commit/ca74898bdef4f2917755ed8911eedfc7f09bd589
web
-
github.com
/apache/camel/commit/ccdeebc2ae378ba75e5563ddab508fc887527f0c
web
-
github.com
/apache/camel/commit/cd1333ca1c1d491b4d121878dc025b130554d367
web
-
camel.apache.org
/security/CVE-2026-59230.html
vendor-advisory, web, mailing-list
-
openwall.com
/lists/oss-security/2026/08/24/7
web, mailing-list, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-59230
advisory
-
github.com
/apache/camel
package
-
github.com
/apache/camel/releases/tag/camel-4.14.9
web
-
github.com
/apache/camel/releases/tag/camel-4.18.4
web
-
github.com
/apache/camel/releases/tag/camel-4.22.0
web
Sources
- CVE List CVE-2026-59230
- GitHub Advisory GHSA-cx47-qxp5-mmh2
- NVD CVE-2026-59230
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.