DEBIAN-CVE-2026-85731
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.
DEBIAN-CVE-2026-85731
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:DEBIAN-CVE-2026-85731
golang-oras-oras-go
Source reference: /affected/0/package/name
- Affected versions
- 1.1.1-1
Source reference:
/affected/0/versions2.5.0-1Source reference:
/affected/0/versions2.6.0-1Source reference:
/affected/0/versions2.6.2-1Source reference:
/affected/0/versions2.6.2-2Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
golang-oras-oras-go
Source reference: /affected/1/package/name
- Affected versions
- 2.5.0-1
Source reference:
/affected/1/versions2.6.0-1Source reference:
/affected/1/versions2.6.2-1Source reference:
/affected/1/versions2.6.2-2Source reference:
/affected/1/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
golang-oras-oras-go
Source reference: /affected/2/package/name
- Affected versions
- 2.5.0-1
Source reference:
/affected/2/versions2.6.0-1Source reference:
/affected/2/versions - Fixed versions
- 2.6.2-1
Source reference:
/affected/2/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-oras-oras-go",
"purl": "pkg:deb/debian/golang-oras-oras-go?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"1.1.1-1",
"2.5.0-1",
"2.6.0-1",
"2.6.2-1",
"2.6.2-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-85731.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-oras-oras-go",
"purl": "pkg:deb/debian/golang-oras-oras-go?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"2.5.0-1",
"2.6.0-1",
"2.6.2-1",
"2.6.2-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-85731.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.6.2-1"
}
]
}
],
"package": {
"name": "golang-oras-oras-go",
"purl": "pkg:deb/debian/golang-oras-oras-go?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"2.5.0-1",
"2.6.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-85731.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #58233 · Revision 1
- Added to Heist Feed
- Publisher date