# CVE-2021-21272: zip slip in ORAS

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.47%, higher than 74% of CVEs (2026-12-01)
- Published: 2021-01-25T18:30:15.000Z
- Modified: 2026-09-08T08:48:24.578Z
- Also known as: GHSA-g5v4-5x39-vwhx, BIT-ORAS-2021-21272, GO-2021-0099
- Weaknesses: CWE-22, CWE-59
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- deislabs oras: >= 0.4.0, < 0.9.0; from 0.4.0 before 0.9.0
- github.com/deislabs/oras (Go): before 0.9.0
- oras (Bitnami): from 0.4.0 before 0.9.0

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/deislabs/oras/security/advisories/GHSA-g5v4-5x39-vwhx> (advisory, patch, vendor-advisory, web)
- <https://github.com/deislabs/oras/commit/96cd90423303f1bb42bd043cb4c36085e6e91e8e> (fix, patch, web)
- <https://github.com/deislabs/oras/releases/tag/v0.9.0> (article, release-notes, web)
- <https://pkg.go.dev/github.com/deislabs/oras/pkg/oras> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21272> (advisory, web)
- <https://github.com/deislabs/oras> (package)
- <https://pkg.go.dev/vuln/GO-2021-0099> (web)

## Sources

- CVE List: [CVE-2021-21272](https://www.cve.org/CVERecord?id=CVE-2021-21272), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-g5v4-5x39-vwhx](https://github.com/advisories/GHSA-g5v4-5x39-vwhx), CC-BY-4.0, modified 2026-07-08
- Go Vulnerability Database: [GO-2021-0099](https://pkg.go.dev/vuln/GO-2021-0099), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2021-21272](https://nvd.nist.gov/vuln/detail/CVE-2021-21272), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-ORAS-2021-21272](https://osv.dev/vulnerability/BIT-ORAS-2021-21272), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-21272 · Whole record: https://cve.day/CVE-2021-21272.json · Rebuilt by cve.day 2026-11-25T22:57:59.719Z
