kubectl cp allows symlink directory traversal (Kubernetes Kubernetes)
At a glance
- Source
- NVD
- EPSS
- EPSS 2.62 % · percentile 85 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- kubernetes
- NVD status
- Modified
Description
The Kubernetes kubectl cp command in versions 1.1-1.12, and versions prior to 1.13.11, 1.14.7, and 1.15.4 allows a combination of two symlinks provided by tar output of a malicious container to place a file outside of the destination directory specified in the kubectl cp invocation. This could be used to allow an attacker to place a nefarious file using a symlink, outside of the destination tree.
Weaknesses (CWE)
- CWE-61 — UNIX Symbolic Link (Symlink) Following
- CWE-59 — Improper Link Resolution Before File Access
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N | kubernetes |
| CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N | NVD · jordan@liggitt.net (Secondary) |
| CVSS 3.1 | MEDIUM 5.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N | NVD · nvd@nist.gov (Primary) |
| CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N | NVD · nvd@nist.gov (Primary) |
Advisories
- GHSA-6qfg-8799-r575 — Kubernetes kubectl cp Vulnerable to Symlink Attack
- GO-2022-0802 — Kubernetes kubectl cp Vulnerable to Symlink Attack in k8s.io/kubernetes
European references
- ENISA EUVD · EUVD-2021-0974
- GCVE · GCVE-0-2019-11251
CERT-FR advisories
- CERTFR-2022-AVI-591 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:*≥ 1.13.0 < 1.13.11cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:*≥ 1.14.0 < 1.14.7cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:*≥ 1.15.0 < 1.15.4cpe:2.3:a:kubernetes:kubernetes:1.1-1.12:*:*:*:*:*:*:*
Affected products
| Product | Versions |
|---|---|
| Kubernetes · Kubernetes | affected prior to 1.13.11 ; affected prior to 1.14.7 ; affected prior to 1.15.4 ; affected 1.1 ; affected 1.2 ; affected 1.3 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |