CVE-2023-4218
JSON

5.0medium

XXE in eclipse.platform / Eclipse IDE

Severity
5.0medium CVSS:3.1 by eclipse
Exploit likelihood
0.31% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
eclipse
Also known as
GHSA-j24h-xcpc-9jw8

Description

In Eclipse IDE versions < 2023-09 (4.29) some files with xml content 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).

Affected

Product or packageVersionsReported by
Eclipse Foundation Eclipse IDEbefore 4.29, before 2023-09CVE List
Eclipse Foundation org.eclipse.core.runtimebefore 3.29.0CVE List
Eclipse Foundation org.eclipse.pdeup to 3.13.2400CVE List
org.eclipse.platform:org.eclipse.core.runtime (Maven)before 3.29.0GitHub Advisory Database
org.eclipse.platform:org.eclipse.platform (Maven)before 4.29.0GitHub Advisory Database
org.eclipse.platform:org.eclipse.jface (Maven)before 3.31.0GitHub Advisory Database
org.eclipse.platform:org.eclipse.ui.forms (Maven)before 3.13.0GitHub Advisory Database
org.eclipse.platform:org.eclipse.ui.ide (Maven)before 3.21.100GitHub Advisory Database
org.eclipse.platform:org.eclipse.ui.workbench (Maven)before 3.130.0GitHub Advisory Database
org.eclipse.platform:org.eclipse.urischeme (Maven)before 1.3.100GitHub Advisory Database
org.eclipse.jdt:org.eclipse.jdt.ui (Maven)before 3.30.0GitHub Advisory Database
eclipse eclipse_idebefore 4.29NVD

All scores

eclipse5.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
GitHub5.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
NVD5.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N

Classification

CWE-611

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

In Eclipse IDE versions < 2023-09 (4.29) some files with xml content 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).

GitHub Advisory Database
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)

NVD (es)

En las versiones de Eclipse IDE &lt;2023-09 (4.29), algunos archivos con contenido xml se analizan como vulnerables a todo tipo de ataques XXE. El usuario sólo necesita abrir cualquier proyecto maligno o actualizar un proyecto abierto con un archivo vulnerable (por ejemplo, para revisar un repositorio o parche externo).

References

https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/8exploit, issue-tracking, vendor-advisory, web
https://github.com/eclipse-pde/eclipse.pde/pull/632/patch
https://github.com/eclipse-pde/eclipse.pde/pull/667/patch
https://github.com/eclipse-platform/eclipse.platform/pull/761patch, web
https://github.com/eclipse-platform/eclipse.platform.releng.buildtools/pull/45patch, web
https://github.com/eclipse-platform/eclipse.platform.ui/commit/f243cf0a28785b89b7c50bf4e1cce48a917d89bdpatch, web
https://github.com/eclipse-jdt/eclipse.jdt.ui/commit/13675b1f8a74f47de4da89ed0ded6af7c21dfbecpatch, web
https://github.com/eclipse-jdt/eclipse.jdt.core/commit/38dd2a878f45cdb3d8d52090f1d6d1b532fd4c4dpatch, web
https://github.com/eclipse-emf/org.eclipse.emf/issues/10issue-tracking, third-party-advisory, web
https://github.com/eclipse-platform/eclipse.platform.swt/commit/bf71db5ddcb967c0863dad4745367b54f49e06bapatch, web
https://github.com/eclipse-cdt/cdt/commit/c7169b3186d2fef20f97467c3e2ad78e2943ed1bpatch, web
https://github.com/eclipse-platform/eclipse.platform/security/advisories/GHSA-j24h-xcpc-9jw8web

Sources

SourceRecordLicence
CVE ListCVE-2023-4218 changed 2024-09-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-j24h-xcpc-9jw8 changed 2024-12-03CC-BY-4.0
NVDCVE-2023-4218 changed 2026-06-17Public domain