Live threats

All CVEs / Deislabs

CVE-2021-21272Deislabs Oras

High 7.7

Priority
46
CVSS 3.1
7.7
EPSS
1.5%
probability of exploitation in 30 days · percentile 74
Auth required
Yes
Published
Jan 25, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22, CWE-59
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Oras.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/deislabs/oras < 0.9.0 0.9.0 go get github.com/deislabs/oras@v0.9.0
Go github.com/deislabs/oras < 0.9.0 0.9.0 go get github.com/deislabs/oras@v0.9.0

Per OSV / GitHub Advisories (GHSA-g5v4-5x39-vwhx, GO-2021-0099). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
deislabsoras≥ 0.4.0 < 0.9.0

Official sources

References

Links published by the sources. Open them with care.