Vulnerabilities in pkg:maven/org.apache.dolphinscheduler/dolphinscheduler-dao

PACKAGE
Advisory Identifier: GHSA-r44q-98gx-pmh2
Advisory Summary

CVE-2023-49620 is a MODERATE (CVSS 6.5) apache dolphinscheduler missing authorization vulnerability vulnerability (CWE-862: Missing Authorization) affecting Dolphinscheduler api libraries in the Maven ecosystem. The issue involves apache dolphinscheduler missing authorization vulnerability. Remediation is available by upgrading affected packages to version 3.1.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.dolphinscheduler/dolphinscheduler-dao

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-r44q-98gx-pmh2 CVE-2023-49620 MODERATE Apache DolphinScheduler Missing Authorization vulnerability

CVE-2023-49620 at a Glance

CVE Identifier CVE-2023-49620
GHSA Identifier GHSA-r44q-98gx-pmh2
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-862: Missing Authorization
Affected Product Dolphinscheduler api
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2023-49620

To remediate this vulnerability, upgrade all affected Dolphinscheduler api 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.dolphinscheduler:dolphinscheduler-api fixed: 3.1.0
<dependency>
    <groupId>org.apache.dolphinscheduler</groupId>
    <artifactId>dolphinscheduler-api</artifactId>
    <version>3.1.0</version>
</dependency>
org.apache.dolphinscheduler:dolphinscheduler-common fixed: 3.1.0
<dependency>
    <groupId>org.apache.dolphinscheduler</groupId>
    <artifactId>dolphinscheduler-common</artifactId>
    <version>3.1.0</version>
</dependency>
org.apache.dolphinscheduler:dolphinscheduler-dao fixed: 3.1.0
<dependency>
    <groupId>org.apache.dolphinscheduler</groupId>
    <artifactId>dolphinscheduler-dao</artifactId>
    <version>3.1.0</version>
</dependency>
org.apache.dolphinscheduler:dolphinscheduler-service fixed: 3.1.0
<dependency>
    <groupId>org.apache.dolphinscheduler</groupId>
    <artifactId>dolphinscheduler-service</artifactId>
    <version>3.1.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.dolphinscheduler

How to Check if You Are Affected

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

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

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

Note: The mvn dependency:tree -Dincludes=org.apache.dolphinscheduler 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-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In Dolphinscheduler api, 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

Before DolphinScheduler version 3.1.0, the login user could delete UDF function in the resource center unauthorized (which almost used in sql task), with unauthorized access vulnerability (IDOR), but after version 3.1.0 we fixed this issue. We mark this cve as moderate level because it still requires user login to operate, please upgrade to version 3.1.0 to avoid this vulnerability

CVE-2023-49620 Affected Dolphinscheduler api Versions

4 component(s)
Fixed Versions:
3.1.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.dolphinscheduler:dolphinscheduler-api
Maven
< 3.1.0
3.1.0
org.apache.dolphinscheduler:dolphinscheduler-common
Maven
< 3.1.0
3.1.0
org.apache.dolphinscheduler:dolphinscheduler-dao
Maven
< 3.1.0
3.1.0
org.apache.dolphinscheduler:dolphinscheduler-service
Maven
< 3.1.0
3.1.0

References

Frequently Asked Questions

What is CVE-2023-49620?
CVE-2023-49620 is a security vulnerability in Dolphinscheduler api involving Apache DolphinScheduler Missing Authorization vulnerability under CWE-862: Missing Authorization.
Which Dolphinscheduler api versions are affected?
Affected versions include releases prior to 3.1.0 across affected packages: org.apache.dolphinscheduler:dolphinscheduler-api, org.apache.dolphinscheduler:dolphinscheduler-common, org.apache.dolphinscheduler:dolphinscheduler-dao, org.apache.dolphinscheduler:dolphinscheduler-service.
What version fixes CVE-2023-49620?
Upgrading to 3.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dolphinscheduler-api affected?
Yes, org.apache.dolphinscheduler:dolphinscheduler-api is affected in releases prior to 3.1.0. Upgrade your dependency to 3.1.0 or later.
Is dolphinscheduler-common affected?
Yes, org.apache.dolphinscheduler:dolphinscheduler-common is affected in releases prior to 3.1.0. Upgrade your dependency to 3.1.0 or later.
What is the CVSS score of CVE-2023-49620?
CVE-2023-49620 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2023-49620?
CVE-2023-49620 is classified under CWE-862: Missing Authorization (The product does not perform an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Maven dependencies for CVE-2023-49620?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.dolphinscheduler'. 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-r44q-98gx-pmh2",
  "modified" : "2023-12-05T23:04:04Z",
  "published" : "2023-11-30T09:30:32Z",
  "aliases" : [ "CVE-2023-49620" ],
  "summary" : "Apache DolphinScheduler Missing Authorization vulnerability",
  "details" : "Before DolphinScheduler version 3.1.0, the login user could delete UDF function in the resource center unauthorized (which almost used in sql task), with unauthorized access vulnerability (IDOR), but after version 3.1.0 we fixed this issue. We mark this cve as moderate level because it still requires user login to operate, please upgrade to version 3.1.0 to avoid this vulnerability",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.dolphinscheduler:dolphinscheduler-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.1.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.dolphinscheduler:dolphinscheduler-common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.1.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.dolphinscheduler:dolphinscheduler-dao"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.1.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.dolphinscheduler:dolphinscheduler-service"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-49620"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/dolphinscheduler/pull/10307"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/dolphinscheduler/commit/a4948f58e671ab263060da1de255af3ecd2530ac"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/dolphinscheduler"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/zm4t1ykj4cro1c8183q7y32z0yzfz8yj"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2023/11/30/4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-862" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-11-30T19:51:53Z",
    "nvd_published_at" : "2023-11-30T09:15:07Z"
  }
}