CVE-2019-11244kubectl creates world-writeable cached schema files
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.
What to do
Fixed builds are available from Go: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Go library | k8s.io/client-go | Fixed | 1.12.9 | GHSA-2575-pghm-6qqx |
What the vendor says
As published in the CVE record by kubernetes, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Kubernetes: affected: v1.8.0 to before v1.8*, v1.9.0 to before v1.9*, v1.10.0 to before v1.10*, v1.11.0 to before v1.11*, v1.12.0 to before v1.12*, v1.13.0 to before v1.13*
Workaround: Use the default --http-cache location in the $HOME directory or point it at a directory that is only accessible to desired users/groups.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2019:3942 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2020:0020 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2020:0074 (vendor-advisory)
References
- https://github.com/kubernetes/kubernetes/issues/76676
- http://www.securityfocus.com/bid/108064
- https://security.netapp.com/advisory/ntap-20190509-0002/
- https://access.redhat.com/errata/RHSA-2019:3942
- https://access.redhat.com/errata/RHSA-2020:0020
- https://access.redhat.com/errata/RHSA-2020:0074
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.