UBUNTU-CVE-2026-85731

Source
https://ubuntu.com/security/CVE-2026-85731
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85731.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-85731
Upstream
Published
2026-09-16T17:18:00Z
Modified
2026-10-28T20:17:13Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

oras-go is a Go library for managing OCI artifacts. Prior to 2.6.2, content/file.Store extraction of OCI layers marked with io.deis.oras.content.unpack=true can write outside the store working directory. The pushDir path through extractTarDirectory and ensureLinkPath validates symlink targets lexically, resolveRelToBase skips its parent-symlink walk for root-level entries, and writeFile follows a terminal symlink when opening a regular file. A malicious archive can therefore create a symlink chain whose lexical target remains inside the extraction root but whose resolved target is an attacker-selected absolute path, then overwrite that target with a same-named regular-file entry even when AllowPathTraversalOnWrite is false. Pulling an attacker-controlled artifact can create or overwrite any file writable by the process and may lead to code execution. This issue is fixed in version 2.6.2.

References

Affected packages

Ubuntu:24.04:LTS / golang-oras-oras-go

Package

Name
golang-oras-oras-go
Purl
pkg:deb/ubuntu/golang-oras-oras-go?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.1.1-1ubuntu1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "golang-oras-oras-go-dev",
            "binary_version":  "1.1.1-1ubuntu1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85731.json"

Ubuntu:26.04:LTS / golang-oras-oras-go

Package

Name
golang-oras-oras-go
Purl
pkg:deb/ubuntu/golang-oras-oras-go?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.5.0-1
2.6.0-1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "golang-oras-oras-go-dev",
            "binary_version":  "2.6.0-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85731.json"