CVE Explorer
CVE-2026-50162
oras-go is a Go library for managing OCI artifacts. Prior to 2.6.1, resolveWritePath() in content/file/file.go uses a lexical filepath.Rel check for workingDir and does not account for symlink traversal, so when AllowPathTraversalOnWrite=false an attacker-controlled blob title through ocispec.AnnotationTitle such as out/pwn.txt can follow a workingDir symlink out -> /some/outside/dir and cause pushFile() to create /some/outside/dir/pwn.txt outside workingDir. This issue is fixed in version 2.6.1
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"oras-go","vendor":"oras-project","versions":[{"status":"affected","version":"< 2.6.1"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:33210cde26caa0d919bfc12e1726f6d56ef233bac04c4d446933df92b4342bec · sha256:5094611ce8010e6d… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":6.9,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:33210cde26caa0d919bfc12e1726f6d56ef233bac04c4d446933df92b4342bec · sha256:5094611ce8010e6d… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-73","description":"CWE-73: External Control of File Name or Path","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:33210cde26caa0d919bfc12e1726f6d56ef233bac04c4d446933df92b4342bec · sha256:5094611ce8010e6d… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/oras-project/oras-go/commit/cc323e564d90c6b5b4bdd71d3c8d2ee2713b37e5","tags":["x_refsource_MISC"],"url":"https://github.com/oras-project/oras-go/commit/cc323e564d90c6b5b4bdd71d3c8d2ee2713b37e5"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:33210cde26caa0d919bfc12e1726f6d56ef233bac04c4d446933df92b4342bec · sha256:5094611ce8010e6d… · /containers/cna/references/1
{"name":"https://github.com/oras-project/oras-go/releases/tag/v2.6.1","tags":["x_refsource_MISC"],"url":"https://github.com/oras-project/oras-go/releases/tag/v2.6.1"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:33210cde26caa0d919bfc12e1726f6d56ef233bac04c4d446933df92b4342bec · sha256:5094611ce8010e6d… · /containers/cna/references/2
{"name":"https://github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv","tags":["x_refsource_CONFIRM"],"url":"https://github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:33210cde26caa0d919bfc12e1726f6d56ef233bac04c4d446933df92b4342bec · sha256:5094611ce8010e6d… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:33210cde26caa0d919bfc12e1726f6d56ef233bac04c4d446933df92b4342bec · sha256:5094611ce8010e6d… · /containers/adp/0/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.