/

CVE-2026-117685

Severity:

CRITICAL RISK

(9.1)

Authorization Bypass (CWE-863) in OCI Registry Blob Mount

CVE-2026-117685

Deferred

Vulnerability type

Category:

Authorization Bypass

CWE:

CWE-863

Impact:

Unauthorized disclosure of private package content

Severity:

CRITICAL RISK

(9.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

An authorization bypass in an OCI registry's cross-repository blob mount can allow a restricted token to expose content from a private package in a public one. If the token owner can read the private source and write to a public package namespace, a private blob mounted into that namespace may become downloadable by anyone.

Affected context

The issue occurs in OCI registries that support cross-repository blob mounts and apply a public-only restriction to tokens. It becomes risky when the target package is checked against that restriction, but access to the source blob is instead evaluated using the token owner's broader account permissions.

Exploit preconditions

  • Attack surface: The registry's cross-repository blob mount operation
  • Required access: A public-only token with write:package scope; its owner must be able to read the private source package and write to a public package namespace
  • Trigger point: A mount request that uses a private package as the blob source and a public package as the target
  • Why exploitation is possible: The target is checked against the token restriction, while source access is checked against the owner's full account permissions

Why this happens

The authorization checks apply inconsistent permission contexts to the two sides of a cross-repository mount. Although the target package is checked against the token's public-only restriction, the source blob is checked against the token owner's broader account permissions. This is an authorization enforcement failure mapped to CWE-863: Incorrect Authorization.

Potential impact

  • Private blobs, such as container layers, could be exposed through a public package
  • Anyone with access to the public package may be able to download the mounted content
  • Confidential data included in private package content could be disclosed

General mitigation guidance

Defensive patterns focus on applying the same effective authorization context to every resource involved in a mount.

  • Enforce token restrictions when checking both source and target repositories
  • Use secure-by-default authorization that denies cross-repository access unless explicitly permitted
  • Reduce reliance on broad account permissions when evaluating restricted tokens
  • Apply least privilege to package read and write capabilities
  • Keep private and public package access policies distinct and consistently enforced

How teams detect issues like this

Review authorization logic for cross-repository operations, especially where source and target resources are checked by separate code paths. Static analysis and code review can look for permission checks that use account-level privileges where token-scoped restrictions should apply. Policy tests can verify that restricted tokens cannot expose private content through public namespaces, including checks for consistent authorization across all resources in a single operation.

Sources

SourceLink
blog.gitea.comblog.gitea.com/release-of-28.3.0/
github.comgithub.com/go-gitea/gitea/pull/39690
github.comgithub.com/go-gitea/gitea/pull/39853
github.comgithub.com/go-gitea/gitea/releases/tag/v28.3.0
github.comgithub.com/go-gitea/gitea/security/advisories/GHSA-8g99-g36h-5p2w

Frequently asked

questions

It concerns OCI registries that support cross-repository blob mounts and fail to apply a token's public-only restriction when checking the source blob.

The described scenario requires a public-only token with write:package scope whose owner can read the private source package and write to a public package namespace.

Apply the token's effective restrictions consistently to both the source and target of every cross-repository operation.

Test authorization boundaries for multi-resource operations, use least-privilege permissions, and enforce token-scoped policies consistently across all code paths.

Find out what's already
exploitable in your codebase.