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.
Remediation
References
https://docs.gradle.com/enterprise/maven-extension/#1_6
https://security.gradle.com/advisory/CVE-2020-15777
Related Vulnerabilities
CVE-2022-22932 Vulnerability in maven package org.apache.karaf:apache-karaf
CVE-2023-49620 Vulnerability in maven package org.apache.dolphinscheduler:dolphinscheduler-service
CVE-2021-21368 Vulnerability in npm package msgpack5
CVE-2021-4178 Vulnerability in maven package io.fabric8:kubernetes-client
CVE-2020-16015 Vulnerability in maven package org.webjars.npm:electron