{"id":"CVE-2026-48978","published":"2026-07-17T19:34:53Z","modified":"2026-07-21T02:06:49Z","title":"oras-go: Malicious registry can hijack Bearer token realm to exfiltrate credentials and refresh tokens","vendor":"oras-project","product":"oras-go","tier":"tail","description":{"text":"oras-go is a Go library for managing OCI artifacts. Prior to 2.6.1, auth.Client follows the realm URL from a registry's WWW-Authenticate: Bearer challenge without validating the scheme or host, allowing a malicious or compromised registry to cause SSRF to internal networks such as http://169.254.169.254/, http://10.0.0.x/, and http://127.0.0.1/, or to downgrade a registry contacted over https:// to an http:// token endpoint in registry/remote/auth/client.go through Client.Do(), Client.fetchBearerToken(), fetchDistributionToken, and fetchOAuth2Token. This issue is fixed in version 2.6.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.1,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00211,"percentile":0.11505,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"},{"id":"CWE-319","name":"Cleartext Transmission of Sensitive Information"}],"references":[{"url":"https://github.com/oras-project/oras-go/security/advisories/GHSA-xf85-363p-868w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/oras-project/oras-go/commit/7a9f4b0b9558821b0422152ebe21ae56930fe764","tags":["x_refsource_MISC"]},{"url":"https://github.com/oras-project/oras-go/releases/tag/v2.6.1","tags":["x_refsource_MISC"]}],"priority":{"score":3.8,"factors":[{"name":"EPSS percentile","points":2.3},{"name":"CVSS severity","points":1.47}]},"vendorSlug":"oras-project","affectedVersions":[{"vendor":"oras-project","product":"oras-go","versions":["< 2.6.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-21T02:06:39.340086Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"oras.land/oras-go/v2","vulnerableRanges":["<2.6.1"],"patched":["2.6.1"],"from":["GHSA-xf85-363p-868w","GO-2026-5885"],"provenance":"source"},{"ecosystem":"Go","package":"oras.land/oras-go","vulnerableRanges":["<=1.2.7"],"patched":[],"from":["GHSA-xf85-363p-868w"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-45295","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-48978","published":"2026-07-17","fixed":"2.6.1","kev":false},{"cve":"CVE-2026-50151","published":"2026-07-17","fixed":"2.6.1","kev":false},{"cve":"CVE-2026-50162","published":"2026-07-17","fixed":"2.6.1","kev":false},{"cve":"CVE-2026-50163","published":"2026-07-17","fixed":"2.6.2","kev":false,"link":{"from":"CVE-2026-48978","to":"CVE-2026-50163","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:oras.land/oras-go/v2","fromFixed":"2.6.1","toFixed":"2.6.2","daysApart":0}]}},{"cve":"CVE-2026-85731","published":"2026-09-16","fixed":"2.6.2","kev":false,"link":{"from":"CVE-2026-48978","to":"CVE-2026-85731","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:oras.land/oras-go/v2","fromFixed":"2.6.1","toFixed":"2.6.2","daysApart":61}]}},{"cve":"CVE-2026-85732","published":"2026-09-16","fixed":"2.6.2","kev":false,"link":{"from":"CVE-2026-48978","to":"CVE-2026-85732","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:oras.land/oras-go/v2","fromFixed":"2.6.1","toFixed":"2.6.2","daysApart":61}]}}],"package":"Go:oras.land/oras-go/v2"}}