zip slip in ORAS
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Partial Red Hat: 5 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| deislabs | oras | 0.4.0 to before 0.9.0 | 0.9.0 | Patch available | CNA |
| — | github.com/deislabs/oras (Go) | before 0.9.0 | 0.9.0 | Patch available | GHSA-g5v4-5x39-vwhx |
- oras Vendordeislabs Affected 0.4.0 to before 0.9.0 Fixed in 0.9.0 Patch available CNA
- github.com/deislabs/oras (Go) Vendor— Affected before 0.9.0 Fixed in 0.9.0 Patch available GHSA-g5v4-5x39-vwhx
Remediation
- Fix · CNA oras (deislabs) Fixed in 0.9.0
- Fix · GHSA-g5v4-5x39-vwhx github.com/deislabs/oras (Go) Fixed in 0.9.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | No fix yet |
| Red Hat Advanced Cluster Security 3 | Affected | No fix yet |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet |
| Red Hat OpenShift Container Platform Assisted Installer 1 | Affected | No fix yet: Fix deferred |
| Red Hat Openshift Container Storage 4 | Affected | No fix yet: Fix deferred |
Not affected: 3 products
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Virtualization 2
- Red Hat Openshift Container Storage 4
Timeline
- 2026-10-02 Threatist record created from CVE-2021-21272
- 2026-10-03 Alias added: GHSA-g5v4-5x39-vwhx
References
Patch 2
Advisory 2
Sources
- CVE-2021-21272 · CVE Program
- CVE-2021-21272 · NVD
- FIRST EPSS
- GHSA-g5v4-5x39-vwhx · GitHub Advisory Database · CC BY 4.0
- CVE-2021-21272 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences