SecurityContext

CVE-2021-41619: Gradle Enterprise - Remote Code Execution

  • Cve: CVE-2021-41619
  • Name: Gradle Enterprise - Remote Code Execution
  • 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.
  • Impact: Attackers with administrative access can execute arbitrary commands on the host, potentially leading to full system compromise.
  • Remediation: Update to version 2021.1.2 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: admin_privileges
  • Requirements: Attacker needs administrative access to the application
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.2
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.02722
  • Epss percentile: 0.86306
  • Assignee: [email protected]
  • Published at: 2021-10-27T14:15:07Z
  • Age in days: 1854
  • Modified at: 2026-06-17T04:08:44Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-41619
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

References

UrlSourceTags
https://security.gradle.comnvdVendor Advisory
https://security.gradle.com/advisory/2021-08nvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
gradle:enterprise>= 2020.4, < 2021.1.2nonvd/v1/products/gradle/enterprise

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts