CVE-2020-15777 — gradle-enterprise-maven-e…
HIGHCVE-2020-15777 is a high-severity (CVSS 7.8) Deserialization of Untrusted Data vulnerability in com.gradle:gradle-enterprise-maven-extension. A fix is available for com.gradle:gradle-enterprise-maven-extension — see the affected versions and patch details below.
Maven Extension plugin for Gradle Enterprise vulnerable to Deserialization of Untrusted Data
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
com.gradle:gradle-enterprise-maven-extensionReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
An issue was discovered in the Maven Extension plugin before 1.6 for Gradle Enterprise. It is vulnerable to, in the worst case, Remote Code Execution, and in the general case, local privilege escalation. Internally, the plugin uses a socket connection to send serialized Java objects that are deserialized by a Java standard library ObjectInputStream. This ObjectInputStream was not restricted to a list of trusted classes, thus allowing an attacker to send a malicious deserialization gadget chain to achieve code execution. The socket was not bound exclusively to localhost. The port this socket is assigned to is randomly selected by the JVM and is not intentionally exposed to the public (either by design or documentation).
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | com.gradle:gradle-enterprise-maven-extension | all versions | 1.6com.gradle:gradle-enterprise-maven-extension:1.6 |
Affected Products
mavengradleDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for com.gradle:gradle-enterprise-maven-extension, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update com.gradle:gradle-enterprise-maven-extension to 1.6 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-15777 is resolved across your whole dependency graph.
Workarounds
Do not deserialise data from untrusted sources: where the format allows it, restrict deserialisation to an explicit allowlist of expected types, and prefer a data-only format (JSON, Protobuf) over one that can reconstruct arbitrary objects until you can upgrade.
Frequently Asked Questions
Is CVE-2020-15777 in your dependencies?
Find it across Maven, including transitive dependencies.