DHI-zncb-6yzh-omuq-ztmd

Source
https://scout.docker.com/v/DHI-zncb-6yzh-omuq-ztmd
Import Source
https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-zncb-6yzh-omuq-ztmd.json
JSON Data
https://api.osv.dev/v1/vulns/DHI-zncb-6yzh-omuq-ztmd
Upstream
  • GHSA-7f7r-77ff-fr6f
Published
2026-11-20T13:17:39Z
Modified
2026-11-30T00:30:03Z
Summary
### Impact
Details

Impact

Gradle's dependency verification checks every dependency and plugin a build downloads against checksums and trusted signing keys recorded in gradle/verification-metadata.xml. Once that file is written and reviewed, a build fails if a dependency is replaced by different content, for instance after a repository compromise. Changing modules, such as -SNAPSHOT versions, are excluded because their content changes by design. This advisory is about a vulnerability in dependency verification.

The exclusion also applies to changing modules that a build does not declare itself, but reaches through the metadata of another dependency. When a release the build depends on declares a dependency on a -SNAPSHOT version, Gradle verifies the release but neither verifies the snapshot nor records anything for it when generating verification-metadata.xml. Reviewing the changes to that file does not reveal the snapshot.

An attacker who publishes such a release, or who controls the coordinates of the snapshot it depends on, can serve harmless content while the release is reviewed and adopted, then replace the snapshot at any later time. Every later build resolves the new content without a verification failure. When the snapshot is on the classpath of a plugin or of build logic, or its code is run by a task such as tests, the attacker's code runs with the privileges of the user running the build. This exposes the secrets available to the build, including repository and publishing credentials.

Only builds that use dependency verification are affected: a build without it does not verify any dependency, snapshot or not. Among those, builds that declare a repository serving snapshots, such as a snapshot repository, JitPack or an internal repository manager proxying one, are at risk. Maven Central does not serve snapshots, and Gradle does not use repositories declared in POM files, so a build resolving only from Maven Central is not exposed. The Gradle Plugin Portal does not support snapshots either: the content of a version published there cannot change, even when the version is named -SNAPSHOT, so plugins and dependencies resolved from it cannot be replaced this way.

Patches

With dependency verification enabled, Gradle now verifies changing modules like any other module, whether the build declares them itself or reaches them through another dependency. Their metadata and artifacts are checked against verification-metadata.xml, and --write-verification-metadata records them.

This changes the behavior of builds that use dependency verification and resolve changing modules, including snapshots they declare themselves. Such a build fails with Dependency verification failed until its changing modules are covered by verification-metadata.xml. The checksum of a snapshot changes each time it is published, so prefer verifying signatures and trusting the keys that sign them. Snapshots you accept without verification must be trusted explicitly, which makes the exemption visible to reviewers of that file:

<trusted-artifacts>
   <trust group="com.example" version=".*-SNAPSHOT" regex="true"/>
</trusted-artifacts>
Fix version Availability
9.9.2 OSS
9.8.4 Gradle Security Subscription
9.7.4 Gradle Security Subscription
9.6.4 Gradle Security Subscription
9.5.4 Gradle Security Subscription
9.4.4 Gradle Security Subscription
9.3.4 Gradle Security Subscription
9.2.4 Gradle Security Subscription
8.14.8 OSS
7.6.9 Gradle Security Subscription

Workarounds

Upgrading Gradle is our recommended fix.

If you cannot upgrade immediately:

  • Fail the build on changing versions. failOnChangingVersions() rejects changing modules anywhere in the dependency graph, including those brought in by other dependencies. Apply it to the build script classpath as well, for example in an init script:

    allprojects {
        configurations.configureEach {
            resolutionStrategy.failOnChangingVersions()
        }
        buildscript.configurations.configureEach {
            resolutionStrategy.failOnChangingVersions()
        }
    }
    

    It cannot be combined with dependency locking on the same configuration.

  • Restrict what snapshot repositories can serve. Use repository content filtering to limit each repository that serves snapshots to the groups you expect from it, and declare the other repositories with mavenContent { releasesOnly() }.

Forensics

Snapshots in the dependency graph are listed with a -SNAPSHOT version in the output of gradle dependencies and in build scans. gradle dependencyInsight --dependency MODULE shows which dependency brought a given snapshot in.

The Gradle dependency cache keeps each downloaded file under <Gradle user home>/caches/modules-2/files-2.1/<group>/<module>/<version>/<sha1>/. Several <sha1> directories under a snapshot version show that its content changed over time.

[!IMPORTANT] The lack of such traces cannot be used to conclude no such attack was performed. Their presence is not a confirmation that an attack happened, but an indication that more investigations are needed.

References

More about this type of vulnerabilities:

Database specific
{
    "coverage":  "partial",
    "coverage_exclusions":  [
        "legacy_package_image_owner"
    ]
}
References

Affected packages

Docker Hardened Images:Alpine:3.23
gradle-8

Package

Name
gradle-8
Purl
pkg:apk/dhi/gradle-8

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
8.14.8-r0

Affected versions

8.*
8.14.4-r0
8.14.4-r1
8.14.4-r2
8.14.4-r3
8.14.5-r3
8.14.5-r4
8.14.5-r5
8.14.5-r6
8.14.5-r7
8.14.5-r8
8.14.5-r9
8.14.6-r0
8.14.6-r1
8.14.6-r2
8.14.7-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-zncb-6yzh-omuq-ztmd.json"
gradle-9

