CVE-2023-4218
Eclipse IDE XXE in eclipse.platform
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:
<?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)
Affected Maven artifacts (8)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.eclipse.jdt » org.eclipse.jdt.ui | < 3.30.0 | 3.30.0 |
| org.eclipse.platform » org.eclipse.core.runtime | < 3.29.0 | 3.29.0 |
| org.eclipse.platform » org.eclipse.jface | < 3.31.0 | 3.31.0 |
| org.eclipse.platform » org.eclipse.platform | < 4.29.0 | 4.29.0 |
| org.eclipse.platform » org.eclipse.ui.forms | < 3.13.0 | 3.13.0 |
| org.eclipse.platform » org.eclipse.ui.ide | < 3.21.100 | 3.21.100 |
| org.eclipse.platform » org.eclipse.ui.workbench | < 3.130.0 | 3.130.0 |
| org.eclipse.platform » org.eclipse.urischeme | < 1.3.100 | 1.3.100 |
Blast radius
42% of the dependent artifacts (416) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2,986 |
| 2 hops | 4,004 |
| 3 hops | 3,491 |
| 4 hops | 1,842 |
| 5 hops | 2,336 |
| 6 hops | 175 |
Most used dependents
- net.revelc.code.formatter » formatter-maven-plugin1,025 usages
- org.eclipse.xtend » xtend-maven-plugin547 usages
- org.eclipse.tycho » tycho-maven-plugin441 usages
- org.eclipse.jdt » org.eclipse.jdt.core382 usages
- org.eclipse.tycho » target-platform-configuration371 usages
- io.takari.maven.plugins » takari-lifecycle-plugin237 usages
- org.eclipse.tycho » tycho-packaging-plugin207 usages
- org.eclipse.platform » org.eclipse.core.resources182 usages
- org.eclipse.tycho » tycho-source-plugin180 usages
- org.eclipse.tycho » tycho-surefire-plugin168 usages
- org.gwtproject » gwt-dev162 usages
- org.eclipse.tycho » tycho-p2-plugin149 usages
- pentaho-kettle » kettle-ui-swt132 usages
- org.eclipse.tycho » tycho-compiler-plugin130 usages
- fr.inria.gforge.spoon » spoon-core120 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2023-4218 | nvd.nist.gov |
| Package | eclipse-platform/eclipse.platform | github.com |
| Web | eclipse-platform/eclipse.platform advisory GHSA-j24h-xcpc-9jw8 | github.com |
| Web | eclipse-emf/org.eclipse.emf issue #10 | github.com |
| Web | eclipse-pde/eclipse.pde pull request #632 | github.com |
| Web | eclipse-pde/eclipse.pde pull request #667 | github.com |
| Web | eclipse-platform/eclipse.platform.releng.buildtools pull request #45 | github.com |
| Web | eclipse-platform/eclipse.platform pull request #761 | github.com |
| Web | eclipse-cdt/cdt commit c7169b3 | github.com |
| Web | eclipse-jdt/eclipse.jdt.core commit 38dd2a8 | github.com |
| Web | eclipse-jdt/eclipse.jdt.ui commit 13675b1 | github.com |
| Web | eclipse-platform/eclipse.platform.swt commit bf71db5 | github.com |
| Web | eclipse-platform/eclipse.platform.ui commit f243cf0 | github.com |
| Web | eclipse-platform/eclipse.platform commit 5dc372a | github.com |
| Web | security/vulnerability-reports/-/issues/8 | gitlab.eclipse.org |
