What’s Vulnerable › Vulnerabilities
CVE-2021-41619
- Severity: high (CVSS 7.2 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.7% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-10-27 · updated 2026-06-17
- Weakness: CWE-94
Description
An issue was discovered in Gradle Enterprise before 2021.1.2. There is potential remote code execution via the application startup configuration. The installation configuration user interface (available to administrators) allows specifying arbitrary Java Virtual Machine startup options. Some of these options, such as -XX:OnOutOfMemoryError, allow specifying a command to be run on the host. This can be abused to run arbitrary commands on the host, should an attacker gain administrative access to the application.
Affected products
- Gradle Enterprise: from 2020.4 before 2021.1.2 — fixed in 2021.1.2
How to fix
Upgrade to a fixed version: Gradle Enterprise 2021.1.2. Check the vendor advisory for mitigations.
References
- https://security.gradle.com
- https://security.gradle.com/advisory/2021-08
- https://security.gradle.com
- https://security.gradle.com/advisory/2021-08
Get alerted when CVE-2021-41619 or the next vulnerability affects your stack