Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2021-32751: Gradle is a build tool with a focus on build automation

53
This month
HIGH 7.5UPGRADE

CVE-2021-32751 is a high-severity flaw (CVSS 7.5) affecting gradle. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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

Why this priority

  • High severity
  • Public exploit reference

A fixed release or distro patch exists.

Risk facts

CVSS score7.5 (High)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededLow
User interactionNone
EPSS exploit chance2.7% (top 14%)
CISA exploited listNo
WeaknessCWE-78
Published2021-07-20
Last modified2026-10-08
Publisher (CNA): GitHub, Inc. · Vendor: gradle

Share: LinkedIn · X · Reddit

Last updated 2026-10-08 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

gradle gradle UPGRADE
Affected: < 7.2
Fixed in: 7.2
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy gradle || rpm -q gradle || gradle --version
2. UPGRADE to 7.2 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade gradle
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade gradle
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2021-32751?

gradle: upgrade to 7.2. Exact commands for each OS are on this page.

Is CVE-2021-32751 being exploited?

CVE-2021-32751 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2021-32751 affect?

CVE-2021-32751 affects gradle. Severity is high (CVSS 7.5). 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 chan

How urgent is CVE-2021-32751?

Priority 53/100. High severity; Public exploit reference

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.