CVE-2020-15777 Maven Extension plugin for Gradle Enterprise vulnerable to Deserialization of Untrusted Data
Attackers can achieve remote code execution and local privilege escalation via unsafe Java deserialization in the Gradle Enterprise Maven Extension plugin.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-15777?
CVE-2020-15777 is a high-severity unsafe deserialization vulnerability in n/a, published on 25 Aug 2020. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
An issue was discovered in the Maven Extension plugin before 1.6 for Gradle Enterprise. The extension uses a socket connection to send serialized Java objects. Deserialization is not restricted to an allow-list, thus allowing an attacker to achieve code execution via a malicious deserialization gadget chain. The socket is not bound exclusively to localhost. The port this socket is assigned to is randomly selected and is not intentionally exposed to the public (either by design or documentation). This could potentially be used to achieve remote code execution and local privilege escalation.
Weakness: CWE-502
Which versions are affected by CVE-2020-15777?
2 open source packages ship an affected version, including com.gradle:gradle-enterprise-maven-extension. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.gradle:gradle-enterprise-maven-extension Maven | All versions | 1.6 |
com.gradle:gradle-enterprise-maven-extension Maven | All versions | 1.6 |
Products include Gradle Maven.
How do I fix CVE-2020-15777?
Upgrade com.gradle:gradle-enterprise-maven-extension to 1.6 or later.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2020-15777 being exploited?
There is no known exploitation of CVE-2020-15777 in the wild and no public exploit code.
Sources
Also known as GHSA-vp55-fhxx-vcx8.