cve.bz

CVE-2021-21272 deislabs oras: Link Following

7.7 highEPSS 1.5%Fix available

High (7.7) in deislabs oras. EPSS 1.5% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/deislabs/oras 0.9.0.

On this page
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.

Severity

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
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 74th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-59 Improper Link Resolution Before File Access (Link Following)
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-21272 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-21272?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-21272?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-21272 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
deislabs:orasfrom 0.4.0 before 0.9.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-g5v4-5x39-vwhxGogithub.com/deislabs/oras<0.9.00.9.0
GO-2021-0099Gogithub.com/deislabs/oras<0.9.00.9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
SUSELinux Enterprise Module for Containers 15 SP4, Linux Enterprise Module for Package Hub 15 SP4helm3.10.3-150000.1.13.1SUSE-SU-2022:4606-1
openSUSELeap 15.3, Leap 15.4helm3.10.3-150000.1.13.1SUSE-SU-2022:4606-1
openSUSETumbleweedhelm3.9.4-3.1openSUSE-SU-2024:12345-1
openSUSETumbleweedhelm33.19.2-1.1openSUSE-SU-2025:15779-1

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A vulnerable version of github.com/deislabs/oras package is delivered in listed OpenShift Container Platform (OCP) and OpenShift Container Storage components, but the vulnerable code is not invoked, therefore these components are affected but with impact Low.

ProductPackageStateAdvisory
Red Hat Advanced Cluster Management for Kubernetes 2endpoint-metrics-operatorAffected
Red Hat Advanced Cluster Management for Kubernetes 2multicloud-operators-subscriptionAffected
Red Hat Advanced Cluster Management for Kubernetes 2multicloud-operators-subscription-releaseAffected
Red Hat Advanced Cluster Management for Kubernetes 2multicluster-monitoring-operatorAffected
Red Hat Advanced Cluster Management for Kubernetes 2search-collectorAffected
Red Hat Advanced Cluster Security 3roxAffected
Red Hat OpenShift Container Platform 4openshift4/cnf-tests-rhel8Fix deferred
Red Hat OpenShift Container Platform 4openshift4/compliance-rhel8-operatorFix deferred
Red Hat OpenShift Container Platform 4openshift4/file-integrity-rhel8-operatorFix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-ansible-rhel9-operatorAffected
Red Hat OpenShift Container Platform 4openshift4/ose-consoleFix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-helm-operatorAffected
Red Hat OpenShift Container Platform 4openshift4/ose-operator-lifecycle-manager-rhel9Fix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-ptp-rhel9-operatorFix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-sriov-network-config-daemonNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-sriov-network-rhel9-operatorNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-sriov-network-webhookNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-sriov-operator-must-gatherNot affected
Red Hat OpenShift Container Platform 4openshift4-wincw/windows-machine-config-rhel8-operatorNot affected
Red Hat OpenShift Container Platform Assisted Installer 1rhai-tech-preview/assisted-installer-agent-rhel8Fix deferred
14 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-21272.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON