{"cve":"CVE-2021-21272","nvd":{"published":"2021-01-25T19:15:12.847","modified":"2026-06-17T03:35:10.050","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":7.7},"cwes":["CWE-59","CWE-22"],"references":["https://github.com/deislabs/oras/commit/96cd90423303f1bb42bd043cb4c36085e6e91e8e","https://github.com/deislabs/oras/releases/tag/v0.9.0","https://github.com/deislabs/oras/security/advisories/GHSA-g5v4-5x39-vwhx","https://pkg.go.dev/github.com/deislabs/oras/pkg/oras","https://github.com/deislabs/oras/commit/96cd90423303f1bb42bd043cb4c36085e6e91e8e"],"products":["deislabs:oras"],"source":"nvd","synced_at":"2026-10-19T21:14:10.479542811+00:00"},"epss":{"cve":"CVE-2021-21272","score":0.01466,"percentile":0.73677,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-g5v4-5x39-vwhx","url":"https://osv.dev/vulnerability/GHSA-g5v4-5x39-vwhx","summary":"Zip slip directory exploit in github.com/deislabs/oras","modified":"2026-07-08T06:29:37.803578339Z","packages":[{"ecosystem":"Go","name":"github.com/deislabs/oras","purl":"pkg:golang/github.com/deislabs/oras","ranges":["<0.9.0"],"fixed":["0.9.0"]}]},{"id":"GO-2021-0099","url":"https://osv.dev/vulnerability/GO-2021-0099","summary":"Zip slip directory exploit in github.com/deislabs/oras","modified":"2024-05-20T16:03:47Z","packages":[{"ecosystem":"Go","name":"github.com/deislabs/oras","purl":"pkg:golang/github.com/deislabs/oras","ranges":["<0.9.0"],"fixed":["0.9.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}