{
  "id": "CVE-2026-50163",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-50163",
  "published_at": "2026-07-17T19:36:01.254Z",
  "title": "oras-go: Hardlink entry with relative Linkname escapes extract dir via process CWD resolution in `oras-go` tar extraction",
  "vendor": "oras-project",
  "product": "oras-go",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "oras-go is a Go library for managing OCI artifacts. Prior to 2.6.2, ensureLinkPath in content/file/utils.go:262-275 validates a hardlink target relative to the extract base but returns the unresolved target, causing os.Link(\"victim.secret\", \"\u003cextract_base\u003e/payload.tar.gz/evil_cwd_link\") to resolve header.Linkname against the process current working directory for a Typeflag=TypeLink entry such as Name=payload.tar.gz/evil_cwd_link and Linkname=\"victim.secret\" with io.deis.oras.content.unpack: \"true\", which can expose or tamper with files such as .env, .git/config, .aws/credentials, and ~/.ssh/config. This issue is fixed in version 2.6.2.",
  "cwe": "CWE-22",
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "oras-project",
        "product": "oras-go",
        "ranges": [
          "\u003c 2.6.2"
        ],
        "fixed_in": [
          "2.6.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade oras-go to 2.6.2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/oras-project/oras-go/security/advisories/GHSA-fxhp-mv3v-67qp"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/oras-project/oras-go/pull/1232"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/oras-project/oras-go/commit/c463c654ab3ef34422c1764cd619806cebf20451"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/oras-project/oras-go/releases/tag/v2.6.2"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
