CVE-2025-30177: Camel undertow Apache Camel Missing Header Out Vulnerability

MODERATE
Advisory Identifier: GHSA-vq4p-pchp-6g6v
CVSS 6.5
CWE-164
Published
Advisory Summary

CVE-2025-30177 is a MODERATE (CVSS 6.5) apache camel missing header out vulnerability (CWE-164: Improper Neutralization of Internal Special Elements) affecting Camel undertow libraries in the Maven ecosystem. The issue involves apache camel missing header out filter leads to potential bypass/injection vulnerability. Remediation is available by upgrading affected packages to version 4.10.3, 4.8.6.

CVE-2025-30177 at a Glance

CVE Identifier CVE-2025-30177
GHSA Identifier GHSA-vq4p-pchp-6g6v
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-164: Improper Neutralization of Internal Special Elements
Affected Product Camel undertow
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-2025-30177

To remediate this vulnerability, upgrade all affected Camel undertow 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-undertow fixed: 4.10.3
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-undertow</artifactId>
    <version>4.10.3</version>
</dependency>
org.apache.camel:camel-undertow fixed: 4.8.6
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-undertow</artifactId>
    <version>4.8.6</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-30177, 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 undertow in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.10.3), 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 undertow, 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 in Camel-Undertow component under particular conditions. This issue affects Apache Camel: from 4.10.0 before 4.10.3, from 4.8.0 before 4.8.6. Users are recommended to upgrade to version 4.10.3 for 4.10.x LTS and 4.8.6 for 4.8.x LTS. Camel undertow component is vulnerable to Camel message header injection, in particular the custom header filter strategy used by the component only filter the "out" direction, while it doesn't filter the "in" direction. This allows an attacker to include Camel specific headers that for some Camel components can alter the behaviour such as the camel-bean component, or the camel-exec component.

CVE-2025-30177 Affected Camel undertow Versions

2 component(s)
Fixed Versions:
4.10.34.8.6
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.camel:camel-undertow
Maven
≥ 4.10.0
< 4.10.3
4.10.3
org.apache.camel:camel-undertow
Maven
≥ 4.8.0
< 4.8.6
4.8.6

References

Frequently Asked Questions

What is CVE-2025-30177?
CVE-2025-30177 is a security vulnerability in Camel undertow involving Apache Camel Missing Header Out Filter Leads to Potential Bypass/Injection Vulnerability under CWE-164: Improper Neutralization of Internal Special Elements.
Which Camel undertow versions are affected?
Affected versions include releases prior to 4.10.3, 4.8.6 across affected packages: org.apache.camel:camel-undertow.
What version fixes CVE-2025-30177?
Upgrading to 4.10.3, 4.8.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is camel-undertow affected?
Yes, org.apache.camel:camel-undertow is affected in releases prior to 4.10.3, 4.8.6. Upgrade your dependency to 4.10.3, 4.8.6 or later.
What is the CVSS score of CVE-2025-30177?
CVE-2025-30177 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-2025-30177?
CVE-2025-30177 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-30177?
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-vq4p-pchp-6g6v",
  "modified" : "2025-04-01T22:07:14Z",
  "published" : "2025-04-01T12:30:34Z",
  "aliases" : [ "CVE-2025-30177" ],
  "summary" : "Apache Camel Missing Header Out Filter Leads to Potential Bypass/Injection Vulnerability",
  "details" : "Bypass/Injection vulnerability in Apache Camel in Camel-Undertow component under particular conditions.\n\nThis issue affects Apache Camel: from 4.10.0 before 4.10.3, from 4.8.0 before 4.8.6.\n\nUsers are recommended to upgrade to version 4.10.3 for 4.10.x LTS and 4.8.6 for 4.8.x LTS.\n\nCamel undertow component is vulnerable to Camel message header injection, in particular the custom header filter strategy used by the component only filter the \"out\" direction, while it doesn't filter the \"in\" direction.\n\n\nThis allows an attacker to include Camel specific headers that for some Camel components can alter the behaviour such as the camel-bean component, or the camel-exec component.",
  "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-undertow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.10.0"
      }, {
        "fixed" : "4.10.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-undertow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.8.0"
      }, {
        "fixed" : "4.8.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-30177"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/9fd8fc30dbd98511a1faa0cbcf39ef5aeec88a64"
  }, {
    "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" : "PACKAGE",
    "url" : "https://github.com/apache/camel"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/dj79zdgw01j337lr9gvyy4sv8xfyw8py"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-164" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-01T22:07:14Z",
    "nvd_published_at" : "2025-04-01T12:15:15Z"
  }
}