CVE-2019-9843
Diffplug Gradle vulnerability
In DiffPlug Spotless before 1.20.0 (library and Maven plugin) and before 3.20.0 (Gradle plugin), the XML parser would resolve external entities over both HTTP and HTTPS and didn't respect the resolveExternalEntities setting. For example, this allows disclosure of file contents to a MITM attacker if a victim performs a spotlessApply operation on an untrusted XML file.
Affected products
Gradle, Maven. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Diffplug Gradle runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/diffplug/spotless/blob/master/plugin-gradle/CHANGES.md#version-3200---march-11t · Third Party Advisory
- github.com/diffplug/spotless/blob/master/plugin-maven/CHANGES.md#version-1200---march-14th · Third Party Advisory
- github.com/diffplug/spotless/issues/358 · Third Party Advisory
- github.com/diffplug/spotless/pull/369 · Third Party Advisory
- lists.apache.org/thread.html/r7406e297228c42deeecdd12a576e39d63073faebf14b027b7608fdfd%40%
- nvd.nist.gov/vuln/detail/CVE-2019-9843
- cve.org/CVERecord?id=CVE-2019-9843
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.