lowVulnerability

CVE-2026-48978

## Summary oras-go's `auth.Client` follows the `realm` URL from a registry's `WWW-Authenticate: Bearer` challenge without validating its scheme or host. The `realm` field is server-controlled by design in the OCI/distribution spec — registries legitimately point token requests at a separate auth endpoint (e.g. Docker Hub's `registry-1.docker.io` -> `auth.docker.io`), so cross-host realms on public DNS names are not in themselves a vulnerability. Two specific patterns, however, are never legitimate under any registry trust model and can be abused by a malicious or compromised registry (or a man-in-the-middle on a plaintext connection): 1. **SSRF to internal networks.** A realm of `http://169.254.169.254/...` (AWS/Azure IMDS), `http://10.0.0.x/...` (RFC 1918), or `http://127.0.0.1/...` causes oras-go running on a cloud VM or corporate workstation to issue outbound HTTP requests from inside the user's trust boundary to an endpoint the user did not choose. The user's stored credentials are attached to those requests, but the principal harm is the network primitive — probing internal endpoints from the client. On IMDSv1 the response body is recoverable from log channels; on IMDSv2 the probe itself can still be used for service discovery. 2. **TLS downgrade.** A registry contacted over `https://` can return a realm with an `http://` scheme, causing oras-go to send the user's credentials over plaintext to the token endpoint. This defeats the transport security the user chose when typing `https://`. ## What is NOT claimed This advisory does **not** claim that credential forwarding to an arbitrary public attacker host through a server-controlled realm is, on its own, a vulnerability. The distribution spec defines `realm` as a server-controlled field; a strict same-host or same-eTLD+1 enforcement would deviate from the spec and break legitimate split-host deployments. Operators who want defense-in-depth against cross-host realm forwarding can use the opt-in `Client.Trust

Properties

ghsa_id
GHSA-xf85-363p-868w
severity
low
summary
oras-go: Malicious registry can hijack Bearer token realm to exfiltrate credentials and refresh tokens
epss_score
0.00211
cve_id
CVE-2026-48978
is_ghsa_only
false
ghsa_published
2026-07-01T21:06:10Z
source_url
https://github.com/advisories/GHSA-xf85-363p-868w
epss_percentile
0.11606
ghsa_updated
2026-07-01T21:06:11Z

Related Entities (8)

ENRICHED_BY (1)

[Source]FIRST EPSS

VULNERABLE_TO (2)

[Software]go/oras.land/oras-go/v2
[Software]go/oras.land/oras-go

AFFECTS (2)

[Software]go/oras.land/oras-go/v2
[Software]go/oras.land/oras-go

HAS_WEAKNESS (2)

[Weakness]Cleartext Transmission of Sensitive Information
[Weakness]Server-Side Request Forgery (SSRF)

REPORTED_BY (1)

[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-48978 — Ninja Signal Threat Intelligence | Ninja Signal