← Back to CVE Explorer

CVE-2026-50163

Full vulnerability record from the local CVENow database.

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", "<extract_base>/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.

Severity
HIGH
CVSS score
7.1 (v3.1)
Vulnerability status
Deferred
Source identifier
Published
2026-07-17 20:17:23.943000
Last modified
2026-10-24 20:10:00.137000
View original CVE JSON
{
  "id": "CVE-2026-50163",
  "sourceIdentifier": "[email protected]",
  "published": "2026-07-17T20:17:23.943",
  "lastModified": "2026-10-24T20:10:00.137",
  "vulnStatus": "Deferred",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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\", \"<extract_base>/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."
    },
    {
      "lang": "es",
      "value": "oras-go es una biblioteca Go para gestionar artefactos OCI. Antes de la versión 2.6.2, ensureLinkPath en content/file/utils.go:262-275 valida un objetivo de enlace duro relativo a la base de extracción pero devuelve el objetivo sin resolver, lo que provoca que os.Link(’victim.secret’, ’[extract_base]/payload.tar.gz/evil_cwd_link’) resuelva header.Linkname contra el directorio de trabajo actual del proceso para una entrada Typeflag=TypeLink como Name=payload.tar.gz/evil_cwd_link y Linkname=’victim.secret’ con io.deis.oras.content.unpack: ’true’, lo que puede exponer o manipular archivos como .env, .git/config, .aws/credentials y ~/.ssh/config. Este problema está solucionado en la versión 2.6.2."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "oras-project",
          "product": "oras-go",
          "versions": [
            {
              "version": "< 2.6.2",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N",
          "baseScore": 7.1,
          "baseSeverity": "HIGH",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "REQUIRED",
          "scope": "UNCHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "LOW",
          "availabilityImpact": "NONE"
        },
        "exploitabilityScore": 2.8,
        "impactScore": 4.2
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-07-20T15:00:48.168210Z",
          "id": "CVE-2026-50163",
          "options": [
            {
              "exploitation": "poc"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-22"
        },
        {
          "lang": "en",
          "value": "CWE-59"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/oras-project/oras-go/commit/c463c654ab3ef34422c1764cd619806cebf20451",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/oras-project/oras-go/pull/1232",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/oras-project/oras-go/releases/tag/v2.6.2",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/oras-project/oras-go/security/advisories/GHSA-fxhp-mv3v-67qp",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/oras-project/oras-go/security/advisories/GHSA-fxhp-mv3v-67qp",
      "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
    }
  ]
}