Skip to main content
CVE-2026-50163VulnerabilityPublished Updated

Golang oras oras go: Prior to 2.6.2, ensureLinkPath in content/file/utils.go:262-275 validates a hardlink target

Affects golang-oras-oras-goSource GCVE Database

0
Compare

Not known to be exploited · CVSS 7.1 High · fixed in 2.6.2 : patch golang-oras-oras-go soon.

Data as of 24 Nov 2026, 20:42 UTC

CVSS 3.1 base score
7.1High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 2.6.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10golang-oras-oras-gopkg:deb/ubuntu/golang-oras-oras-go?arch=source&distro=stonkingOther threatsAffected
  • =2.6.0-1
  • =2.6.2-1
Fixed in–
Ubuntu 26.04 LTSgolang-oras-oras-gopkg:deb/ubuntu/golang-oras-oras-go?arch=source&distro=resoluteOther threatsAffected
  • =2.5.0-1
  • =2.6.0-1
Fixed in–
Ubuntu 24.04 LTSgolang-oras-oras-gopkg:deb/ubuntu/golang-oras-oras-go?arch=source&distro=nobleOther threatsAffected
  • =1.1.1-1ubuntu1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…