OSV 1.4.0 · github-reviewed · 修改于 2026-07-22 03:34
发布时间
2026-07-22 03:34
GitHub 审查时间
2026-07-22 03:34
NVD 发布时间
2026-07-15 01:17
源文件
advisories/github-reviewed/2026/07/GHSA-pf56-329r-95rw/GHSA-pf56-329r-95rw.json
This is a credential-exposure / credential-confusion issue.
getRegistryCredentials() reads credentials from the Docker config file (~/.docker/config.json) and selects an entry by checking whether any configured auth key contains the target registry string:
Object.keys(dockerConfig.auths || {}).find((key) => key.includes(registry))
Because this is a substring match rather than an exact host match, credentials configured for one registry can be selected for — and transmitted to — a different registry whose hostname has a substring relationship with a configured auth key (for example, an attacker-controlled cr.io matches a configured ghcr.io).
Who is impacted: Any consumer of @sigstore/oci that uploads artifacts to an OCI registry using credentials from a Docker config, where the destination registry/image reference can be influenced by an untrusted party. This includes @actions/attest and the actions/attest, actions/attest-build-provenance, and actions/attest-sbom GitHub Actions when run with push-to-registry: true, where the subject-name input determines the destination registry.
This is classified as a critical vulnerability given the potential, in a theoretical worst-case scenario, to expose long-lived registry credentials. However, in practice, exploitation requires all of the following:
Under those conditions, registry credentials present on the host (e.g. a GHCR, Docker Hub, or cloud-registry token) can be sent to an attacker-controlled registry during the authentication exchange.
Fixed in @sigstore/[email protected]. Credential selection now requires an : both the target registry and each Docker auth key are canonicalized — stripping any scheme and path and normalizing the Docker Hub aliases ( / / ) — and compared for equality. When no exact match exists, credential lookup now fails rather than falling back to an unrelated credential.
https?://index.docker.ioregistry-1.docker.iodocker.io<= 0.7.0 (all releases from 0.1.0).0.7.1.Downstream consumers should pick up the patched @sigstore/oci; subsequent releases of @actions/attest and the actions/attest* GitHub Actions will bundle the fix.
@sigstore/oci (or the subject-name of actions/attest* when push-to-registry: true).