CVE-2025-29891: Camel support Apache Camel Message Header Injection Vulnerability

MODERATE
Advisory Identifier: GHSA-96v5-c2h5-56hm
CVSS 4.2
CWE-164
Published
Advisory Summary

CVE-2025-29891 is a MODERATE (CVSS 4.2) apache camel message header injection vulnerability (CWE-164: Improper Neutralization of Internal Special Elements) affecting Camel support libraries in the Maven ecosystem. The issue involves apache camel message header injection through request parameters. Remediation is available by upgrading affected packages to version 3.22.4, 4.10.2, 4.8.5.

CVE-2025-29891 at a Glance

CVE Identifier CVE-2025-29891
GHSA Identifier GHSA-96v5-c2h5-56hm
Severity MODERATE
CVSS v3.1 Base Score 4.2
CWE Classification CWE-164: Improper Neutralization of Internal Special Elements
Affected Product Camel support
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 4.2

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

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

How to Fix CVE-2025-29891

To remediate this vulnerability, upgrade all affected Camel support 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-support fixed: 3.22.4
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-support</artifactId>
    <version>3.22.4</version>
</dependency>
org.apache.camel:camel-support fixed: 4.10.2
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-support</artifactId>
    <version>4.10.2</version>
</dependency>
org.apache.camel:camel-support fixed: 4.8.5
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-support</artifactId>
    <version>4.8.5</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-2025-29891, 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 Camel support in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.22.4), 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-164: Improper Neutralization of Internal Special Elements, where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes internal special elements that could be interpreted in unexpected ways when they are sent to a downstream component. In Camel support, 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

Bypass/Injection vulnerability in Apache Camel. This issue affects Apache Camel: from 4.9.0 before 4.10.2, from 4.0.0 before 4.8.5, from 3.10.0 before 3.22.4. Users are recommended to upgrade to version 4.10.2 for 4.10.x LTS, 4.8.5 for 4.8.x LTS and 3.22.4 for 3.x releases. This vulnerability is present in Camel's default incoming header filter, that allows an attacker to include Camel specific headers that for some Camel components can alter the behaviours such as the camel-bean component, or the camel-exec component. If you have Camel applications that are directly connected to the internet via HTTP, then an attacker could include parameters in the HTTP requests that are sent to the Camel application that get translated into headers.  The headers could be both provided as request parameters for an HTTP methods invocation or as part of the payload of the HTTP methods invocation. All the known Camel HTTP component such as camel-servlet, camel-jetty, camel-undertow, camel-platform-http, and camel-netty-http would be vulnerable out of the box. This CVE is related to the CVE-2025-27636: while they have the same root cause and are fixed with the same fix, CVE-2025-27636 was assumed to only be exploitable if an attacker could add malicious HTTP headers, while we have now determined that it is also exploitable via HTTP parameters. Like in CVE-2025-27636, exploitation is only possible if the Camel route uses particular vulnerable components.

CVE-2025-29891 Affected Camel support Versions

3 component(s)
Fixed Versions:
3.22.44.10.24.8.5
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.camel:camel-support
Maven
≥ 3.10.0
< 3.22.4
3.22.4
org.apache.camel:camel-support
Maven
≥ 4.9.0
< 4.10.2
4.10.2
org.apache.camel:camel-support
Maven
≥ 4.0.0-M1
< 4.8.5
4.8.5

References

Frequently Asked Questions

What is CVE-2025-29891?
CVE-2025-29891 is a security vulnerability in Camel support involving Apache Camel Message Header Injection through request parameters under CWE-164: Improper Neutralization of Internal Special Elements.
Which Camel support versions are affected?
Affected versions include releases prior to 3.22.4, 4.10.2, 4.8.5 across affected packages: org.apache.camel:camel-support.
What version fixes CVE-2025-29891?
Upgrading to 3.22.4, 4.10.2, 4.8.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is camel-support affected?
Yes, org.apache.camel:camel-support is affected in releases prior to 3.22.4, 4.10.2, 4.8.5. Upgrade your dependency to 3.22.4, 4.10.2, 4.8.5 or later.
What is the CVSS score of CVE-2025-29891?
CVE-2025-29891 has a CVSS v3.1 base score of 4.2 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2025-29891?
CVE-2025-29891 is classified under CWE-164: Improper Neutralization of Internal Special Elements (The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes internal special elements that could be interpreted in unexpected ways when they are sent to a downstream component.).
How can I check Maven dependencies for CVE-2025-29891?
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-96v5-c2h5-56hm",
  "modified" : "2025-03-19T15:44:48Z",
  "published" : "2025-03-12T15:32:06Z",
  "aliases" : [ "CVE-2025-29891" ],
  "summary" : "Apache Camel Message Header Injection through request parameters",
  "details" : "Bypass/Injection vulnerability in Apache Camel.\n\nThis issue affects Apache Camel: from 4.9.0 before 4.10.2, from 4.0.0 before 4.8.5, from 3.10.0 before 3.22.4.\n\nUsers are recommended to upgrade to version 4.10.2 for 4.10.x LTS, 4.8.5 for 4.8.x LTS and 3.22.4 for 3.x releases.\n\nThis vulnerability is present in Camel's default incoming header filter, that allows an attacker to include Camel specific headers that for some Camel components can alter the behaviours such as the camel-bean component, or the camel-exec component.\n\nIf you have Camel applications that are directly connected to the internet via HTTP, then an attacker could include parameters in the HTTP requests that are sent to the Camel application that get translated into headers. \n\nThe headers could be both provided as request parameters for an HTTP methods invocation or as part of the payload of the HTTP methods invocation.\n\nAll the known Camel HTTP component such as camel-servlet, camel-jetty, camel-undertow, camel-platform-http, and camel-netty-http would be vulnerable out of the box.\n\nThis CVE is related to the CVE-2025-27636: while they have the same root cause and are fixed with the same fix, CVE-2025-27636 was assumed to only be exploitable if an attacker could add malicious HTTP headers, while we have now determined that it is also exploitable via HTTP parameters. Like in CVE-2025-27636, exploitation is only possible if the Camel route uses particular vulnerable components.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-support"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.10.0"
      }, {
        "fixed" : "3.22.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-support"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.9.0"
      }, {
        "fixed" : "4.10.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-support"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0-M1"
      }, {
        "fixed" : "4.8.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-29891"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/23a833eec6131a3cdce6e4b1b40b3ac2035b6adf"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/45a6b74f7f8af8fd58f197566938a9534392a624"
  }, {
    "type" : "WEB",
    "url" : "https://camel.apache.org/security/CVE-2025-27636.html"
  }, {
    "type" : "WEB",
    "url" : "https://camel.apache.org/security/CVE-2025-29891.html"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/akamai/CVE-2025-27636-Apache-Camel-PoC"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/camel"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/CAMEL-21828"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-164" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-12T20:19:10Z",
    "nvd_published_at" : "2025-03-12T15:15:40Z"
  }
}