kubectl cp allows symlink directory traversal (Kubernetes Kubernetes)

CVE-2019-11251
MEDIUM 4.8

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

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.8CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:Nkubernetes
CVSS 3.1MEDIUM 4.8CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:NNVD · jordan@liggitt.net (Secondary)
CVSS 3.1MEDIUM 5.7CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:NNVD · nvd@nist.gov (Primary)
CVSS 2.0MEDIUM 4.3AV:N/AC:M/Au:N/C:N/I:P/A:NNVD · nvd@nist.gov (Primary)

Advisories

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Kubernetes · Kubernetesaffected 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

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD