home / blog

2026-11-24 · high

CVE-2026-22816: Gradle Vulnerability with Malicious Repos

CVE-2026-22816: Gradle doesn't disable unresolvable host repos, enabling attacks.

CVE-2026-22816: Gradle Vulnerability with Malicious Repos

CVE-2026-22816 reveals a vulnerability in Gradle, a build automation tool. Certain exceptions are not treated as fatal errors and do not disable repositories with unresolvable hosts. If a build encounters an unreachable hostname, Gradle continues using other repositories, allowing attackers to serve malicious artifacts.

The vulnerability has a CVSS of 7.4, classifying it as high severity. There are public repositories claiming to contain exploits. Reported on January 16, 2026, on NVD and patched in Gradle versions 9.3.0 and 8.14.4, which introduce changes to stop searching other repositories when encountering these errors.

In defense, updating Gradle to versions 9.3.0 or 8.14.4 is crucial. Organizations should review repository configurations in their builds, ensuring only trusted repositories are listed and considering their order. For systems not yet updatable, implement controls to verify artifact integrity and monitor suspicious activity in dependency resolution.

At a glance

What
Vulnerability in Gradle that doesn't treat certain exceptions as fatal errors, not disabling repositories with unresolvable hosts and allowing dependency resolution from malicious repositories.
Severity
High (CVSS 7.4)
Affected versions
Gradle versions before 9.3.0 and 8.14.4
Fix
Update to version 9.3.0 or 8.14.4
Status
Vulnerability patched in recent versions
Action
Apply update to correct versions of Gradle

Sources: NVD, CVE-2026-22816

← All articles