CVSS 3.1
7.5 highCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HHigh (7.5) in gradle gradle. EPSS 2.7% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HExplain CVE-2021-32751 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-32751?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-32751?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-32751 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| gradle:gradle | before 7.2 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | gradle | no fix listed | DEBIAN-CVE-2021-32751 |
| Ubuntu | 16.04:LTS, 20.04:LTS, 22.04:LTS and 5 more | gradle | no fix listed | UBUNTU-CVE-2021-32751 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP4, Linux Enterprise Real Time 15 SP3 | gradle | 4.4.1-150200.3.10.1 | SUSE-SU-2023:2203-1 |
| openSUSE | Leap 15.4 | gradle | 4.4.1-150200.3.10.1 | SUSE-SU-2023:2203-1 |
| Alpine | v3.15, v3.16, v3.17 and 7 more | gradle | 7.2-r0 | ALPINE-CVE-2021-32751 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.
Red Hat rates this Moderate.
To exploit this vulnerability, 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 requirement makes this CVE of a Moderate impact.
CI/CD systems using the Gradle build tool
- You are not vulnerable if untrusted users are unable to change environment variables for the user that executes gradlew.
- If you are unable to upgrade to Gradle 7.2, you can generate a new gradlew script with Gradle 7.2 and use it for older versions of Gradle.
Applications using start scripts generated by Gradle
- You are not vulnerable if untrusted users are unable to change environment variables for the user that executes the start script.
- If you are unsure, the vulnerable start script could be manually patched to remove the use of eval or the use of environment variables that affect the application's command-line.
- If the application is simple enough, you may be able to avoid the use of the start scripts by running the application directly with the Java command.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat JBoss Enterprise Application Platform 6 | gradle | Out of support scope | |
| Red Hat JBoss Enterprise Application Platform 7 | gradle | Not affected | |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | gradle | Not affected | |
| Red Hat Software Collections | rh-maven36-byte-buddy | Will not fix |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-32751.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.