Link following in Oras - CVE-2021-21272

 

Link following in Oras - CVE-2021-21272

Published: January 3, 2023


Vulnerability identifier: #VU70623
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-21272
CWE-ID: CWE-59
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to overwrite files on the system.

The vulnerability exists due to insecure hardlink following when extracting files from an archive. A remote attacker can trick the victim into downloading a gzipped tarballs that will be automatically extracted to the user-specified directory where the tarball can have symbolic links and hard links.


Affected software

Oras
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Module for Containers
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP Applications
openSUSE Leap
SUSE Linux Enterprise Module for Packagehub Subpackages
helm
helm-debuginfo
helm-bash-completion
helm-fish-completion
helm-zsh-completion

How to mitigate CVE-2021-21272

Install updates from vendor's website.

Oras - update to 0.9.0
helm - update to 3.10.3-150000.1.13.1
helm-debuginfo - update to 3.10.3-150000.1.13.1
helm-bash-completion - update to 3.10.3-150000.1.13.1
helm-fish-completion - update to 3.10.3-150000.1.13.1
helm-zsh-completion - update to 3.10.3-150000.1.13.1

External References

Related Security Bulletins