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://security.gradle.com/advisory/CVE-2020-15777
https://docs.gradle.com/enterprise/maven-extension/#1_6
Related Vulnerabilities
CVE-2022-36900 Vulnerability in maven package com.compuware.jenkins:compuware-zadviser-api
CVE-2023-36470 Vulnerability in maven package org.xwiki.platform:xwiki-platform-icon-ui
CVE-2017-2649 Vulnerability in maven package org.jenkins-ci.plugins:active-directory
CVE-2021-21603 Vulnerability in maven package org.jenkins-ci.main:jenkins-core
CVE-2023-49446 Vulnerability in maven package com.jfinal:jfinal