CVE-2026-59230 is a trust boundary violation in Apache Camel's MimeMultipart data format. When the headersInline flag is enabled, MIME headers from inbound messages are unmarshaled directly into Camel's internal Camel* header namespace without any filtering. This is a footgun: developers enabling this flag expect to access MIME headers as message headers, but they are unknowingly granting any external sender the ability to write to Camel's control plane — headers like CamelSql* that steer the SQL producer, CamelFile* that control file handling, and other internal routing directives. The attack surface is real and immediate: an attacker who sends a crafted MIME message to a route that unmarshals with headersInline=true can inject control headers that downstream producers will honor as configuration. If that route flows into camel-sql, you've achieved database write injection through header manipulation. The blast radius is entirely dependent on what downstream producers do with control headers, which makes this harder to score but easier to exploit once you've identified a vulnerable route. What makes this worse architecturally is that the camel-mail consumer already applies a header filter strategy on its inbound path — the same component shipped two parallel entry points with asymmetric protection. The unmarshal path was never hardened, likely because CVE-driven fixes are scope-minimal: someone reported the consumer vulnerability, patched that specific path, and moved on without auditing the data format's parallel unmarshal. The control namespace collision is the deeper problem: Camel never distinguished between headers it generates for its own bookkeeping and headers accepted as configuration input from external sources. They occupy the same syntactic space, making this entire class of vulnerability inevitable wherever external input can reach the Camel* namespace. For immediate mitigation, strip Camel* headers after unmarshal if you must use this flag. The real fix requires architectural segregation between generated metadata and accepted parameters — but that ship has sailed for the current Camel model. Review any route using headersInline that processes external input and flows into producers that read control headers; those are your active injection paths. Post-disclosure, the exploit knowledge is now public and the discovery cost has collapsed to near-zero: anyone who knows what headersInline does can scan public route configurations for targets.
CVE-2026-59230
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedImproper 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysisThe application accepts input without confirming it is well-formed or within expected bounds, so malformed data can push the program into states its author never anticipated. Attackers probe these gaps to trigger crashes, bypass logic, or feed tainted values into more dangerous operations downstream. Remediating it well means validating and normalising every input at the boundary against a strict allow-list — not merely filtering known-bad values.
General guidance for the improper input validation class — the official description and references above are authoritative for this specific CVE. Want a bespoke review and a reviewed fix? Ask our team →
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 2.17.0, < 4.14.9>= 4.15.0, < 4.18.4>= 4.19.0, < 4.22.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped4.14.94.18.44.22.0
Apache Camel 4.22.0 (or 4.14.9 for 4.14.x LTS, or 4.18.4 for 4.18.x)
- Upgrade to Apache Camel 4.22.0 (latest stable release) if using 4.19.x or 4.20.x
- If using Apache Camel 4.14.x LTS, upgrade to version 4.14.9
- If using Apache Camel 4.18.x releases, upgrade to version 4.18.4
- After upgrading, verify that the camel-mail component's MimeMultipart data format properly filters Camel-internal headers during unmarshal when headersInline is true
- Alternatively, if immediate upgrade is not feasible, ensure headersInline remains at its default value of false to avoid the vulnerability
Generated from the published advisory — verify against the referenced sources before acting.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-59230 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesCVE-2026-59230 is a trust boundary violation in Apache Camel's MimeMultipart data format. When the `headersInline` flag is enabled, MIME headers from inbound messages are unmarshaled directly into Camel's internal `Camel*` header namespace without any filtering. This is a footgun: developers enabling this flag expect to access MIME headers as message headers, but they are unknowingly granting any external sender the ability to write to Camel's control plane — headers like `CamelSql*` that steer the SQL producer, `CamelFile*` that control file handling, and other internal routing directives. The attack surface is real and immediate: an attacker who sends a crafted MIME message to a route that unmarshals with `headersInline=true` can inject control headers that downstream producers will honor as configuration. If that route flows into camel-sql, you've achieved database write injection through header manipulation. The blast radius is entirely dependent on what downstream producers do with control headers, which makes this harder to score but easier to exploit once you've identified a vulnerable route. What makes this worse architecturally is that the camel-mail consumer already applies a header filter strategy on its inbound path — the same component shipped two parallel entry points with asymmetric protection. The unmarshal path was never hardened, likely because CVE-driven fixes are scope-minimal: someone reported the consumer vulnerability, patched that specific path, and moved on without auditing the data format's parallel unmarshal. The control namespace collision is the deeper problem: Camel never distinguished between headers it generates for its own bookkeeping and headers accepted as configuration input from external sources. They occupy the same syntactic space, making this entire class of vulnerability inevitable wherever external input can reach the `Camel*` namespace. For immediate mitigation, strip `Camel*` headers after unmarshal if you must use this flag. The real fix requires architectural segregation between generated metadata and accepted parameters — but that ship has sailed for the current Camel model. Review any route using `headersInline` that processes external input and flows into producers that read control headers; those are your active injection paths. Post-disclosure, the exploit knowledge is now public and the discovery cost has collapsed to near-zero: anyone who knows what `headersInline` does can scan public route configurations for targets.
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-59230 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data