CVE-2024-36268: Tubemq core Apache Inlong Code Injection Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-qff2-8qw7-hcvw
CVSS 7.6
CWE-94
Published
Advisory Summary

CVE-2024-36268 is a HIGH (CVSS 7.6) apache inlong code injection vulnerability vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Tubemq core libraries in the Maven ecosystem. The issue involves apache inlong code injection vulnerability. Remediation is available by upgrading affected packages to version 1.13.0.

CVE-2024-36268 at a Glance

CVE Identifier CVE-2024-36268
GHSA Identifier GHSA-qff2-8qw7-hcvw
Severity HIGH
CVSS v3.1 Base Score 7.6
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Tubemq core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.6

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

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

How to Fix CVE-2024-36268

To remediate this vulnerability, upgrade all affected Tubemq 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.inlong:tubemq-core fixed: 1.13.0
<dependency>
    <groupId>org.apache.inlong</groupId>
    <artifactId>tubemq-core</artifactId>
    <version>1.13.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.inlong

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-36268, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.inlong

Analyze the terminal output to locate any version of Tubemq core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.13.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.inlong 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Tubemq 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

Improper Control of Generation of Code ('Code Injection') vulnerability in Apache InLong. This issue affects Apache InLong: from 1.10.0 through 1.12.0, which could lead to Remote Code Execution. Users are advised to upgrade to Apache InLong's 1.13.0 or cherry-pick [1] to solve it. [1]  https://github.com/apache/inlong/pull/10251

CVE-2024-36268 Affected Tubemq core Versions

1 component(s)
Fixed Versions:
1.13.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.inlong:tubemq-core
Maven
≥ 1.10.0
< 1.13.0
1.13.0

References

Frequently Asked Questions

What is CVE-2024-36268?
CVE-2024-36268 is a security vulnerability in Tubemq core involving Apache Inlong Code Injection vulnerability under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Tubemq core versions are affected?
Affected versions include releases prior to 1.13.0 across affected packages: org.apache.inlong:tubemq-core.
What version fixes CVE-2024-36268?
Upgrading to 1.13.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tubemq-core affected?
Yes, org.apache.inlong:tubemq-core is affected in releases prior to 1.13.0. Upgrade your dependency to 1.13.0 or later.
What is the CVSS score of CVE-2024-36268?
CVE-2024-36268 has a CVSS v3.1 base score of 7.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L.
What CWE is associated with CVE-2024-36268?
CVE-2024-36268 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Maven dependencies for CVE-2024-36268?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.inlong'. 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-qff2-8qw7-hcvw",
  "modified" : "2024-08-22T21:41:39Z",
  "published" : "2024-08-02T12:31:43Z",
  "aliases" : [ "CVE-2024-36268" ],
  "summary" : "Apache Inlong Code Injection vulnerability",
  "details" : "Improper Control of Generation of Code ('Code Injection') vulnerability in Apache InLong.\n\nThis issue affects Apache InLong: from 1.10.0 through 1.12.0, which could lead to Remote Code Execution. Users are advised to upgrade to Apache InLong's 1.13.0 or cherry-pick [1] to solve it.\n\n[1]  https://github.com/apache/inlong/pull/10251",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.inlong:tubemq-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.10.0"
      }, {
        "fixed" : "1.13.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-36268"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/inlong/pull/10251"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/inlong/commit/85fc8b02e69badc5103fadb77559a921c788537a"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/1w1yp1bg5sjvn46dszkf00tz1vfs0frc"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-02T15:16:26Z",
    "nvd_published_at" : "2024-08-02T10:16:00Z"
  }
}