Vulnerabilities in pkg:maven/org.apache.inlong/manager-service

PACKAGE
Advisory Identifier: GHSA-r5pv-7g89-cxmc
Advisory Summary

CVE-2023-35088 is a CRITICAL (CVSS 9.8) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Manager service libraries in the Maven ecosystem. The issue involves sql injection in audit endpoint. Remediation is available by upgrading affected packages to version 1.8.0.

10 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.inlong/manager-service

10 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.inlong/manager-service. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-r5pv-7g89-cxmc CVE-2023-35088 CRITICAL SQL injection in audit endpoint
GHSA-cqr6-3x3f-9wr3 CVE-2023-30465 MODERATE Apache InLong SQL Injection vulnerability
GHSA-rf76-whgp-fp56 CVE-2023-31454 HIGH Apache InLong vulnerable to Incorrect Permission Assignment for Critical Resource
GHSA-f475-jgg3-3jwc CVE-2023-31206 HIGH Apache InLong Exposure of Resource to Wrong Sphere vulnerability
GHSA-8rjh-3mhm-966q CVE-2023-31453 HIGH Apache InLong Incorrect Permission Assignment for Critical Resource Vulnerability
GHSA-7mhc-76hf-3jp9 CVE-2023-31103 HIGH Apache InLong Exposure of Resource to Wrong Sphere vulnerability
GHSA-q5p5-xg93-2jqc CVE-2023-31062 CRITICAL Apache InLong Improper Privilege Management vulnerability
GHSA-wx79-r3q8-fq9h CVE-2023-31066 CRITICAL Apache InLong has Files or Directories Accessible to External Parties in Apache InLong
GHSA-757p-7hp5-pqmr CVE-2023-31065 CRITICAL Apache InLong Insufficient Session Expiration vulnerability
GHSA-h79m-5cm2-278c CVE-2023-31101 MODERATE User data exposure in Apache InLong

CVE-2023-35088 at a Glance

CVE Identifier CVE-2023-35088
GHSA Identifier GHSA-r5pv-7g89-cxmc
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Manager service
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.8

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:H/I:H/A:H).

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 High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-35088

To remediate this vulnerability, upgrade all affected Manager service 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:manager-service fixed: 1.8.0
<dependency>
    <groupId>org.apache.inlong</groupId>
    <artifactId>manager-service</artifactId>
    <version>1.8.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-2023-35088, 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 Manager service in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.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-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Manager service, 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 Neutralization of Special Elements Used in an SQL Command ('SQL Injection') vulnerability in Apache Software Foundation Apache InLong.This issue affects Apache InLong: from 1.4.0 through 1.7.0.  In the toAuditCkSql method, the groupId, streamId, auditId, and dt are directly concatenated into the SQL query statement, which may lead to SQL injection attacks. Users are advised to upgrade to Apache InLong's 1.8.0 or cherry-pick [1] to solve it. [1] https://github.com/apache/inlong/pull/8198

CVE-2023-35088 Affected Manager service Versions

1 component(s)
Fixed Versions:
1.8.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.inlong:manager-service
Maven
≥ 1.4.0
< 1.8.0
1.8.0

References

Frequently Asked Questions

What is CVE-2023-35088?
CVE-2023-35088 is a security vulnerability in Manager service involving SQL injection in audit endpoint under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Manager service versions are affected?
Affected versions include releases prior to 1.8.0 across affected packages: org.apache.inlong:manager-service.
What version fixes CVE-2023-35088?
Upgrading to 1.8.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is manager-service affected?
Yes, org.apache.inlong:manager-service is affected in releases prior to 1.8.0. Upgrade your dependency to 1.8.0 or later.
What is the CVSS score of CVE-2023-35088?
CVE-2023-35088 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-35088?
CVE-2023-35088 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.).
How can I check Maven dependencies for CVE-2023-35088?
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-r5pv-7g89-cxmc",
  "modified" : "2025-02-13T19:01:55Z",
  "published" : "2023-07-25T09:30:18Z",
  "aliases" : [ "CVE-2023-35088" ],
  "summary" : "SQL injection in audit endpoint",
  "details" : "Improper Neutralization of Special Elements Used in an SQL Command ('SQL Injection') vulnerability in Apache Software Foundation Apache InLong.This issue affects Apache InLong: from 1.4.0 through 1.7.0. \nIn the toAuditCkSql method, the groupId, streamId, auditId, and dt are directly concatenated into the SQL query statement, which may lead to SQL injection attacks.\nUsers are advised to upgrade to Apache InLong's 1.8.0 or cherry-pick [1] to solve it.\n\n[1]  https://github.com/apache/inlong/pull/8198",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.inlong:manager-service"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.4.0"
      }, {
        "fixed" : "1.8.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-35088"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/inlong/pull/8198"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/inlong/commit/cab63a8eea6c0f4bf3d30ce245b7e1beee42504d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/inlong"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/os7b66x4n8dbtrdpb7c6x37bb1vjb0tk"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2023/Jul/43"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2023/07/25/4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-25T19:24:11Z",
    "nvd_published_at" : "2023-07-25T08:15:10Z"
  }
}