Code Injection in gradle - #VU166060
Published: November 12, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code with the build user's privileges and disclose build secrets.
The vulnerability exists due to code injection in Gradle's version catalog accessor generator when catalog values are copied into generated Java source without escaping. A remote attacker can supply crafted versions, dependency coordinates, or plugin ids through a published catalog or untrusted project that a victim loads during a build or IDE synchronization to execute injected code, even if no catalog entries are used.