DHI-ozpw-x3jg-vnj2-lbch
### Impact
- CVSS
- —
- EPSS
- —
- Published
- 2026-11-20
- Age
- 11d old
- Modified
- 2026-11-28
- Product
- Docker Hardened Images:Alpine:3.23 gradle-8
Description
### Impact [TestKit](https://docs.gradle.org/current/userguide/test_kit.html) runs Gradle builds from tests and from build logic, mostly to test Gradle plugins. Its `GradleRunner` uses a dedicated directory, the TestKit directory, as the Gradle user home of the builds it runs. It holds their `gradle.properties`, init scripts, dependency caches and daemon registry. This advisory is about a vulnerability in TestKit. When the TestKit directory is not configured, and `GradleRunner` does not run in Gradle's `Test` task, TestKit uses `.gradle-test-kit` in the temporary directory of the JVM, given by the `java.io.tmpdir` system property. On Linux this is `/tmp` by default, so the directory is `/tmp/.gradle-test-kit`. The path is the same for every user, and TestKit uses an existing directory at that path as long as it can write to it, whoever owns it. A local attacker who creates that directory before the victim does controls the Gradle user home of the victim's TestKit builds. Gradle loads the `gradle.properties` and init scripts it finds in that directory. Files the attacker places there therefore run code with the privileges of the user running the build, and expose the secrets availab
Fixed in
8.14.8-r0 · 9.9.2-r0
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Docker Hardened Images:Alpine:3.23 | gradle-8 | >=0, <8.14.8-r0 | 8.14.8-r0 |
| Docker Hardened Images:Alpine:3.23 | gradle-9 | >=0, <9.9.2-r0 | 9.9.2-r0 |
Sources
- OSV · first seen 11d ago · CC-BY 4.0