{"id":"CVE-2021-20218","aliases":["EUVD-2022-4447","GHSA-jwh2-ffg4-48xc","RHSA-2021:1006"],"status":"published","title":"Improper Limitation of a Pathname to a Restricted Directory in Fabric8 Kubernetes Client","description":"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","severity":{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.01312,"percentile":0.71087,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2021-03-16T21:00:32Z","modified":"2026-10-24T10:50:40Z","fixes":[{"ecosystem":"Maven","package":"io.fabric8:kubernetes-client","fixed_in":["4.7.2","4.11.2","4.13.2","5.0.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"io.fabric8:kubernetes-client","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.2.0"},{"last_affected":"4.7.1"},{"fixed":"4.7.2"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"io.fabric8:kubernetes-client","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.8.0"},{"last_affected":"4.11.1"},{"fixed":"4.11.2"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"io.fabric8:kubernetes-client","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.12.0"},{"last_affected":"4.13.1"},{"fixed":"4.13.2"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"io.fabric8:kubernetes-client","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"last_affected":"5.0.1"},{"fixed":"5.0.2"}]}]},{"source":"osv","ecosystem":"Maven","package":"io.fabric8:kubernetes-client","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.2.0"},{"fixed":"4.7.2"}]}],"versions":["4.2.0","4.2.1","4.2.2","4.3.0","4.3.1","4.4.0","4.4.1","4.4.2","4.5.0","4.5.1","4.5.2","4.6.0","4.6.1","4.6.2","4.6.3","4.6.4","4.7.0","4.7.1"]},{"source":"osv","ecosystem":"Maven","package":"io.fabric8:kubernetes-client","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.8.0"},{"fixed":"4.11.2"}]}],"versions":["4.10.0","4.10.1","4.10.2","4.10.3","4.11.0","4.11.1","4.8.0","4.9.0","4.9.1","4.9.2"]},{"source":"osv","ecosystem":"Maven","package":"io.fabric8:kubernetes-client","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.12.0"},{"fixed":"4.13.2"}]}],"versions":["4.12.0","4.13.0","4.13.1"]},{"source":"osv","ecosystem":"Maven","package":"io.fabric8:kubernetes-client","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"5.0.2"}]}],"versions":["5.0.0","5.0.1"]},{"source":"osv","ecosystem":"Red Hat:openshift:4.7::el7","package":"cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.20.2-4.rhaos4.7.gitd5a999a.el7"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:openshift:4.7::el7","package":"cri-o-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.20.2-4.rhaos4.7.gitd5a999a.el7"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:openshift:4.7::el8","package":"cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.20.2-4.rhaos4.7.gitd5a999a.el8"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:openshift:4.7::el8","package":"cri-o-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.20.2-4.rhaos4.7.gitd5a999a.el8"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:openshift:4.7::el8","package":"cri-o-debugsource","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.20.2-4.rhaos4.7.gitd5a999a.el8"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:openshift:4.7::el7","package":"openshift-clients","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.7.0-202103251046.p0.git.3957.c4da68b.el7"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:openshift:4.7::el7","package":"openshift-clients-redistributable","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.7.0-202103251046.p0.git.3957.c4da68b.el7"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:openshift:4.7::el8","package":"openshift-clients","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.7.0-202103251046.p0.git.3957.c4da68b.el8"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:openshift:4.7::el8","package":"openshift-clients-redistributable","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.7.0-202103251046.p0.git.3957.c4da68b.el8"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:openshift:4.7::el8","package":"jenkins-2-plugins","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.7.1616671397-1.el8"}]}],"bundled":3}],"products":[{"vendor":"redhat","product":"a-mq_online"},{"vendor":"redhat","product":"build_of_quarkus"},{"vendor":"redhat","product":"codeready_studio"},{"vendor":"redhat","product":"descision_manager"},{"vendor":"redhat","product":"integration_camel_k"},{"vendor":"redhat","product":"jboss_fuse"},{"vendor":"redhat","product":"kubernetes-client"},{"vendor":"redhat","product":"openshift_container_platform"},{"vendor":"redhat","product":"process_automation"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1923405","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Vendor Advisory","report","web"]},{"url":"https://github.com/fabric8io/kubernetes-client/issues/2715","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","article"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20218","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-jwh2-ffg4-48xc"},{"url":"https://access.redhat.com/errata/RHSA-2021:1006","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1921650","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1944016","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_1006.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-3114","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1918750","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3114","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3114","tags":["advisory"]},{"url":"https://groups.google.com/g/golang-announce/c/mperVMGa98w","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-3121","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3121","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3121","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-20218","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-20218","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2021-20218","description":"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","status":"published","published":"2021-03-16T21:00:32Z","modified":"2024-08-03T17:30:07.581Z","cwes":["CWE-22"],"updated_at":"2026-11-02T14:32:55.564736Z"}],"euvd":[{"id":"EUVD-2022-4447","description":"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","status":"published","published":"2021-03-16T21:00:32Z","modified":"2024-08-03T17:30:07Z","updated_at":"2026-11-03T03:25:09.355483Z"}],"ghsa":[{"id":"GHSA-jwh2-ffg4-48xc","title":"Improper Limitation of a Pathname to a Restricted Directory in Fabric8 Kubernetes Client","description":"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","status":"published","published":"2022-05-24T17:44:37Z","modified":"2023-01-27T05:02:35Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:36:19.144959Z"}],"nvd":[{"id":"CVE-2021-20218","description":"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","status":"published","published":"2021-03-16T21:15:10.93Z","modified":"2026-06-17T03:33:29.46Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5.8,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:06:50.805771Z"}],"osv":[{"id":"CVE-2021-20218","description":"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","status":"published","published":"2021-03-16T21:15:10.93Z","modified":"2026-10-24T10:50:40.21146825Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:17.663289Z"},{"id":"GHSA-jwh2-ffg4-48xc","title":"Improper Limitation of a Pathname to a Restricted Directory in Fabric8 Kubernetes Client","description":"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","status":"published","published":"2022-05-24T17:44:37Z","modified":"2023-11-08T04:04:35.648855Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:51.10002Z"},{"id":"RHSA-2021:1006","title":"Red Hat Security Advisory: OpenShift Container Platform 4.7.5 security and bug fix update","status":"published","published":"2024-09-18T04:16:53Z","modified":"2026-08-20T10:02:19Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:08.071325Z"}]}}
