Oras-project oras-go
oras-go: credential forwarding via unvalidated Location header in blob upload
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-918
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
oras-project oras-go
- < 2.6.1
Fixed in 2.6.1
Mitigation
Upgrade oras-go to 2.6.1 or later.
References
- Vendor advisory github.com/oras-project/oras-go/security/advis…
- Patch github.com/oras-project/oras-go/pull/1152
- Patch github.com/oras-project/oras-go/commit/4683c46…
1 more
- Release notes github.com/oras-project/oras-go/releases/tag/v…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.