Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2018-1002105 EUVD-2022-0831GHSA-579h-mv94-g4gpGO-2022-0792

Privilege Escalation in Kubernetes

Published Dec 5, 2018 · Updated Aug 5, 2024 · Assigned by kubernetes

Description

In all Kubernetes versions prior to v1.10.11, v1.11.5, and v1.12.3, incorrect handling of error responses to proxied upgrade requests in the kube-apiserver allowed specially crafted requests to establish a connection through the Kubernetes API server to backend servers, then send arbitrary requests over the same connection directly to the backend, authenticated with the Kubernetes API server's TLS credentials used to establish the backend connection.

Affected products

VendorProductAffectedFixed
Kubernetes Kubernetes v1.0.x, v1.1.x, v1.2.x, v1.3.x, v1.4.x, v1.5.x, v1.6.x, v1.7.x, v1.8.x, v1.9.x, unspecified – < v1.10.11, unspecified – < v1.11.5, unspecified – < v1.12.3 v1.10.11

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 kubernetes 1.17.4-1 —
Debian 13 kubernetes 1.17.4-1 —
Debian 12 kubernetes 1.17.4-1 —
ReleasePackageFixed inAdvisory
Red Hat OpenShift 3 atomic-enterprise-service-catalog +1 1:3.10.72-1.git.1450.7d3f435.el7 RHSA-2018:3549
Red Hat OpenShift 3 atomic-openshift +12 3.2.1.34-2.git.20.6367d5d.el7 RHSA-2018:3754, RHSA-2018:3752, RHSA-2018:3742
Red Hat OpenShift 3 atomic-openshift-descheduler 3.10.72-1.git.299.953c1c8.el7 RHSA-2018:3549
Red Hat OpenShift 3 atomic-openshift-hyperkube +1 3.10.72-1.git.0.3cb2fdc.el7 RHSA-2018:3549, RHSA-2018:3537
Red Hat OpenShift 3 atomic-openshift-node-problem-detector 3.10.72-1.git.252.fa9e8ae.el7 RHSA-2018:3549
Red Hat OpenShift 3 atomic-openshift-service-catalog +2 3.6.173.0.140-1.git.0.9686d52.el7 RHSA-2018:3598, RHSA-2018:3551, RHSA-2018:2908
Red Hat OpenShift 3 atomic-openshift-template-service-broker 3.7.72-1.git.0.925b9cd.el7 RHSA-2018:3551, RHSA-2018:3549, RHSA-2018:3537
Red Hat OpenShift 3 atomic-openshift-web-console 3.10.72-1.git.395.d23c438.el7 RHSA-2018:3549
Red Hat OpenShift 3 cockpit +1 160-3.el7 RHSA-2018:3624
Red Hat OpenShift 3 jenkins-2-plugins 3.11.1539805268-1.el7 RHSA-2018:3537
Red Hat OpenShift 3 kibana 5.6.12-1.el7 RHSA-2018:3537
Red Hat OpenShift 3 openshift-ansible +7 3.3.149-1.git.0.3859ddb.el7 RHSA-2018:3754, RHSA-2018:3752, RHSA-2018:3624
Red Hat OpenShift 3 openshift-enterprise-cluster-capacity 3.10.72-1.git.380.0fd53e8.el7 RHSA-2018:3549
Red Hat OpenShift 3 openshift-monitor-project-lifecycle 3.10.72-1.git.59.5358725.el7 RHSA-2018:3549
Red Hat OpenShift 3 openshift-monitor-sample-app 3.10.72-1.git.5.de405bc.el7 RHSA-2018:3549
Red Hat OpenShift 3 prometheus-node-exporter +1 3.10.72-1.git.1060.64daa26.el7 RHSA-2018:3549
ReleasePackageFixed inAdvisory
openSUSE Leap 15.1 cri-o 1.17.1-lp151.2.2 openSUSE-SU-2020:0554-1
openSUSE Leap 15.1 cri-tools 1.18.0-lp151.2.1 openSUSE-SU-2020:0554-1
openSUSE Leap 15.1 go1.14 1.14-lp151.6.1 openSUSE-SU-2020:0554-1
openSUSE Leap 15.1 kubernetes 1.18.0-lp151.5.1 openSUSE-SU-2020:0554-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 kubeadm +2 1.9.11-2.1.1.el7 ELSA-2018-4303

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 2

GitHub 5 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/kubernetes/kubernetes < 1.10.11 1.10.11 GHSA-579h-mv94-g4gp
Go github.com/kubernetes/kubernetes >= 1.11.0, < 1.11.5 1.11.5 GHSA-579h-mv94-g4gp
Go github.com/kubernetes/kubernetes >= 1.12.0, < 1.12.3 1.12.3 GHSA-579h-mv94-g4gp
Go github.com/kubernetes/kubernetes < 1.10.11 · >= 1.11.0, < 1.11.5 · >= 1.12.0, < 1.12.3 1.10.11, 1.11.5, 1.12.3 GO-2022-0792

Advisories 13

References