Help Center> Cloud Container Engine> Product Bulletin> Vulnerability Notice> Notice on Fixing the Kubernetes Permission and Access Control Vulnerability (CVE-2018-1002105)

Notice on Fixing the Kubernetes Permission and Access Control Vulnerability (CVE-2018-1002105)

The security vulnerability CVE-2018-1002105 was reported in the Kubernetes community. By forging requests, Kubernetes users can access the backend over established connections through the Kubernetes API server. The HUAWEI CLOUD CCE has securely fixed this vulnerability in a timely manner.

Table 1 Vulnerability information

Vulnerability Type

CVE-ID

Discovered

Fixed by HUAWEI CLOUD

Privilege escalation

CVE-2018-1002105

2018-12-05

2018-12-05

For details about the vulnerability, see https://github.com/kubernetes/kubernetes/issues/71411.

Affected Versions

  • Kubernetes v1.0.x-1.9.x
  • Kubernetes v1.10.0-1.10.10 (fixed in v1.10.11)
  • Kubernetes v1.11.0-1.11.4 (fixed in v1.11.5)
  • Kubernetes v1.12.0-1.12.2 (fixed in v1.12.3)

Affected Configurations

Clusters that run aggregated API servers directly accessible from the Kubernetes API server's network;

Clusters visible to attackers, that is, attackers can access the kube-apiserver APIs. If your clusters are deployed on a secure private network, the clusters are not affected.

Clusters that assign pod exec/attach/portforward permissions to users who are not expected to have full access to kubelet APIs

Impact Scenario

If a cluster uses aggregated APIs, the attacker can exploit this vulnerability to send any API request to the aggregated API server, as long as the kube-apiserver is directly connected to the aggregated API server network.

If the access permission of the cluster is granted to anonymous users, anonymous users can also exploit this vulnerability. Unfortunately, Kubernetes allows anonymous access by default, that is, "-- anonymous-auth=true" in the startup parameter settings of kube-apiserver.

Users granted the exec/attach/portforward permission for pods can exploit this vulnerability to make themselves the cluster administrator. Then they can perform destructive operations on any pods.

For more discussion about the vulnerability, see https://github.com/kubernetes/kubernetes/issues/71411.

Measures and Suggestions

You do not need to worry about this vulnerability because:

  • By default, anonymous access is disabled for clusters created by CCE.
  • Clusters created by CCE do not use aggregation APIs.

The HUAWEI CLOUD CCE has completed online patch installation for all Kubernetes clusters of v1.11 and later versions. The Kubernetes community does not provide solutions to fix the vulnerability for clusters of earlier versions. Therefore, the CCE has provided a dedicated patch version for them. Pay attention to the upgrade notices, and install the patch version in time to fix the vulnerability.

If you set up Kubernetes clusters without using CCE, you are advised to disable the anonymous access permissions to improve the cluster security.

Upgrade to the vulnerability fixing version provided in the community as soon as possible. When configuring RBAC policies, ensure that the pod exec/attach/portforward permission is granted only to trusted users.

If the Kubernetes version of your clusters is earlier than v1.10, which is not supported by the Kubernetes community, you are advised to add the patch code provided in https://github.com/kubernetes/kubernetes/pull/71412.