{"id":"CVE-2021-20218","aliases":["CVE-2021-20218","GHSA-jwh2-ffg4-48xc"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Limitation of a Pathname to a Restricted Directory in Fabric8 Kubernetes Client","summary":"A flaw was found in the fabric8 kubernetes-client in version 4.2.0 and after. This flaw allows a malicious pod/container to cause applications using the fabric8 kubernetes-client `copy` command to extract files outside the working path. The highest threat from this vulnerability is to integrity and system availability. This has been fixed in kubernetes-client-4.13.2 kubernetes-client-5.0.2 kubernetes-client-4.11.2 kubernetes-client-4.7.2","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A flaw was found in the fabric8 kubernetes-client in version 4.2.0 and after. This flaw allows a malicious pod/container to cause applications using the fabric8 kubernetes-client `copy` command to extract files outside the working path. The highest threat from this vulnerability is to integrity and system availability. This has been fixed in kubernetes-client-4.13.2 kubernetes-client-5.0.2 kubernetes-client-4.11.2 kubernetes-client-4.7.2","source":"cvelist"},{"lang":"es","text":"Se encontró un fallo en fabric8 kubernetes-client en versión 4.2.0 y posteriores.&#xa0;Este fallo permite a un pod/container malicioso causar que unas aplicaciones que usan el comando \"copy\" de fabric8 kubernetes-client extraigan archivos fuera de la ruta de trabajo.&#xa0;La mayor amenaza de esta vulnerabilidad es la integridad y la disponibilidad del sistema.&#xa0;Esto ha sido corregido en kubernetes-client-4.13.2 kubernetes-client-5.0.2 kubernetes-client-4.11.2 kubernetes-client-4.7.2","source":"nvd"}],"published":"2021-03-16T21:00:32.000Z","modified":"2026-06-17T03:33:29.460Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","score":7.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","score":7.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:P","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"kubernetes-client-4.2.0 and after","status":"affected"}],"product":"fabric8-kubernetes-client","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.2.0","status":"affected","fixed":"4.7.2"}],"ecosystem":"Maven","package":"io.fabric8:kubernetes-client","purl":"pkg:maven/io.fabric8/kubernetes-client","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.8.0","status":"affected","fixed":"4.11.2"}],"ecosystem":"Maven","package":"io.fabric8:kubernetes-client","purl":"pkg:maven/io.fabric8/kubernetes-client","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.12.0","status":"affected","fixed":"4.13.2"}],"ecosystem":"Maven","package":"io.fabric8:kubernetes-client","purl":"pkg:maven/io.fabric8/kubernetes-client","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.0.2"}],"ecosystem":"Maven","package":"io.fabric8:kubernetes-client","purl":"pkg:maven/io.fabric8/kubernetes-client","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.2.0","fixed":"4.7.2"},{"status":"affected","introduced":"4.8.0","fixed":"4.11.2"},{"status":"affected","introduced":"4.12.0","fixed":"4.13.2"},{"status":"affected","introduced":"5.0.0","fixed":"5.0.2"}],"vendor":"redhat","product":"kubernetes-client","cpe":"cpe:2.3:a:redhat:kubernetes-client:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"redhat","product":"a-mq_online","cpe":"cpe:2.3:a:redhat:a-mq_online:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"redhat","product":"build_of_quarkus","cpe":"cpe:2.3:a:redhat:build_of_quarkus:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"12.0"}],"vendor":"redhat","product":"codeready_studio","cpe":"cpe:2.3:a:redhat:codeready_studio:12.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"7.0"}],"vendor":"redhat","product":"descision_manager","cpe":"cpe:2.3:a:redhat:descision_manager:7.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"redhat","product":"integration_camel_k","cpe":"cpe:2.3:a:redhat:integration_camel_k:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"7.0.0"}],"vendor":"redhat","product":"jboss_fuse","cpe":"cpe:2.3:a:redhat:jboss_fuse:7.0.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"3.11"}],"vendor":"redhat","product":"openshift_container_platform","cpe":"cpe:2.3:a:redhat:openshift_container_platform:3.11:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"7.0"}],"vendor":"redhat","product":"process_automation","cpe":"cpe:2.3:a:redhat:process_automation:7.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1923405","tags":["issue-tracking","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/fabric8io/kubernetes-client/issues/2715","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20218","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-20218","url":"https://www.cve.org/CVERecord?id=CVE-2021-20218","licence":"CVE Terms of Use","modified":"2024-08-03T17:30:07.581Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jwh2-ffg4-48xc","url":"https://github.com/advisories/GHSA-jwh2-ffg4-48xc","licence":"CC-BY-4.0","modified":"2023-11-08T04:04:35.648Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-20218","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20218","licence":"Public domain","modified":"2026-06-17T03:33:29.460Z"}],"updatedAt":"2026-11-25T22:58:00.309Z","epss":{"score":0.01312,"percentile":0.71513,"date":"2026-12-01T12:00:22.000Z"}}