CVE-2026-50151
Received Received - Intake

oras-go Credential Leak via Malicious Registry Location Header

Vulnerability report for CVE-2026-50151, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-17

Last updated on: 2026-07-17

Assigner: GitHub, Inc.

Description

oras-go is a Go library for managing OCI artifacts. Prior to 2.6.1, registry/remote/repository.go in blobStore.completePushAfterInitialPost follows a registry-controlled Location header during monolithic blob upload and reuses the Authorization header from the initial POST request for the subsequent PUT request, allowing a malicious registry to return a cross-host Location and receive the caller's credentials at an attacker-controlled endpoint. This issue is fixed in version 2.6.1.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-17
Last Modified
2026-07-17
Generated
2026-07-18
AI Q&A
2026-07-17
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
oras oras-go 2.6.1

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-918 The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in oras-go before version 2.6.1 involves a flaw in the blobStore.completePushAfterInitialPost function. During monolithic blob upload, the code follows a registry-controlled Location header and reuses the Authorization header from the initial POST request for a subsequent PUT request. A malicious registry can exploit this by returning a cross-host Location, causing the client to send its credentials to an attacker-controlled endpoint.

Detection Guidance

This vulnerability involves improper handling of the Location header during blob uploads in oras-go versions prior to 2.6.1. Detection requires checking the version of oras-go in use. Use commands like 'go list -m github.com/oras-project/oras-go/v2' to verify the installed version. If the version is below 2.6.1, the system is vulnerable.

Impact Analysis

An attacker could intercept your credentials if you use a compromised or malicious registry. This could lead to unauthorized access to your account or resources, potentially resulting in data breaches or further attacks on systems you interact with.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, violating confidentiality requirements in GDPR and HIPAA. Organizations using affected versions may face compliance violations, legal penalties, and reputational damage due to potential data exposure.

Mitigation Strategies

Upgrade oras-go to version 2.6.1 or later immediately. Use 'go get -u github.com/oras-project/oras-go/[email protected]' to update. Review registry configurations to ensure trusted sources are used. Monitor for unauthorized credential exposure if the vulnerability was exploited before patching.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-50151. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart