CVE-2026-55588: ORAS CLI Remote Code Execution Vulnerability

LOW
Advisory Identifier: GHSA-298f-872v-2rcx
CVSS 2.0
CWE-400 CWE-835 CWE-674
Published
Advisory Summary

CVE-2026-55588 is a LOW (CVSS 2.0) remote code execution vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting ORAS CLI libraries in the Go ecosystem. The issue involves cyclic referrer graph can cause unbounded recursion and resource consumption. Remediation is available by upgrading affected packages to version 1.3.3.

CVE-2026-55588 at a Glance

CVE Identifier CVE-2026-55588
GHSA Identifier GHSA-298f-872v-2rcx
Severity LOW
CVSS v3.1 Base Score 2.0
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product ORAS CLI
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 2.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2026-55588

To remediate this vulnerability, upgrade all affected ORAS CLI dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

oras.land/oras fixed: 1.3.3
Upgrade oras.land/oras to 1.3.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for oras.land/oras

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-55588, inspect your project dependencies for ORAS CLI:

inspect dependencies for oras.land/oras

Analyze the terminal output to locate any version of ORAS CLI in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In ORAS CLI, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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](https://github.com/oras-project/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.

CVE-2026-55588 Affected ORAS CLI Versions

1 component(s)
Fixed Versions:
1.3.3
Product / Package Ecosystem Affected Versions Fixed Version
oras.land/oras
Go
< 1.3.3
1.3.3

References

Frequently Asked Questions

What is CVE-2026-55588?
CVE-2026-55588 is a security vulnerability in ORAS CLI involving Cyclic Referrer Graph Can Cause Unbounded Recursion and Resource Consumption under CWE-400: Uncontrolled Resource Consumption.
Which ORAS CLI versions are affected?
Affected versions include releases prior to 1.3.3 across affected packages: oras.land/oras.
What version fixes CVE-2026-55588?
Upgrading to 1.3.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is oras.land/oras affected?
Yes, oras.land/oras is affected in releases prior to 1.3.3. Upgrade your dependency to 1.3.3 or later.
What is the CVSS score of CVE-2026-55588?
CVE-2026-55588 has a CVSS v3.1 base score of 2.0 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2026-55588?
CVE-2026-55588 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Go dependencies for CVE-2026-55588?
Run the dependency tree command: 'inspect dependencies for oras.land/oras'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-298f-872v-2rcx",
  "modified" : "2026-08-28T18:19:15Z",
  "published" : "2026-08-28T18:19:15Z",
  "aliases" : [ "CVE-2026-55588" ],
  "summary" : "ORAS CLI: Cyclic Referrer Graph Can Cause Unbounded Recursion and Resource Consumption",
  "details" : "### Summary\n\nA 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.\n\nThis 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.\n\n> **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](https://github.com/oras-project/oras-go) repository.\n\n### Details\n\nIn `oras discover`, recursive referrer traversal follows discovered referrers without maintaining a visited-descriptor set.\n\nSimplified flow:\n\n```text\nrunDiscover\n  -> fetchAllReferrers(root)\n     -> registry.Referrers(root)\n     -> for each referrer:\n          fetchAllReferrers(referrer)\n```\n\nA malicious registry can create cyclic graphs such as:\n\n```text\nA -> A\n```\n\nor\n\n```text\nA -> B -> A\n```\n\nBecause traversal does not track previously visited descriptors, recursion never reaches a terminating condition.\n\nSimilarly, the recursive counting logic (`graph.RecursiveFindReferrers`, used by the `backup` and `restore` workflows) accumulates descriptors without cycle detection, causing unbounded memory growth.\n\n### PoC\n\nCreate valid descriptors where:\n\n```text\nreferrers(A) = [A]\n```\n\nor:\n\n```text\nreferrers(A) = [B]\nreferrers(B) = [A]\n```\n\nRun:\n\n```bash\noras discover attacker.local/repo@sha256:<A>\n```\n\nThe recursive traversal continues indefinitely, causing unbounded recursion and eventual resource exhaustion.\n\n### Impact\n\nA malicious OCI registry can trigger client-side denial of service against ORAS CLI users and automation.\n\nPotential impacts include:\n\n- Excessive CPU utilization\n- Excessive memory consumption\n- Unbounded recursion\n- Hung CI/CD jobs\n- Stalled automation pipelines\n- Failed backup or discovery operations\n\nThe 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.\n\n### Patch\n\n- `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.\n- `internal/graph/graph.go` — `RecursiveFindReferrers` tracks visited descriptors by digest and only recurses into unseen referrers, so traversal terminates on a cyclic graph.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "oras.land/oras"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/oras-project/oras/security/advisories/GHSA-298f-872v-2rcx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-55588"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/oras-project/oras/commit/440eb65d07a0631f131944d28e7c29d562ec17f3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/oras-project/oras"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400", "CWE-674", "CWE-835" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-28T18:19:15Z",
    "nvd_published_at" : "2026-08-25T21:17:02Z"
  }
}