CVE-2024-22371: Camel core Apache Camel Data Exposure Vulnerability Vulnerability

LOW
Advisory Identifier: GHSA-qpxm-689r-3849
CVSS 2.9
CWE-922 CWE-200
Published
Advisory Summary

CVE-2024-22371 is a LOW (CVSS 2.9) apache camel data exposure vulnerability vulnerability (CWE-922: Insecure Storage of Sensitive Information) affecting Camel core libraries in the Maven ecosystem. The issue involves apache camel data exposure vulnerability. Remediation is available by upgrading affected packages to version 3.21.4, 3.22.1, 4.0.4, 4.4.0.

CVE-2024-22371 at a Glance

CVE Identifier CVE-2024-22371
GHSA Identifier GHSA-qpxm-689r-3849
Severity LOW
CVSS v3.1 Base Score 2.9
CWE Classification CWE-922: Insecure Storage of Sensitive Information
Affected Product Camel core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 2.9

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

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

How to Fix CVE-2024-22371

To remediate this vulnerability, upgrade all affected Camel core 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-core fixed: 3.21.4
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-core</artifactId>
    <version>3.21.4</version>
</dependency>
org.apache.camel:camel-core fixed: 3.22.1
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-core</artifactId>
    <version>3.22.1</version>
</dependency>
org.apache.camel:camel-core fixed: 4.0.4
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-core</artifactId>
    <version>4.0.4</version>
</dependency>
org.apache.camel:camel-core fixed: 4.4.0
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-core</artifactId>
    <version>4.4.0</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-2024-22371, 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 core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.21.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-922: Insecure Storage of Sensitive Information, where the product stores sensitive information without properly limiting read or write access by unauthorized actors. In Camel core, 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

Exposure of sensitive data by by crafting a malicious EventFactory and providing a custom ExchangeCreatedEvent that exposes sensitive data. Vulnerability in Apache Camel. This issue affects Apache Camel: from 3.0.0 through 3.21.3, from 3.22.X through 3.22.0, from 4.0.X through 4.0.3, from 4.X through 4.3.0. Users are recommended to upgrade to version 3.21.4, 3.22.1, 4.0.4 or 4.4.0, which fixes the issue.

CVE-2024-22371 Affected Camel core Versions

4 component(s)
Fixed Versions:
3.21.43.22.14.0.44.4.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.camel:camel-core
Maven
≥ 3.0.0
< 3.21.4
3.21.4
org.apache.camel:camel-core
Maven
≥ 3.22.0
< 3.22.1
All 1 versions
3.22.0
3.22.1
org.apache.camel:camel-core
Maven
≥ 4.0.0
< 4.0.4
4.0.4
org.apache.camel:camel-core
Maven
≥ 4.1.0
< 4.4.0
4.4.0

References

Frequently Asked Questions

What is CVE-2024-22371?
CVE-2024-22371 is a security vulnerability in Camel core involving Apache Camel data exposure vulnerability under CWE-922: Insecure Storage of Sensitive Information.
Which Camel core versions are affected?
Affected versions include releases prior to 3.21.4, 3.22.1, 4.0.4, 4.4.0 across affected packages: org.apache.camel:camel-core.
What version fixes CVE-2024-22371?
Upgrading to 3.21.4, 3.22.1, 4.0.4, 4.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is camel-core affected?
Yes, org.apache.camel:camel-core is affected in releases prior to 3.21.4, 3.22.1, 4.0.4, 4.4.0. Upgrade your dependency to 3.21.4, 3.22.1, 4.0.4, 4.4.0 or later.
What is the CVSS score of CVE-2024-22371?
CVE-2024-22371 has a CVSS v3.1 base score of 2.9 (LOW) with vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-22371?
CVE-2024-22371 is classified under CWE-922: Insecure Storage of Sensitive Information (The product stores sensitive information without properly limiting read or write access by unauthorized actors.).
How can I check Maven dependencies for CVE-2024-22371?
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-qpxm-689r-3849",
  "modified" : "2024-10-31T16:57:20Z",
  "published" : "2024-02-26T18:30:30Z",
  "aliases" : [ "CVE-2024-22371" ],
  "summary" : "Apache Camel data exposure vulnerability",
  "details" : "Exposure of sensitive data by by crafting a malicious EventFactory and providing a custom ExchangeCreatedEvent that exposes sensitive data. Vulnerability in Apache Camel. This issue affects Apache Camel: from 3.0.0 through 3.21.3, from 3.22.X through 3.22.0, from 4.0.X through 4.0.3, from 4.X through 4.3.0.\n\nUsers are recommended to upgrade to version 3.21.4, 3.22.1, 4.0.4 or 4.4.0, which fixes the issue.\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.21.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.22.0"
      }, {
        "fixed" : "3.22.1"
      } ]
    } ],
    "versions" : [ "3.22.0" ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.0.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.1.0"
      }, {
        "fixed" : "4.4.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-22371"
  }, {
    "type" : "WEB",
    "url" : "https://camel.apache.org/security/CVE-2024-22371.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/camel"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/CAMEL-20305"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-922" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-26T21:30:37Z",
    "nvd_published_at" : "2024-02-26T16:27:56Z"
  }
}