gsd-2019-1002101
Vulnerability from gsd
Modified
2023-12-13 01:23
Details
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.
Aliases
Aliases
{ "GSD": { "alias": "CVE-2019-1002101", "description": "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\u2019s 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\u2019s 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.", "id": "GSD-2019-1002101", "references": [ "https://www.suse.com/security/cve/CVE-2019-1002101.html", "https://access.redhat.com/errata/RHBA-2019:0636", "https://access.redhat.com/errata/RHBA-2019:0620", "https://access.redhat.com/errata/RHBA-2019:0619", "https://linux.oracle.com/cve/CVE-2019-1002101.html" ] }, "gsd": { "metadata": { "exploitCode": "unknown", "remediation": "unknown", "reportConfidence": "confirmed", "type": "vulnerability" }, "osvSchema": { "aliases": [ "CVE-2019-1002101" ], "details": "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\u2019s 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\u2019s 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.", "id": "GSD-2019-1002101", "modified": "2023-12-13T01:23:52.355009Z", "schema_version": "1.4.0" } }, "namespaces": { "cve.org": { "CVE_data_meta": { "ASSIGNER": "cve-assign@distributedweaknessfiling.org", "DATE_ASSIGNED": "2019-03-05", "DATE_PUBLIC": "2019-03-28", "ID": "CVE-2019-1002101", "STATE": "PUBLIC", "TITLE": "kubectl cp path traversal" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "Kubernetes", "version": { "version_data": [ { "version_affected": "\u003c", "version_name": "1.11", "version_value": "1.11.9" }, { "version_affected": "\u003c", "version_name": "1.12", "version_value": "1.12.7" }, { "version_affected": "\u003c", "version_name": "1.13", "version_value": "1.13.5" }, { "version_affected": "=", "version_name": "1.1-1.10", "version_value": "1.1-1.10" } ] } } ] }, "vendor_name": "Kubernetes" } ] } }, "credit": [ { "lang": "eng", "value": "Ariel Zelivansky of Twistlock" } ], "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "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\u2019s 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\u2019s 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." } ] }, "impact": { "cvss": { "attackComplexity": "HIGH", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 6.4, "baseSeverity": "MEDIUM", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "HIGH", "scope": "UNCHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H", "version": "3.0" } }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "Data Handling" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/kubernetes/kubernetes/pull/75037", "refsource": "MISC", "url": "https://github.com/kubernetes/kubernetes/pull/75037" }, { "name": "107652", "refsource": "BID", "url": "http://www.securityfocus.com/bid/107652" }, { "name": "RHBA-2019:0620", "refsource": "REDHAT", "url": "https://access.redhat.com/errata/RHBA-2019:0620" }, { "name": "RHBA-2019:0619", "refsource": "REDHAT", "url": "https://access.redhat.com/errata/RHBA-2019:0619" }, { "name": "RHBA-2019:0636", "refsource": "REDHAT", "url": "https://access.redhat.com/errata/RHBA-2019:0636" }, { "name": "FEDORA-2019-bf800b1c04", "refsource": "FEDORA", "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BPV2RE5RMOGUVP5WJMXKQJZUBBLAFZPZ/" }, { "name": "[oss-security] 20190620 [ANNOUNCE] Incomplete fixes for CVE-2019-1002101, kubectl cp potential directory traversal - CVE-2019-11246", "refsource": "MLIST", "url": "http://www.openwall.com/lists/oss-security/2019/06/21/1" }, { "name": "[oss-security] 20190805 Kubernetes v1.13.9, v1.14.5, v1.15.2 released to address CVE-2019-11247, CVE-2019-11249", "refsource": "MLIST", "url": "http://www.openwall.com/lists/oss-security/2019/08/05/5" }, { "name": "FEDORA-2019-2b8ef08c95", "refsource": "FEDORA", "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QZB7E3DOZ5WDG46XAIU6K32CXHXPXB2F/" }, { "name": "https://www.twistlock.com/labs-blog/disclosing-directory-traversal-vulnerability-kubernetes-copy-cve-2019-1002101/", "refsource": "MISC", "url": "https://www.twistlock.com/labs-blog/disclosing-directory-traversal-vulnerability-kubernetes-copy-cve-2019-1002101/" } ] }, "source": { "advisory": "https://groups.google.com/forum/#!topic/kubernetes-security-announce/OYFV1hiDE2w", "defect": [ "75037" ], "discovery": "EXTERNAL" } }, "gitlab.com": { "advisories": [ { "_git_import_path": "go/github.com/kubernetes/client-go/discovery/cached/disk", "affected_range": "\u003e=v1.11.0 \u003cv1.11.9 || \u003e=v1.12.0 \u003cv1.12.7 || \u003e=v1.13.0 \u003cv1.13.5 || =v1.14.0", "affected_versions": "All versions starting from 1.11.0 before 1.11.9, all versions starting from 1.12.0 before 1.12.7, all versions starting from 1.13.0 before 1.13.5, version 1.14.0", "cvss_v2": "AV:N/AC:M/Au:N/C:N/I:P/A:P", "cwe_ids": [ "CWE-1035", "CWE-59", "CWE-937" ], "date": "2019-10-22", "description": "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\u0027s 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\u0027s 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.", "fixed_versions": [ "v1.14.1" ], "identifier": "CVE-2019-1002101", "identifiers": [ "CVE-2019-1002101" ], "not_impacted": "All versions before 1.11.0, all versions starting from 1.11.9 before 1.12.0, all versions starting from 1.12.7 before 1.13.0, all versions starting from 1.13.5 before 1.14.0, all versions after 1.14.0", "package_slug": "go/github.com/kubernetes/client-go", "pubdate": "2019-04-01", "solution": "Upgrade to version kubernetes-1.16.2 or above.", "title": "Improper Link Resolution Before File Access", "urls": [ "https://nvd.nist.gov/vuln/detail/CVE-2019-1002101", "http://www.securityfocus.com/bid/107652" ], "uuid": "5a90e146-6740-4f3d-b256-f2e583c12822", "versions": [ { "commit": { "sha": "7a66677755f880f16034b3785c75f4b21bfa9ed9", "tags": [ "kubernetes-1.11.0" ], "timestamp": "20180628063050" }, "number": "v1.11.0" }, { "commit": { "sha": "abcb3a804c4b8d680921d3d4cc5dda6aa8df9995", "tags": [ "kubernetes-1.12.0" ], "timestamp": "20181004144242" }, "number": "v1.12.0" }, { "commit": { "sha": "c1f6f3b37bf498dd1de36cdb374019fe258a835e", "tags": [ "kubernetes-1.13.0" ], "timestamp": "20181204010744" }, "number": "v1.13.0" }, { "commit": { "sha": "88a0b773c8d38fb242e0401847bb36c673aa21ed", "tags": [ "kubernetes-1.13.5" ], "timestamp": "20190307171346" }, "number": "v1.13.5" }, { "commit": { "sha": "0aa5eab985ac602d9911b5dae9fc82c778f0bf7a", "tags": [ "kubernetes-1.14.0" ], "timestamp": "20190314005726" }, "number": "v1.14.0" }, { "commit": { "sha": "28b8198e1cd15cd717798754e106063f7b41e619", "tags": [ "kubernetes-1.12.7" ], "timestamp": "20190325155348" }, "number": "v1.12.7" }, { "commit": { "sha": "8306de303f6f137ac04b881f0fe6cd94ef6dc34b", "tags": [ "kubernetes-1.11.9" ], "timestamp": "20190325195812" }, "number": "v1.11.9" }, { "commit": { "sha": "39bdd41acd22264d8c791bf01cd7c85281f13b4d", "tags": [ "kubernetes-1.14.1" ], "timestamp": "20190409041438" }, "number": "v1.14.1" } ] }, { "affected_range": "\u003c1.11.9||\u003e=1.12.0 \u003c1.12.7||\u003e=1.13.0 \u003c1.13.5", "affected_versions": "All versions before 1.11.9, all versions starting from 1.12.0 before 1.12.7, all versions starting from 1.13.0 before 1.13.5", "cvss_v2": "AV:N/AC:M/Au:N/C:N/I:P/A:P", "cvss_v3": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N", "cwe_ids": [ "CWE-1035", "CWE-59", "CWE-937" ], "date": "2022-04-12", "description": "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\u2019s 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\u2019s 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.", "fixed_versions": [ "1.11.9", "1.12.7", "1.13.5" ], "identifier": "CVE-2019-1002101", "identifiers": [ "GHSA-34jx-wx69-9x8v", "CVE-2019-1002101" ], "not_impacted": "All versions starting from 1.11.9 before 1.12.0, all versions starting from 1.12.7 before 1.13.0, all versions starting from 1.13.5", "package_slug": "go/github.com/kubernetes/kubernetes/pkg/kubectl/cmd/cp", "pubdate": "2022-02-15", "solution": "Upgrade to versions 1.11.9, 1.12.7, 1.13.5 or above.", "title": "Improper Link Resolution Before File Access (\u0027Link Following\u0027)", "urls": [ "https://nvd.nist.gov/vuln/detail/CVE-2019-1002101", "https://github.com/kubernetes/kubernetes/pull/75037", "https://github.com/kubernetes/kubernetes/commit/47063891dd782835170f500a83f37cc98c3c1013", "https://access.redhat.com/errata/RHBA-2019:0619", "https://access.redhat.com/errata/RHBA-2019:0620", "https://access.redhat.com/errata/RHBA-2019:0636", "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BPV2RE5RMOGUVP5WJMXKQJZUBBLAFZPZ/", "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QZB7E3DOZ5WDG46XAIU6K32CXHXPXB2F/", "https://www.twistlock.com/labs-blog/disclosing-directory-traversal-vulnerability-kubernetes-copy-cve-2019-1002101/", "http://www.openwall.com/lists/oss-security/2019/06/21/1", "http://www.openwall.com/lists/oss-security/2019/08/05/5", "http://www.securityfocus.com/bid/107652", "https://github.com/advisories/GHSA-34jx-wx69-9x8v" ], "uuid": "837d9696-df8a-4143-a264-2fc83102a97e" }, { "_git_import_path": "go/k8s.io/kubernetes/pkg/kubectl/cmd/cp", "affected_range": "\u003e=1.11.0 \u003c1.11.9||\u003e=1.12.0 \u003c1.12.7||\u003e=1.13.0 \u003c1.13.5||=1.14.0", "affected_versions": "All versions starting from 1.11.0 before 1.11.9, all versions starting from 1.12.0 before 1.12.7, all versions starting from 1.13.0 before 1.13.5, version 1.14.0", "cvss_v2": "AV:N/AC:M/Au:N/C:N/I:P/A:P", "cvss_v3": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N", "cwe_ids": [ "CWE-1035", "CWE-59", "CWE-937" ], "date": "2019-10-22", "description": "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\u0027s 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.", "fixed_versions": [ "1.11.9", "1.12.7", "1.13.5", "1.14.1-beta.0" ], "identifier": "CVE-2019-1002101", "identifiers": [ "CVE-2019-1002101" ], "not_impacted": "All versions before 1.11.0, all versions starting from 1.11.9 before 1.12.0, all versions starting from 1.12.7 before 1.13.0, all versions starting from 1.13.5 before 1.14.0, all versions after 1.14.0", "package_slug": "go/k8s.io/kubernetes/pkg/kubectl/cmd/cp", "pubdate": "2019-04-01", "solution": "Upgrade to versions 1.11.9, 1.12.7, 1.13.5, 1.14.1-beta.0 or above.", "title": "Improper Link Resolution Before File Access", "urls": [ "https://nvd.nist.gov/vuln/detail/CVE-2019-1002101", "http://www.securityfocus.com/bid/107652" ], "uuid": "f4ba04ef-33b2-45af-ae84-721505ea7c7b" } ] }, "nvd.nist.gov": { "configurations": { "CVE_data_version": "4.0", "nodes": [ { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:*", "cpe_name": [], "versionEndExcluding": "1.13.5", "versionStartIncluding": "1.13.0", "vulnerable": true }, { "cpe23Uri": "cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:*", "cpe_name": [], "versionEndExcluding": "1.12.7", "versionStartIncluding": "1.12.0", "vulnerable": true }, { "cpe23Uri": "cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:*", "cpe_name": [], "versionEndExcluding": "1.11.9", "versionStartIncluding": "1.11.0", "vulnerable": true }, { "cpe23Uri": "cpe:2.3:a:kubernetes:kubernetes:1.14.0:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true } ], "operator": "OR" }, { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:a:redhat:openshift_container_platform:3.11:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true }, { "cpe23Uri": "cpe:2.3:a:redhat:openshift_container_platform:3.10:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true }, { "cpe23Uri": "cpe:2.3:a:redhat:openshift_container_platform:3.9:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true } ], "operator": "OR" } ] }, "cve": { "CVE_data_meta": { "ASSIGNER": "cve-assign@distributedweaknessfiling.org", "ID": "CVE-2019-1002101" }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "en", "value": "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\u2019s 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\u2019s 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." } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "en", "value": "CWE-59" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/kubernetes/kubernetes/pull/75037", "refsource": "MISC", "tags": [ "Patch", "Third Party Advisory" ], "url": "https://github.com/kubernetes/kubernetes/pull/75037" }, { "name": "107652", "refsource": "BID", "tags": [ "Third Party Advisory", "VDB Entry" ], "url": "http://www.securityfocus.com/bid/107652" }, { "name": "CVE-2019-1002101", "refsource": "MISC", "tags": [ "Third Party Advisory" ], "url": "https://access.redhat.com/security/cve/cve-2019-1002101" }, { "name": "RHBA-2019:0620", "refsource": "REDHAT", "tags": [], "url": "https://access.redhat.com/errata/RHBA-2019:0620" }, { "name": "RHBA-2019:0619", "refsource": "REDHAT", "tags": [], "url": "https://access.redhat.com/errata/RHBA-2019:0619" }, { "name": "RHBA-2019:0636", "refsource": "REDHAT", "tags": [], "url": "https://access.redhat.com/errata/RHBA-2019:0636" }, { "name": "FEDORA-2019-bf800b1c04", "refsource": "FEDORA", "tags": [], "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BPV2RE5RMOGUVP5WJMXKQJZUBBLAFZPZ/" }, { "name": "[oss-security] 20190620 [ANNOUNCE] Incomplete fixes for CVE-2019-1002101, kubectl cp potential directory traversal - CVE-2019-11246", "refsource": "MLIST", "tags": [], "url": "http://www.openwall.com/lists/oss-security/2019/06/21/1" }, { "name": "[oss-security] 20190805 Kubernetes v1.13.9, v1.14.5, v1.15.2 released to address CVE-2019-11247, CVE-2019-11249", "refsource": "MLIST", "tags": [], "url": "http://www.openwall.com/lists/oss-security/2019/08/05/5" }, { "name": "FEDORA-2019-2b8ef08c95", "refsource": "FEDORA", "tags": [], "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QZB7E3DOZ5WDG46XAIU6K32CXHXPXB2F/" }, { "name": "https://www.twistlock.com/labs-blog/disclosing-directory-traversal-vulnerability-kubernetes-copy-cve-2019-1002101/", "refsource": "MISC", "tags": [], "url": "https://www.twistlock.com/labs-blog/disclosing-directory-traversal-vulnerability-kubernetes-copy-cve-2019-1002101/" } ] } }, "impact": { "baseMetricV2": { "acInsufInfo": false, "cvssV2": { "accessComplexity": "MEDIUM", "accessVector": "NETWORK", "authentication": "NONE", "availabilityImpact": "PARTIAL", "baseScore": 5.8, "confidentialityImpact": "NONE", "integrityImpact": "PARTIAL", "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:P", "version": "2.0" }, "exploitabilityScore": 8.6, "impactScore": 4.9, "obtainAllPrivilege": false, "obtainOtherPrivilege": false, "obtainUserPrivilege": false, "severity": "MEDIUM", "userInteractionRequired": true }, "baseMetricV3": { "cvssV3": { "attackComplexity": "LOW", "attackVector": "LOCAL", "availabilityImpact": "NONE", "baseScore": 5.5, "baseSeverity": "MEDIUM", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N", "version": "3.0" }, "exploitabilityScore": 1.8, "impactScore": 3.6 } }, "lastModifiedDate": "2020-02-10T21:49Z", "publishedDate": "2019-04-01T14:29Z" } } }
Loading...
Loading...
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.