GitHub Advisoryadvisory · Maven

GHSA-j24h-xcpc-9jw8 Eclipse IDE XXE in eclipse.platform

MEDIUM Published 2023-11-30 Modified 2024-03-05 Official page ↗
Aliases
CVE-2023-4218
Ecosystem
Maven
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
Severity
Moderate
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
Reviewed
2023-11-30

Affected packages

• Maven org.eclipse.platform:org.eclipse.core.runtime: < 3.29.0 → fixed in 3.29.0 • Maven org.eclipse.platform:org.eclipse.platform: < 4.29.0 → fixed in 4.29.0 • Maven org.eclipse.platform:org.eclipse.jface: < 3.31.0 → fixed in 3.31.0 • Maven org.eclipse.platform:org.eclipse.ui.forms: < 3.13.0 → fixed in 3.13.0 • Maven org.eclipse.platform:org.eclipse.ui.ide: < 3.21.100 → fixed in 3.21.100 • Maven org.eclipse.platform:org.eclipse.ui.workbench: < 3.130.0 → fixed in 3.130.0 • Maven org.eclipse.platform:org.eclipse.urischeme: < 1.3.100 → fixed in 1.3.100 • Maven org.eclipse.jdt:org.eclipse.jdt.ui: < 3.30.0 → fixed in 3.30.0

Description

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: ``` ]> p &xxe; ``` 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)

Related

Alias · CVE (1)

  • CVE-2023-4218 In Eclipse IDE versions < 2023-09 (4.29) some files with xml content are parsed vulnerable against all sorts of XXE attacks. vulnerability

References