CVE-2021-41587
Gradle vulnerability analysis and mitigation

Overview

In Gradle Enterprise before 2021.1.3, an attacker with the ability to perform Server Side Request Forgery (SSRF) attacks can potentially discover credentials for other resources (Gradle Advisory, NVD). The vulnerability was discovered and disclosed in September 2021, affecting Gradle Enterprise versions from 2017.6 through 2021.1.2.

Technical details

The vulnerability is classified with a CVSS v3.1 Base Score of 7.5 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. The issue stems from an unadvertised HTTP endpoint that was only accessible from the server side but could be reached through SSRF attacks. This endpoint exposed private application configuration information containing secrets used as credentials to connect to other systems such as the application database (NVD, Gradle Advisory).

Impact

The vulnerability allows attackers to access private application configuration information containing secrets used as credentials to connect to other systems, including the application database. This could potentially lead to unauthorized access to connected systems and exposure of sensitive data (Gradle Advisory).

Mitigation and workarounds

The vulnerability was fixed in Gradle Enterprise version 2021.1.3, where the vulnerable endpoint now requires extra access credentials. The recommended mitigation is to upgrade to version 2021.1.3 or later (Gradle Advisory).

Additional resources


SourceThis report was generated using AI

Related Gradle vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-27148HIGH8.8
  • GradleGradle
  • cpe:2.3:a:gradle:gradle
NoYesFeb 25, 2025
CVE-2023-35947HIGH8.1
  • GradleGradle
  • gradle
NoYesJun 30, 2023
CVE-2023-44387MEDIUM6.5
  • GradleGradle
  • gradle
NoYesOct 05, 2023
CVE-2023-39152MEDIUM6.5
  • JavaJava
  • org.jenkins-ci.plugins:gradle
NoYesJul 26, 2023
CVE-2023-42445MEDIUM5.3
  • GradleGradle
  • gradle
NoYesOct 06, 2023

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management