CVE-2021-21272
"ORAS Zip-Slip Directory Traversal Vulnerability"
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.
INFO
Published Date :
Jan. 25, 2021, 7:15 p.m.
Last Modified :
Nov. 21, 2024, 5:47 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
4.0
Exploitability Score :
3.1
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-21272
.
URL | Resource |
---|---|
https://github.com/deislabs/oras/commit/96cd90423303f1bb42bd043cb4c36085e6e91e8e | Patch |
https://github.com/deislabs/oras/releases/tag/v0.9.0 | Release Notes |
https://github.com/deislabs/oras/security/advisories/GHSA-g5v4-5x39-vwhx | Patch Vendor Advisory |
https://pkg.go.dev/github.com/deislabs/oras/pkg/oras | Third Party Advisory |
https://github.com/deislabs/oras/commit/96cd90423303f1bb42bd043cb4c36085e6e91e8e | Patch |
https://github.com/deislabs/oras/releases/tag/v0.9.0 | Release Notes |
https://github.com/deislabs/oras/security/advisories/GHSA-g5v4-5x39-vwhx | Patch Vendor Advisory |
https://pkg.go.dev/github.com/deislabs/oras/pkg/oras | Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-21272
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-21272
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/deislabs/oras/commit/96cd90423303f1bb42bd043cb4c36085e6e91e8e Added Reference https://github.com/deislabs/oras/releases/tag/v0.9.0 Added Reference https://github.com/deislabs/oras/security/advisories/GHSA-g5v4-5x39-vwhx Added Reference https://pkg.go.dev/github.com/deislabs/oras/pkg/oras -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Reanalysis by [email protected]
Feb. 21, 2024
Action Type Old Value New Value Changed Reference Type https://github.com/deislabs/oras/commit/96cd90423303f1bb42bd043cb4c36085e6e91e8e Patch, Third Party Advisory https://github.com/deislabs/oras/commit/96cd90423303f1bb42bd043cb4c36085e6e91e8e Patch Changed Reference Type https://github.com/deislabs/oras/releases/tag/v0.9.0 Release Notes, Third Party Advisory https://github.com/deislabs/oras/releases/tag/v0.9.0 Release Notes Changed Reference Type https://github.com/deislabs/oras/security/advisories/GHSA-g5v4-5x39-vwhx Patch, Third Party Advisory https://github.com/deislabs/oras/security/advisories/GHSA-g5v4-5x39-vwhx Patch, Vendor Advisory -
Reanalysis by [email protected]
Oct. 25, 2022
Action Type Old Value New Value Removed CWE NIST CWE-22 Added CWE NIST CWE-59 -
Initial Analysis by [email protected]
Feb. 02, 2021
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:L/Au:S/C:N/I:P/A:N) Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N Changed Reference Type https://github.com/deislabs/oras/commit/96cd90423303f1bb42bd043cb4c36085e6e91e8e No Types Assigned https://github.com/deislabs/oras/commit/96cd90423303f1bb42bd043cb4c36085e6e91e8e Patch, Third Party Advisory Changed Reference Type https://github.com/deislabs/oras/releases/tag/v0.9.0 No Types Assigned https://github.com/deislabs/oras/releases/tag/v0.9.0 Release Notes, Third Party Advisory Changed Reference Type https://github.com/deislabs/oras/security/advisories/GHSA-g5v4-5x39-vwhx No Types Assigned https://github.com/deislabs/oras/security/advisories/GHSA-g5v4-5x39-vwhx Patch, Third Party Advisory Changed Reference Type https://pkg.go.dev/github.com/deislabs/oras/pkg/oras No Types Assigned https://pkg.go.dev/github.com/deislabs/oras/pkg/oras Third Party Advisory Added CWE NIST CWE-22 Added CPE Configuration OR *cpe:2.3:a:deislabs:oras:*:*:*:*:*:*:*:* versions from (including) 0.4.0 up to (excluding) 0.9.0 -
CVE Modified by [email protected]
Jan. 26, 2021
Action Type Old Value New Value Changed 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. 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.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-21272
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-21272
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.22 }} -0.50%
score
0.41985
percentile