Skip to main content

oras-go EUVDEUVD-2026-45295

| CVE-2026-48978 LOW
Cleartext Transmission of Sensitive Information (CWE-319)
2026-07-01 https://github.com/oras-project/oras-go GHSA-xf85-363p-868w
2.1
CVSS 4.0 · Vendor: https://github.com/oras-project/oras-go
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control or MITM a registry endpoint
  2. Delivery
    Serve crafted WWW-Authenticate Bearer with private-IP or http:// realm
  3. Exploit
    Victim runs oras command against registry
  4. Execution
    oras-go follows realm URL without validation
  5. Persist
    Probe internal IMDS or RFC-1918 service from client host
  6. Impact
    Exfiltrate instance metadata or intercept credentials in plaintext

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V12 - Secure Communication Transport encryption
Exploitation Conditions

Exploitation requires the victim to actively initiate an oras operation (pull, push, copy, or similar) against a registry the attacker controls or can intercept - passive exploitation is not possible. For the SSRF vector: the oras client must be running in a network environment containing reachable private or link-local IP addresses (RFC 1918 ranges, 169.254.x.x IMDS, or 127.x.x.x loopback); no special configuration of the victim's oras client is required beyond making the request. For the TLS downgrade vector: the victim must connect to the registry using an https:// URL (the attacker returns an http:// realm to downgrade the token fetch); the oras client's stored credentials for that registry are then at risk. Exploitation is limited by the following factors: user interaction is mandatory (UI:R - no automated background exploitation without user-triggered command), the attacker must either control a registry endpoint the victim trusts or intercept the registry connection, IMDSv2 deployments are substantially hardened against the IMDS SSRF variant, and the fix in v2.6.1 enforces scheme and host validation by default with no opt-out.

Impact

The advisory authors assess this as Medium severity, consistent with an independent CVSS 3.1 estimate of approximately 4.3 (AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N). The network vector and lack of privilege requirements raise theoretical concern, but user interaction is mandatory - exploitation requires the victim to actively run an oras command against a controlled or intercepted registry endpoint. No EPSS data is available; no CISA KEV listing exists; no public POC exploit code has been identified at the time of analysis. The most dangerous real-world scenario involves cloud-hosted CI/CD pipelines that pull from registries over plaintext HTTP and are co-located with IMDSv1 metadata endpoints - in that context the SSRF primitive could yield cloud credentials via log channels. IMDSv2 (requiring a PUT preflight) significantly reduces the SSRF yield but still exposes the instance to service-discovery probing. The TLS downgrade vector is more broadly applicable but requires the attacker to already be positioned as a MITM or to control the registry, limiting its reach. Overall, the risk is real but contextual: teams operating in cloud environments with IMDSv1 enabled and connecting to registries over HTTP should treat this as a higher priority than the raw score suggests.

Exploit ScenarioDerived

An attacker who operates a malicious OCI registry - or who can intercept HTTP traffic between an oras client and a registry (e.g., via DNS poisoning or a rogue WiFi access point) - returns a WWW-Authenticate: Bearer realm="http://169.254.169.254/latest/meta-data/iam/security-credentials/" header. When a developer or CI runner executes an oras pull or push command against this registry, oras-go follows the realm URL verbatim, issuing an HTTP GET to the AWS IMDS endpoint from inside the corporate or cloud VPC; on IMDSv1 deployments the response containing IAM role credentials may surface in application logs or be returned to the attacker via a controlled endpoint. No public POC has been identified, but the attack requires no exploitation primitives beyond controlling HTTP response content.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 01, 2026

Unvalidated bearer realm URL handling in oras-go v2 ≤ 2.6.0 enables two distinct attack primitives against users who run oras operations against a malicious, compromised, or man-in-the-middle'd registry: server-side request forgery (SSRF) to internal network endpoints including cloud instance metadata services, and TLS downgrade that exposes user credentials in plaintext. The OCI distribution spec legitimately allows cross-host realm references for split-auth deployments (e.g., Docker Hub's auth.docker.io pattern), but oras-go failed to block private IP literals, loopback addresses, and scheme downgrades from https to http - patterns that are never legitimate under any valid registry trust model. No active exploitation has been confirmed (not in CISA KEV), and a patch is available in v2.6.1.

RemediationAI

