CVE-2026-55588: ORAS CLI: Cyclic Referrer Graph Can Cause Unbounded Recursion and Resource Consumption

Published Aug 25, 2026
·
Updated

Summary

A malicious OCI registry can return a cyclic referrer graph (e.g. A -> A or A -> B -> A). The ORAS CLI's recursive referrer traversal does not track visited descriptors, so a cycle causes unbounded recursion and memory growth — a client-side denial of service.

This affects oras discover (recursive referrer traversal) and the recursive referrer counting used by oras backup and oras restore. Because oras discover --depth defaults to 0 (unlimited), discover is affected out of the box.

Note: This advisory covers only the ORAS CLI (oras.land/oras). The related Referrers API pagination loop in the oras-go library is tracked in a separate advisory on the oras-go repository.

Details

In oras discover, recursive referrer traversal follows discovered referrers without maintaining a visited-descriptor set.

Simplified flow:

text runDiscover -> fetchAllReferrers(root) -> registry.Referrers(root) -> for each referrer: fetchAllReferrers(referrer)

A malicious registry can create cyclic graphs such as:

text A -> A

or

text A -> B -> A

Because traversal does not track previously visited descriptors, recursion never reaches a terminating condition.

Similarly, the recursive counting logic (graph.RecursiveFindReferrers, used by the backup and restore workflows) accumulates descriptors without cycle detection, causing unbounded memory growth.

PoC

Create valid descriptors where:

text referrers(A) = [A]

or:

text referrers(A) = [B] referrers(B) = [A]

Run:

bash oras discover attacker.local/repo@sha256:<A>

The recursive traversal continues indefinitely, causing unbounded recursion and eventual resource exhaustion.

Impact

A malicious OCI registry can trigger client-side denial of service against ORAS CLI users and automation.

Potential impacts include:

- Excessive CPU utilization - Excessive memory consumption - Unbounded recursion - Hung CI/CD jobs - Stalled automation pipelines - Failed backup or discovery operations

The issue does not enable arbitrary code execution, artifact substitution, or integrity bypass, but it can reliably prevent ORAS operations from completing when interacting with malicious registry metadata.

Patch

- cmd/oras/root/discover.go — fetchAllReferrers threads a visited digest set; an already-traversed descriptor returns immediately, breaking cycles. Behavior is unchanged for valid (acyclic) referrer graphs. - internal/graph/graph.go — RecursiveFindReferrers tracks visited descriptors by digest and only recurses into unseen referrers, so traversal terminates on a cyclic graph.

Other sources

ORAS (OCI Registry As Storage) is a CLI and library for managing artifacts in OCI registries. In ORAS CLI versions up to and including 1.3.2, the recursive referrer traversal does not track visited descriptors, so a malicious OCI registry that returns a cyclic referrer graph causes unbounded recursion and memory growth. This affects oras discover, whose recursive traversal is enabled by default because the --depth option defaults to 0 (unlimited), as well as the recursive referrer counting used by the oras backup and oras restore workflows. A cyclic graph can be as simple as A referring to B and B referring back to A. A malicious registry can use this to cause a client-side denial of service, exhausting CPU and memory and hanging automation or CI/CD pipelines that run ORAS against untrusted registry metadata. The vulnerability does not extend to code execution, artifact substitution, or integrity bypass. This issue has been fixed in version 1.3.3.

— NVD

Affected Software

4 affected componentsFixes available
ORAS ORAS (OCI Registry As Storage) CLI<=1.3.2
go/oras.land/oras<1.3.3
1.3.3
debian/oras<=1.2.0-1
1.3.3-1
ubuntu/oras*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/oras.land/oras to a version that resolves this vulnerability.

    Fixed in 1.3.3
  2. Upgrade

    Upgrade debian/oras to a version that resolves this vulnerability.

    Fixed in 1.3.3-1
  3. Upgrade

    Upgrade oras.land/oras to a version that resolves this vulnerability.

    Fixed in 1.3.3
  4. Configuration

    Set --depth to a finite value instead of the default 0 (unlimited) to limit recursive referrer traversal that can encounter cyclic referrer graphs.

    ORAS CLI (oras discover) --depth = a finite value (avoid 0/unlimited)
  5. Compensating control

    Avoid running ORAS CLI operations (including oras discover and recursive referrer counting used by oras backup/restore) against untrusted/malicious OCI registries or untrusted registry metadata.

Event History

Aug 25, 2026
CVE Published
via MITRE·08:32 PM
Data Sourced
via MITRE·08:32 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness
Aug 28, 2026
Advisory Published
via GitHub·06:19 PM
Data Sourced
via GitHub·06:19 PM
DescriptionSeverityWeaknessAffected Software
Nov 24, 2026
Data Sourced
via OSV·02:56 PM
Affected Software

Frequently Asked Questions

1

Which ORAS operations are exposed to this issue?

The default recursive traversal in oras discover is affected because --depth defaults to 0, meaning unlimited traversal. The recursive referrer counting performed by oras backup and oras restore is also affected.

2

What must an attacker control to trigger the denial of service?

An attacker needs to operate or control a registry that returns malicious OCI referrer metadata containing a cycle, such as two descriptors that refer to each other. No credentials or other privileges on the client are required, but a user or automation must run an affected ORAS workflow against that registry.

3

What is the practical impact on affected clients?

The client can recurse indefinitely while memory and CPU consumption grow, potentially hanging automation or CI/CD pipelines and exhausting local resources. The described impact is denial of service only; it does not enable code execution, artifact substitution, or an integrity bypass.

4

What should teams do if they cannot immediately upgrade?

Avoid running recursive ORAS discovery, backup, or restore workflows against untrusted registry metadata where possible. For oras discover, set a finite --depth value rather than relying on the default unlimited traversal.

5

How can this issue be remediated?

Upgrade ORAS CLI to version 1.3.3, which fixes the missing tracking of previously visited descriptors during recursive referrer traversal.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203