CVE-2024-23114: Camel cassandraql Deserialization Of Untrusted Data Vulnerability

HIGH
Advisory Identifier: GHSA-m43p-55rf-8c2j
CWE-502
Published
Advisory Summary

CVE-2024-23114 is a HIGH deserialization of untrusted data vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Camel cassandraql libraries in the Maven ecosystem. The issue involves deserialization of untrusted data in apache camel cassandraql. Remediation is available by upgrading affected packages to version 3.21.4, 3.22.1, 4.0.4, 4.4.0.

CVE-2024-23114 at a Glance

CVE Identifier CVE-2024-23114
GHSA Identifier GHSA-m43p-55rf-8c2j
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Camel cassandraql
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2024-23114

To remediate this vulnerability, upgrade all affected Camel cassandraql 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-cassandraql fixed: 3.21.4
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-cassandraql</artifactId>
    <version>3.21.4</version>
</dependency>
org.apache.camel:camel-cassandraql fixed: 3.22.1
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-cassandraql</artifactId>
    <version>3.22.1</version>
</dependency>
org.apache.camel:camel-cassandraql fixed: 4.0.4
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-cassandraql</artifactId>
    <version>4.0.4</version>
</dependency>
org.apache.camel:camel-cassandraql fixed: 4.4.0
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-cassandraql</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-23114, 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 cassandraql 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Camel cassandraql, 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

Deserialization of Untrusted Data vulnerability in Apache Camel CassandraQL Component AggregationRepository which is vulnerable to unsafe deserialization. Under specific conditions it is possible to deserialize malicious payload.This issue affects Apache Camel: from 3.0.0 before 3.21.4, from 3.22.0 before 3.22.1, from 4.0.0 before 4.0.4, from 4.1.0 before 4.4.0. Users are recommended to upgrade to version 4.4.0, which fixes the issue. If users are on the 4.0.x LTS releases stream, then they are suggested to upgrade to 4.0.4. If users are on 3.x, they are suggested to move to 3.21.4 or 3.22.1

CVE-2024-23114 Affected Camel cassandraql 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-cassandraql
Maven
≥ 3.0.0
< 3.21.4
3.21.4
org.apache.camel:camel-cassandraql
Maven
≥ 3.22.0
< 3.22.1
3.22.1
org.apache.camel:camel-cassandraql
Maven
≥ 4.0.0
< 4.0.4
4.0.4
org.apache.camel:camel-cassandraql
Maven
≥ 4.1.0
< 4.4.0
4.4.0

References

Frequently Asked Questions

What is CVE-2024-23114?
CVE-2024-23114 is a security vulnerability in Camel cassandraql involving Deserialization of Untrusted Data in Apache Camel CassandraQL under CWE-502: Deserialization of Untrusted Data.
Which Camel cassandraql 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-cassandraql.
What version fixes CVE-2024-23114?
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-cassandraql affected?
Yes, org.apache.camel:camel-cassandraql 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 CWE is associated with CVE-2024-23114?
CVE-2024-23114 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Maven dependencies for CVE-2024-23114?
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-m43p-55rf-8c2j",
  "modified" : "2024-02-22T20:31:17Z",
  "published" : "2024-02-20T15:31:06Z",
  "aliases" : [ "CVE-2024-23114" ],
  "summary" : "Deserialization of Untrusted Data in Apache Camel CassandraQL",
  "details" : "Deserialization of Untrusted Data vulnerability in Apache Camel CassandraQL Component AggregationRepository which is vulnerable to unsafe deserialization. Under specific conditions it is possible to deserialize malicious payload.This issue affects Apache Camel: from 3.0.0 before 3.21.4, from 3.22.0 before 3.22.1, from 4.0.0 before 4.0.4, from 4.1.0 before 4.4.0.\n\nUsers are recommended to upgrade to version 4.4.0, which fixes the issue. If users are on the 4.0.x LTS releases stream, then they are suggested to upgrade to 4.0.4. If users are on 3.x, they are suggested to move to 3.21.4 or 3.22.1\n\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-cassandraql"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.21.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-cassandraql"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.22.0"
      }, {
        "fixed" : "3.22.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-cassandraql"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.0.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-cassandraql"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.1.0"
      }, {
        "fixed" : "4.4.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-23114"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/12759"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/12760"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/12761"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/12762"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/12790"
  }, {
    "type" : "WEB",
    "url" : "https://camel.apache.org/security/CVE-2024-23114.html"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Croway/potential-cassandra"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/camel"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/CAMEL-20306"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-21T00:22:04Z",
    "nvd_published_at" : "2024-02-20T15:15:10Z"
  }
}