The Kubernetes community discovered CVE-2021-25741, a vulnerability that can be exploited by attackers to access the host directories by using a symbolic link and creating a container that has a subPath volume mounted. This topic describes the impacts, affected Kubernetes versions, and fixes of this vulnerability.
CVE-2021-25741 is rated as high severity and its Common Vulnerability Scoring System (CVSS) score is 8.8.
- 1.19.14 and earlier
For more information about the vulnerability, see #104980.
In multi-tenant scenarios, attackers with the permissions to start containers as the root user can exploit this vulnerability to escape into the host file system and obtain the read and write permissions on sensitive directories of the host.
Upgrade to Kubernetes 1.20.11-aliyun.1. CVE-2021-25741 is fixed in Kubernetes 1.20.11-aliyun.1.