CVE-2020-15777
JSON

7.8high

Maven Extension plugin for Gradle Enterprise vulnerable to Deserialization of Untrusted Data

Severity
7.8high CVSS:3.1 by NVD
Exploit likelihood
1.08% (higher than 66% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-vp55-fhxx-vcx8

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
com.gradle:gradle-enterprise-maven-extension (Maven)before 1.6GitHub Advisory Database
gradle mavenbefore 1.6NVD

All scores

GitHub7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD4.6medium CVSS:2.0AV:L/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database

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).

NVD (es)

Se detectó un problema en el plugin de la Extensión Maven versiones anteriores a 1.6 para el Gradle Enterprise. La extensión utiliza una conexión de socorro para enviar objetos Java serializados. La deserialización no está restringida a una lista de permisos, lo que permite a un atacante lograr la ejecución de código a través de una cadena de gadgets de deserialización maliciosa. El socket no está vinculado exclusivamente al localhost. El puerto al que se asigna este socket se selecciona al azar y no se expone intencionadamente al público (ni por diseño ni por documentación). Esto podría utilizarse potencialmente para lograr la ejecución remota de código y la escalada de privilegios locales

References

Sources

SourceRecordLicence
CVE ListCVE-2020-15777 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-vp55-fhxx-vcx8 changed 2023-11-08CC-BY-4.0
NVDCVE-2020-15777 changed 2026-06-17Public domain