CVE-2026-77461 in oras-dotnet
Summary
by MITRE • 12/04/2026
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.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 12/04/2026
The Object Registry and Storage tool known as ORAS serves as a critical utility for interacting with Open Container Initiative artifacts, facilitating the management of container images and other OCI-compliant resources within modern cloud-native environments. In versions prior to 0.6.0, the authentication client implementation contained a significant security flaw related to how it handled server challenges during the token exchange process. Specifically, when communicating with an OCI registry that requires authentication, the server typically responds with a WWW-Authenticate header containing a Bearer challenge. This response includes a realm parameter which indicates the Uniform Resource Locator where credentials should be submitted for validation and token acquisition. The vulnerability stems from the client's unconditional trust in this realm URL provided by the server without performing any verification or validation against known trusted registries or predefined configurations.
This design flaw allows for a classic man-in-the-middle style attack vector, often referred to as credential harvesting via registry impersonation. If an attacker controls or compromises a malicious registry that mimics a legitimate OCI endpoint, they can manipulate the WWW-Authenticate header to include a realm URL pointing to infrastructure under their control. When ORAS initiates authentication against this rogue server, it blindly follows the provided realm directive. Consequently, sensitive user credentials are transmitted directly to the attacker's controlled domain rather than being processed by the intended authenticating authority. This behavior effectively bypasses standard security expectations where clients should validate that credential submission endpoints belong to trusted entities or match expected patterns associated with the target registry.
The operational impact of this vulnerability is severe due to the high sensitivity of the data exposed during authentication exchanges. Depending on the configured authentication method, ORAS may transmit plaintext username and password pairs via Basic Authentication headers, or it may send OAuth2 refresh tokens and passwords through POST requests. The compromise of these credentials grants attackers full access to the associated registry accounts, potentially leading to unauthorized image pushes, pulls, or deletions that could disrupt supply chain integrity. Furthermore, if users reuse passwords across multiple services, the exposure extends beyond container registries into broader organizational infrastructure. This aligns with CWE-295 Improper Certificate Validation and CWE-798 Use of Hard-coded Credentials in terms of trust boundaries, as well as MITRE ATT&CK technique T1078 Valid Accounts where attackers leverage stolen credentials to maintain persistence or escalate privileges within the environment.
Mitigation for this issue was addressed in version 0.6.0 through updates that enforce stricter validation logic on realm URLs received during authentication challenges. Organizations relying on ORAS must upgrade immediately to patched versions to eliminate exposure to credential interception attacks. Additionally, administrators should implement network-level controls such as mutual TLS or strict certificate pinning where feasible to ensure communication occurs only with verified endpoints. Regular auditing of registry configurations and monitoring for anomalous authentication attempts can further reduce risk. As part of broader security hygiene, users are advised to employ strong, unique passwords and enable multi-factor authentication wherever supported by their OCI registries to limit the utility of any potentially exfiltrated credentials.