Package

Name
gradle-9
Purl
pkg:apk/dhi/gradle-9

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
9.9.2-r0

Affected versions

9.*
9.4.0-r0
9.4.0-r1
9.4.1-r1
9.4.1-r2
9.5.0-r2
9.5.0-r3
9.5.1-r3
9.6.0-r3
9.6.1-r3
9.6.1-r4
9.6.1-r5
9.6.1-r6
9.7.0-r1
9.7.1-r0
9.7.1-r1
9.8.0-r1
9.8.1-r0
9.8.2-r0
9.8.2-r1
9.9.0-r0
9.9.1-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-zncb-6yzh-omuq-ztmd.json"
wiremock

Package

Name
wiremock
Purl
pkg:apk/dhi/wiremock

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.13.2-r0

Affected versions

3.*
3.13.2-r0
3.13.2-r1
3.13.2-r2
3.13.2-r3
3.13.2-r4
3.13.2-r5
3.13.2-r6
3.13.2-r7
3.13.2-r8
3.13.2-r9
3.13.2-r10
3.13.2-r11
3.13.2-r12
3.13.2-r13
3.13.2-r14
3.13.2-r15
3.13.2-r16
3.13.2-r17
3.13.2-r18
3.13.2-r19
3.13.2-r20
3.13.2-r21
3.13.2-r22
3.13.2-r23
3.13.2-r24
3.13.2-r25
3.13.2-r26
3.13.2-r27
3.13.2-r28
3.13.2-r29
3.13.2-r30
3.13.2-r31
3.13.2-r32
3.13.2-r33
3.13.2-r34
3.13.2-r35
3.13.2-r36
3.13.2-r37
3.13.2-r38
3.13.2-r39
3.13.2-r40
3.13.2-r41
3.13.2-r42

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-zncb-6yzh-omuq-ztmd.json"
Docker Hardened Images:Alpine:3.24
wiremock

Package

Name
wiremock
Purl
pkg:apk/dhi/wiremock

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.13.2-r0

Affected versions

3.*
3.13.2-r0
3.13.2-r1
3.13.2-r2
3.13.2-r3
3.13.2-r4
3.13.2-r5
3.13.2-r6
3.13.2-r7
3.13.2-r8
3.13.2-r9
3.13.2-r10
3.13.2-r11
3.13.2-r12
3.13.2-r13
3.13.2-r14
3.13.2-r15
3.13.2-r16
3.13.2-r17
3.13.2-r18
3.13.2-r19
3.13.2-r20
3.13.2-r21
3.13.2-r22
3.13.2-r23
3.13.2-r24
3.13.2-r25
3.13.2-r26
3.13.2-r27
3.13.2-r28
3.13.2-r29
3.13.2-r30
3.13.2-r31
3.13.2-r32
3.13.2-r33
3.13.2-r34
3.13.2-r35
3.13.2-r36
3.13.2-r37
3.13.2-r38
3.13.2-r39
3.13.2-r40
3.13.2-r41
3.13.2-r42

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-zncb-6yzh-omuq-ztmd.json"
Docker Hardened Images:Debian:13
wiremock-gui

Package

Name
wiremock-gui
Purl
pkg:deb/dhi/wiremock-gui

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.13.191-0

Affected versions

3.*
3.13.191-0
3.13.192-0
3.13.193-0
3.13.193-1
3.13.193-2
3.13.194-0
3.13.195-0
3.13.195-1
3.13.195-2
3.13.195-3
3.13.195-4
3.13.195-5
3.13.195-6
3.13.195-7
3.13.197-0
3.13.197-1
3.13.197-2
3.13.197-3
3.13.198-0
3.13.198-1
3.13.198-2
3.13.198-3
3.13.198-4
3.13.199-1
3.13.199-2
3.13.199-3
3.13.199-4
3.13.199-5
3.13.199-6
3.13.199-7
3.13.199-8
3.13.208-0
3.13.211-0
3.13.212-0
3.13.213-0
3.13.214-0
3.13.215-0
3.13.216-0
3.13.217-0
3.13.217-1
3.13.217-2
3.13.217-3
3.13.217-4

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-zncb-6yzh-omuq-ztmd.json"
wiremock

Package

Name
wiremock
Purl
pkg:deb/dhi/wiremock

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.13.2-0

Affected versions

3.*
3.13.2-0
3.13.2-1
3.13.2-2
3.13.2-3
3.13.2-4
3.13.2-5
3.13.2-6
3.13.2-7
3.13.2-8
3.13.2-9
3.13.2-10
3.13.2-11
3.13.2-12
3.13.2-13
3.13.2-14
3.13.2-15
3.13.2-16
3.13.2-17
3.13.2-18
3.13.2-19
3.13.2-20
3.13.2-21
3.13.2-22
3.13.2-23
3.13.2-24
3.13.2-25
3.13.2-26
3.13.2-27
3.13.2-28
3.13.2-29
3.13.2-30
3.13.2-31
3.13.2-32
3.13.2-33
3.13.2-34
3.13.2-35
3.13.2-36
3.13.2-37
3.13.2-38
3.13.2-39
3.13.2-40
3.13.2-41
3.13.2-42

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-zncb-6yzh-omuq-ztmd.json"