What’s Vulnerable › Vulnerabilities
CVE-2022-25364
- Severity: high (CVSS 8.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.0% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-03-17 · updated 2026-06-17
- Weakness: CWE-276
Description
In Gradle Enterprise before 2021.4.2, the default built-in build cache configuration allowed anonymous write access. If this was not manually changed, a malicious actor with network access to the build cache could potentially populate it with manipulated entries that execute malicious code as part of a build. As of 2021.4.2, the built-in build cache is inaccessible-by-default, requiring explicit configuration of its access-control settings before it can be used. (Remote build cache nodes are unaffected as they are inaccessible-by-default.)
Affected products
- Gradle Enterprise: before 2021.4.2 — fixed in 2021.4.2
How to fix
Upgrade to a fixed version: Gradle Enterprise 2021.4.2. Check the vendor advisory for mitigations.
References
- https://security.gradle.com
- https://security.gradle.com/advisory/2022-02
- https://security.gradle.com
- https://security.gradle.com/advisory/2022-02
Get alerted when CVE-2022-25364 or the next vulnerability affects your stack