{"id":"DHI-ozpw-x3jg-vnj2-lbch","aliases":[],"title":"### Impact","originalDescription":"### 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","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[{"ecosystem":"Docker Hardened Images:Alpine:3.23","name":"gradle-8","range":">=0, <8.14.8-r0","fixed":"8.14.8-r0"},{"ecosystem":"Docker Hardened Images:Alpine:3.23","name":"gradle-9","range":">=0, <9.9.2-r0","fixed":"9.9.2-r0"}],"references":[{"url":"https://scout.docker.com/v/DHI-ozpw-x3jg-vnj2-lbch","type":"advisory"},{"url":"https://github.com/gradle/gradle/security/advisories/GHSA-99wf-vhq9-wm2x","type":"advisory"}],"sources":[{"name":"osv","at":"2026-11-28T07:18:51.448Z","url":"https://osv.dev/vulnerability/DHI-ozpw-x3jg-vnj2-lbch","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T13:40:34.988Z"}],"firstSeenAt":"2026-11-20T13:40:34.988Z","publishedAt":"2026-11-20T13:17:39.000Z","modifiedAt":"2026-11-28T06:30:06.545Z"}