CVE-2026-77461: ORAS .NET library: Auth client sends credentials to attacker-controlled `realm` URL without validation
ORAS is a tool for working with OCI Artifacts. Prior to version 0.6.0, the auth client blindly follows the realm URL from the server's WWW-Authenticate: Bearer challenge header when exchanging credentials for tokens. A malicious or compromised registry can set realm to an attacker-controlled URL, causing the client to send user credentials (username/password via Basic auth, or refresh tokens/passwords via OAuth2 POST) to that URL. This issue has been patched in version 0.6.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.6.0
Event History
Frequently Asked Questions
Who is exposed to credential theft?
Users of ORAS .NET library versions before 0.6.0 are exposed when the auth client contacts a malicious or compromised registry that returns a crafted WWW-Authenticate: Bearer challenge. The client may disclose Basic-auth usernames and passwords or OAuth2 refresh tokens/passwords.
What must an attacker control to exploit this issue?
An attacker needs to operate or compromise a registry that the client contacts, so it can supply a Bearer challenge whose realm points to an attacker-controlled URL. User interaction is required according to the supplied severity vector.
How can this be remediated?
Upgrade the ORAS .NET library to version 0.6.0, which patches the realm URL validation issue.