cvedb.io
CVE-2021-32751
HIGH · CVSS 7.5
EPSS exploitation probability: 0%
Published 2021-07-20T23:15:37.743 · Last modified 2026-06-17T03:53:33.510

Summary

Gradle is a build tool with a focus on build automation. In versions prior to 7.2, start scripts generated by the `application` plugin and the `gradlew` script are both vulnerable to arbitrary code execution when an attacker is able to change environment variables for the user running the script. This may impact those who use `gradlew` on Unix-like systems or use the scripts generated by Gradle in thieir application on Unix-like systems. For this vulnerability to be exploitable, an attacker needs to be able to set the value of particular environment variables and have those environment variables be seen by the vulnerable scripts. This issue has been patched in Gradle 7.2 by removing the use of `eval` and requiring the use of the `bash` shell. There are a few workarounds available. For CI/C

Affected products

gradle — gradle

Does this affect you?

Add your gear to cvedb and we'll alert you only when gradle ships something exploited.

Check my exposure →

References

This product uses data from the NVD API but is not endorsed or certified by the NVD. Informational only; not professional security advice.