GHSA-mqwm-5m85-gmcv

Suggest an improvement
Source
https://github.com/advisories/GHSA-mqwm-5m85-gmcv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-mqwm-5m85-gmcv/GHSA-mqwm-5m85-gmcv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mqwm-5m85-gmcv
Aliases
Published
2026-11-23T15:41:57Z
Modified
2026-11-23T16:00:04Z
Severity
  • 8.6 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:H/SA:N CVSS Calculator
Summary
Gradle causes failure to disable repositories exposing builds to malicious artifacts
Details

Impact

When resolving dependencies, Gradle searches repositories in declaration order. If it encounters connection errors, Gradle will disable the repository and fail dependency resolution. This is necessary for both reproducibility and security reasons to prevent dependencies from being resolved from other repositories without warning.

In previous versions of Gradle, some exceptions were not treated as fatal errors and would not cause a repository to be disabled. If a build encountered one of these exceptions, Gradle would continue to the next repository in the list and potentially resolve dependencies from a different repository.

Vulnerability caused by continuing after max retries on transient errors

An exception like NoHttpResponseException can indicate transient errors. If the errors persist after a maximum number of retries, Gradle would continue to the next repository.

This behavior could allow an attacker to disrupt the service of a repository and leverage another repository to serve malicious artifacts. This attack requires the attacker to have control over a repository after the disrupted repository.

Patches

Gradle has introduced a change in behavior in Gradle 9.3.0 and 8.14.4 to stop searching other repositories when encountering these errors.

Upgrading to either version will protect you against the vulnerabilities described here.

Workarounds

If you are using strict repository content filtering and / or dependency verification, your build is safe from the potential vulnerabilities described above.

If you cannot update to a newer Gradle version, configuring dependency verification is the best way to make sure your build resolves the dependencies you expect and nothing else.

You should also review which repositories your builds use to check for unused or outdated repository declarations.

Related

Database specific
{
    "cwe_ids":  [
        "CWE-494",
        "CWE-829"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-11-23T15:41:57Z",
    "nvd_published_at":  "2026-01-16T23:15:50Z",
    "severity":  "HIGH"
}
References

Affected packages

Maven / org.gradle:gradle-core

Package

Name
org.gradle:gradle-core
View open source insights on deps.dev
Purl
pkg:maven/org.gradle/gradle-core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
8.14.4

Affected versions

0.*
0.8
0.9
0.9.1
0.9.2
1.*
1.0
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
1.9
1.10
1.11
1.12
2.*
2.0
2.1
2.2
2.2.1
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
2.13
2.14
2.14.1
3.*
3.0
3.1
3.2
3.2.1
3.3
3.4
3.4.1
3.5
3.5.1
4.*
4.0
4.0.1
4.0.2
4.1
4.2
4.2.1
4.3
4.3.1
4.4
4.4.1
4.5
4.5.1
4.6
4.7
4.8
4.8.1
4.9
4.10
4.10.1
4.10.2
4.10.3
5.*
5.0
5.1
5.1.1
5.2
5.2.1
5.3
5.3.1
5.4
5.4.1
5.5
5.5.1
5.6
5.6.1
5.6.2
5.6.3
5.6.4
6.*
6.0
6.0.1
6.1
6.1.1
6.2
6.2.1
6.2.2
6.3
6.4
6.4.1
6.5
6.5.1
6.6
6.6.1
6.7
6.7.1
6.8
6.8.1
6.8.2
6.8.3
6.9
6.9.1
6.9.2
6.9.3
6.9.4
7.*
7.0
7.0.1
7.0.2
7.1
7.1.1
7.2
7.3
7.3.1
7.3.2
7.3.3
7.4
7.4.1
7.4.2
7.5
7.5.1
7.6
7.6.1
7.6.2
7.6.3
7.6.4
7.6.5
7.6.6
8.*
8.0
8.0.1
8.0.2
8.1
8.1.1
8.2
8.2.1
8.3
8.4
8.5
8.6
8.7
8.8
8.9
8.10
8.10.1
8.10.2
8.11
8.11.1
8.12
8.12.1
8.13
8.14
8.14.1
8.14.2
8.14.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-mqwm-5m85-gmcv/GHSA-mqwm-5m85-gmcv.json"

Maven / org.gradle:gradle-core

Package

Name
org.gradle:gradle-core
View open source insights on deps.dev
Purl
pkg:maven/org.gradle/gradle-core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
9.0.0
Fixed
9.3.0

Affected versions

9.*
9.0.0
9.1.0
9.2.0
9.2.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-mqwm-5m85-gmcv/GHSA-mqwm-5m85-gmcv.json"