Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-59230: CWE-20 Improper input validation in Apache Software Foundation Apache Camel

0
High
VulnerabilityCVE-2026-59230cvecve-2026-59230cwe-20
Published: 08/24/2026 (08/24/2026, 16:09:44 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache Camel

Description

Apache Camel contains an improper input validation vulnerability in its camel-mail component when configured with headersInline set to true. This allows MIME headers from incoming messages to be copied onto the Camel message without filtering, potentially enabling an attacker who can influence the message to inject headers in the Camel-internal namespace. Such injected headers can alter downstream route behavior by overriding configured component behavior. The issue affects versions from 2.17.0 before 4.14.9, from 4.15.0 before 4.18.4, and from 4.19.0 before 4.22.0. The vulnerability is fixed in versions 4.14.9, 4.18.4, and 4.22.0. Users are advised to upgrade or apply mitigations if upgrading is not immediately possible.

Affected software

Apache Software Foundation/org.apache.camel:camel-mail
pkg:maven/Apache Software Foundation/org.apache.camel:camel-mail
Affected versions
>=2.17.0 <4.14.9>=4.15.0 <4.18.4>=4.19.0 <4.22.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/24/2026, 16:37:57 UTC

Technical Analysis

The vulnerability in Apache Camel's camel-mail component arises from improper input validation when unmarshalling MIME multipart messages with headersInline enabled. The unmarshal process copies MIME headers directly onto the Camel message headers without applying a HeaderFilterStrategy, allowing an attacker controlling the MIME message to inject headers in the Camel-internal namespace. These headers can influence downstream processing steps by overriding component behavior, such as SQL statements executed by the camel-sql producer. This flaw has existed since the introduction of the data format in version 2.17.0 and affects all releases until fixed in 4.14.9, 4.18.4, and 4.22.0. The default configuration (headersInline=false) is not affected. The risk depends on the route's processing logic after unmarshalling. Mitigations include upgrading to fixed versions, disabling headersInline if not needed, or stripping Camel-internal headers immediately after unmarshalling.

Potential Impact

An attacker able to influence MIME multipart messages processed by Apache Camel with headersInline enabled can inject headers in the Camel-internal namespace. This can lead to unauthorized control over downstream route behavior, potentially causing unintended execution of commands or data manipulation depending on the route configuration. The impact varies based on the route's design and which components consume the injected headers. There is no indication of known exploits in the wild at this time.

Mitigation Recommendations

A fix is available in Apache Camel versions 4.14.9, 4.18.4, and 4.22.0. Users are strongly recommended to upgrade to these versions. For environments where immediate upgrade is not feasible, keep headersInline set to false (the default) to avoid exposure. If headersInline must remain enabled, remove Camel-internal headers immediately after unmarshalling using removeHeaders("Camel*") before any processor or producer that reads control headers. Additionally, avoid unmarshalling MIME content from untrusted sources into routes that dispatch based on header values. Treat all MIME header names from outside the trust boundary as untrusted input for defense in depth.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
apache
Date Reserved
2026-07-03T10:47:39.960Z
Cvss Version
null
State
PUBLISHED
Remediation Level
null

Threat ID: 6a8c7117acd9273b49d27d9f

Added to database: 08/24/2026, 16:28:07 UTC

Last enriched: 08/24/2026, 16:37:57 UTC

Last updated: 08/24/2026, 16:46:01 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses