PT-2026-162527
تاريخ النشر
2026-11-20
·
تاريخ التحديث
2026-11-20
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
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 SSL connection establishment errors
Exceptions like
SSLException or SSLHandshakeException are neither handled as fatal exceptions nor as transient failures. Gradle should fail hard on any failure that is not transient, disable the repository and not move on to the next one.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 to stop searching other repositories when encountering these errors.
| Fix version | Availability |
|---|---|
| 9.8.1 | OSS |
| 9.7.2 | Gradle Security Subscription |
| 9.6.2 | Gradle Security Subscription |
| 9.5.2 | Gradle Security Subscription |
| 9.4.2 | Gradle Security Subscription |
| 9.3.2 | Gradle Security Subscription |
| 9.2.2 | Gradle Security Subscription |
| 9.1.1 | Gradle Security Subscription |
| 8.14.6 | OSS |
| 7.6.7 | Gradle Security Subscription |
Workarounds
If you are using strict [repository content filtering](https://docs.gradle.org/9.3.0/userguide/filtering repository content.html#header) and / or [dependency verification](https://docs.gradle.org/9.3.0/userguide/dependency verification.html), your build is safe from the potential vulnerabilities described above.
If you cannot update to a newer Gradle version, configuring [dependency verification](https://docs.gradle.org/9.3.0/userguide/dependency verification.html) 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.
References
More about this type of vulnerabilities:
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