SecurityContext

CVE-2021-21272: ORAS - Path Traversal

  • Cve: CVE-2021-21272
  • Name: ORAS - Path Traversal
  • Description: ORAS is open source software which enables a way to push OCI Artifacts to OCI Conformant registries. ORAS is both a CLI for initial testing and a Go Module. In ORAS from version 0.4.0 and before version 0.9.0, there is a "zip-slip" vulnerability. The directory support feature allows the downloaded gzipped tarballs to be automatically extracted to the user-specified directory where the tarball can have symbolic links and hard links. A well-crafted tarball or tarballs allow malicious artifact providers linking, writing, or overwriting specific files on the host filesystem outside of the user-specified directory unexpectedly with the same permissions as the user who runs `oras pull`. Users of the affected versions are impacted if they are `oras` CLI users who runs `oras pull`, or if they are Go programs, which invoke `github.com/deislabs/oras/pkg/content.FileStore`. The problem has been fixed in version 0.9.0. For `oras` CLI users, there is no workarounds other than pulling from a trusted artifact provider. For `oras` package users, the workaround is to not use `github.com/deislabs/oras/pkg/content.FileStore`, and use other content stores instead, or pull from a trusted artifact provider.
  • Impact: Malicious artifact providers can overwrite or link files outside the intended directory, potentially leading to arbitrary code execution or system compromise.
  • Remediation: Update to version 0.9.0 or later. For CLI users, only pull from trusted artifact providers. For package users, avoid using 'github.com/deislabs/oras/pkg/content.FileStore' or ensure pulling from trusted sources.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_write
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.7
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
  • Epss score: 0.01466
  • Epss percentile: 0.74351
  • Assignee: [email protected]
  • Published at: 2021-01-25T19:15:12Z
  • Age in days: 2129
  • Modified at: 2026-06-17T03:35:10Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-21272
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory
CWE-59Improper Link Resolution Before File Access

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/deislabs/oras/commit/96cd90423303f1bb42bd043cb4c36085e6e91e8ePatch
https://github.com/deislabs/oras/security/advisories/GHSA-g5v4-5x39-vwhxPatch, Vendor Advisory
https://pkg.go.dev/github.com/deislabs/oras/pkg/orasThird Party Advisory
https://github.com/deislabs/oras/releases/tag/v0.9.0Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
deislabs:oras>= 0.4.0, < 0.9.0nonvd/v1/products/deislabs/oras

Projects

RepositoryLink kindsIndexedUrl
oras-project/orasfixyes/v1/repositories/oras-project/oras
deislabs/orascommit, fix, package, releases, security_advisoryyes/v1/repositories/deislabs/oras

Index

  • Repositories: 5
  • Packages: 1
  • Checked, none or zero: repositories high signal

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts