CVE-2019-1002101
MEDIUM5.5EPSS 49.9%Symlink Attack in kubectl cp
發布日:2022/2/15修改日:2026/2/4
描述
The kubectl cp command allows copying files between containers and the user machine. To copy files from a container, Kubernetes creates a tar inside the container, copies it over the network, and kubectl unpacks it on the user’s machine. If the tar binary in the container is malicious, it could run any code and output unexpected, malicious results. An attacker could use this to write files to any path on the user’s machine when kubectl cp is called, limited only by the system permissions of the local user. The untar function can both create and follow symbolic links. The issue is resolved in kubectl v1.11.9, v1.12.7, v1.13.5, and v1.14.0.
受影響套件(2)
- Go/k8s.io/kubernetesfrom 0, < 1.11.9
- Go/k8s.io/kubernetesfrom 0, < 1.11.9, >= 1.12.0, < 1.12.7, >= 1.13.0, < 1.13.5
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.5 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
參考連結(13)
- ADVISORYhttps://github.com/advisories/GHSA-34jx-wx69-9x8v
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2019-1002101
- WEBhttps://access.redhat.com/errata/RHBA-2019:0619
- WEBhttps://access.redhat.com/errata/RHBA-2019:0620
- WEBhttps://access.redhat.com/errata/RHBA-2019:0636
- WEBhttps://github.com/kubernetes/kubernetes/commit/47063891dd782835170f500a83f37cc98c3c1013
- WEBhttps://github.com/kubernetes/kubernetes/pull/75037
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/BPV2RE5RMOGUVP5WJMXKQJZUBBLAFZPZ
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/QZB7E3DOZ5WDG46XAIU6K32CXHXPXB2F
- WEBhttps://www.twistlock.com/labs-blog/disclosing-directory-traversal-vulnerability-kubernetes-copy-cve-2019-1002101
- WEBhttp://www.openwall.com/lists/oss-security/2019/06/21/1
- WEBhttp://www.openwall.com/lists/oss-security/2019/08/05/5
- WEBhttp://www.securityfocus.com/bid/107652