Upgrade oras.land/oras-go/v2 to v2.6.1, which rejects unsafe realm URLs at the point of challenge parsing. The patch commit is 7a9f4b0b9558821b0422152ebe21ae56930fe764 and the release is tagged at https://github.com/oras-project/oras-go/releases/tag/v2.6.1. For teams that cannot immediately upgrade, the advisory mentions an opt-in Client.TrustedRealmHosts allowlist added as a defense-in-depth control - configuring this to only permit known legitimate auth hosts (e.g., auth.docker.io for Docker Hub) eliminates the cross-host realm risk, though it does not by itself fix the scheme-downgrade vector. As an additional compensating control, restrict outbound HTTP (port 80) from CI/CD runners or developer workstations to block SSRF to internal services, noting this may interfere with plain-HTTP registry access. If operating on AWS/Azure with IMDSv1, migrate to IMDSv2 (which requires a PUT preflight that oras-go would not issue) to reduce SSRF yield even when the probe reaches the metadata endpoint. Avoid connecting to untrusted or unverified registries over plaintext HTTP connections in sensitive environments.

Affected VersionsENISA

oras-go < 2.6.1

Affected Packages

go oras.land/oras-go no fix
go oras.land/oras-go/v2 fix: 2.6.1
euvd oras_go fix: 2.6.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

oras-go (OCI Registry As Storage Go library) implements the OCI distribution specification's bearer token authentication flow. When a registry returns a 401 Unauthorized response, it includes a WWW-Authenticate: Bearer header containing a 'realm' field pointing to the token endpoint. The spec intentionally allows this field to reference a separate host (split-auth architectures), and oras-go's auth.Client.Do() / fetchBearerToken() / fetchDistributionToken() / fetchOAuth2Token() in registry/remote/auth/client.go pass the realm URL from parseChallenge directly to http.NewRequestWithContext without any scheme or host validation. This violates CWE-918 (SSRF) because a server-controlled URL is used to initiate outbound requests from the client's trust boundary, and CWE-319 (Cleartext Transmission) because the https-to-http downgrade defeats the transport security the user configured. Affected packages are pkg:go/oras.land_oras-go_v2 and pkg:go/oras.land_oras-go. The fix in v2.6.1 (commit 7a9f4b0b9558821b0422152ebe21ae56930fe764) rejects realm URLs using non-http/https schemes, http realms when the registry was contacted over https, and IP literals in loopback, link-local, private, or unspecified ranges unless the registry itself was reached at that same host.

Know when Docker gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/oras-project/oras-go) PRIMARY 2.1 LOW
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
vuln.today AI 4.3 MEDIUM

Network-reachable with no privileges needed, but active user interaction required; confidentiality impact is low - limited to IMDS probe responses or passive credential interception, not direct account takeover.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N

Primary rating from Vendor (https://github.com/oras-project/oras-go).

CVSS VectorVendor: https://github.com/oras-project/oras-go

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jul 17, 2026 - 20:22 NVD
2.1 (LOW)

DescriptionCVE.org

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.TrustedRealmHosts allowlist (added separately).

Affected versions

oras.land/oras-go/v2 <= v2.6.0

Severity

Medium. Network attack vector, low complexity, no privileges required, user interaction required (victim runs an oras command against the malicious or MITM'd registry), unchanged scope. Confidentiality impact is limited - IMDS probe responses can disclose information, and TLS downgrade exposes the realm request to passive observers - but the attacker does not obtain credentials beyond what the malicious endpoint already controls.

Affected code

  • registry/remote/auth/client.go - Client.Do() (bearer challenge handling)
  • registry/remote/auth/client.go - Client.fetchBearerToken() / fetchDistributionToken / fetchOAuth2Token

The realm parameter from parseChallenge is threaded through to http.NewRequestWithContext without scheme or host validation.

CWE

  • CWE-918: Server-Side Request Forgery (SSRF)
  • CWE-319: Cleartext Transmission of Sensitive Information

Patch

registry/remote/auth/client.go now rejects realm URLs that:

  • use a scheme other than http or https
  • use http when the registry was contacted over https (TLS downgrade)
  • use an IP literal in a loopback, link-local, private, or unspecified range, unless the registry itself was reached at the same hostname (so loopback / in-cluster deployments are unaffected)

Cross-host realms on public DNS names continue to be accepted.

Credit

Reported by bugbunny.ai.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
widely used Go library across cloud-native OCI artifact toolchains
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy