Maven Extension plugin for Gradle Enterprise vulnerable to Deserialization of Untrusted Data
High severity
GitHub Reviewed
Published
May 24, 2022
to the GitHub Advisory Database
•
Updated May 16, 2023
Package
Affected versions
< 1.6
Patched versions
1.6
Description
Published by the National Vulnerability Database
Aug 25, 2020
Published to the GitHub Advisory Database
May 24, 2022
Reviewed
May 16, 2023
Last updated
May 16, 2023
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).
References