Skip to content
OpenAdvisories
Low · 3.3 CVE-2019-11244 EUVD-2022-0756GHSA-2575-pghm-6qqx

kubectl creates world-writeable cached schema files

Published Apr 22, 2019 · Updated Aug 4, 2024 · Assigned by kubernetes

Description

In Kubernetes v1.8.x-v1.14.x, schema info is cached by kubectl in the location specified by --cache-dir (defaulting to $HOME/.kube/http-cache), written with world-writeable permissions (rw-rw-rw-). If --cache-dir is specified and pointed at a different location accessible to other users/groups, the written files may be modified by other users/groups and disrupt the kubectl invocation.

Affected products

VendorProductAffectedFixed
Kubernetes Kubernetes v1.8.0 – < v1.8*, v1.9.0 – < v1.9*, v1.10.0 – < v1.10*, v1.11.0 – < v1.11*, v1.12.0 – < v1.12*, v1.13.0 – < v1.13*, v1.14.0 – < v1.14* v1.8*

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
Red Hat OpenShift 4 openshift +3 4.1.24-201911080309.git.0.c41acf2.el7 RHSA-2019:3942
Red Hat OpenShift 3 atomic-openshift +12 3.11.161-1.git.0.4ccbe25.el7 RHSA-2020:0020

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 kubeadm +2 1.12.7-1.2.3.el7 ELSA-2019-4816, ELSA-2019-4716
Oracle Linux 7 kubeadm-ha-setup 0.0.2-1.0.52.el7 ELSA-2019-4816, ELSA-2019-4717
Oracle Linux 7 kubeadm-upgrade 0.0.1-1.0.27.el7 ELSA-2019-4816

Affected packages

EcosystemPackageAffectedFixedRecord
Go k8s.io/client-go >= 1.8.0, < 1.12.9 1.12.9 GHSA-2575-pghm-6qqx

Advisories 5

References