{"schemaVersion":4,"id":"CVE-2021-20218","aliases":["GHSA-jwh2-ffg4-48xc"],"status":"published","duplicateOf":null,"title":null,"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","dates":{"published":"2021-03-16T21:00:32.000Z","modified":"2024-08-03T17:30:07.581Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.4,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","exploitability":5.6,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01312,"percentile":0.71658,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.01312},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01312,"percentile":0.71658}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01312,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01312,"percentile":0.71658}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"io.fabric8","product":"kubernetes-client","name":"io.fabric8:kubernetes-client","label":"kubernetes-client","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/io.fabric8/kubernetes-client","purlType":"maven","versions":[{"text":"≥ 4.2.0, < 4.7.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"4.2.0","startInclusive":true,"end":"4.7.2","endInclusive":false}},{"text":"≥ 4.8.0, < 4.11.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"4.8.0","startInclusive":true,"end":"4.11.2","endInclusive":false}},{"text":"≥ 4.12.0, < 4.13.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"4.12.0","startInclusive":true,"end":"4.13.2","endInclusive":false}},{"text":"≥ 5.0.0, < 5.0.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"5.0.0","startInclusive":true,"end":"5.0.2","endInclusive":false}}],"versionsText":"≥ 4.2.0, < 4.7.2 | ≥ 4.8.0, < 4.11.2 | ≥ 4.12.0, < 4.13.2 | ≥ 5.0.0, < 5.0.2","eol":null,"hubHref":null},{"vendor":"redhat","product":"a-mq_online","name":"a-mq online","label":"a-mq_online","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"unspecified"}}],"versionsText":"na","eol":null,"hubHref":"/vendor/redhat/a-mq_online"},{"vendor":"redhat","product":"build_of_quarkus","name":"build of quarkus","label":"build_of_quarkus","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"unspecified"}}],"versionsText":"na","eol":null,"hubHref":"/vendor/redhat/build_of_quarkus"},{"vendor":"redhat","product":"codeready_studio","name":"codeready studio","label":"codeready_studio","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"12.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"12.0"}}],"versionsText":"12.0","eol":null,"hubHref":"/vendor/redhat/codeready_studio"},{"vendor":"redhat","product":"descision_manager","name":"descision manager","label":"descision_manager","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"7.0"}}],"versionsText":"7.0","eol":null,"hubHref":"/vendor/redhat/descision_manager"},{"vendor":"redhat","product":"integration_camel_k","name":"integration camel k","label":"integration_camel_k","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"unspecified"}}],"versionsText":"na","eol":null,"hubHref":"/vendor/redhat/integration_camel_k"},{"vendor":"redhat","product":"jboss_fuse","name":"jboss fuse","label":"jboss_fuse","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"7.0.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"7.0.0"}}],"versionsText":"7.0.0","eol":null,"hubHref":"/vendor/redhat/jboss_fuse"},{"vendor":"redhat","product":"kubernetes-client","name":"kubernetes-client","label":"kubernetes-client","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.2.0, < 4.7.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"4.2.0","startInclusive":true,"end":"4.7.2","endInclusive":false}},{"text":"≥ 4.8.0, < 4.11.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"4.8.0","startInclusive":true,"end":"4.11.2","endInclusive":false}},{"text":"≥ 4.12.0, < 4.13.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"4.12.0","startInclusive":true,"end":"4.13.2","endInclusive":false}},{"text":"≥ 5.0.0, < 5.0.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"5.0.0","startInclusive":true,"end":"5.0.2","endInclusive":false}}],"versionsText":"≥ 4.2.0, < 4.7.2 | ≥ 4.8.0, < 4.11.2 | ≥ 4.12.0, < 4.13.2 | ≥ 5.0.0, < 5.0.2","eol":null,"hubHref":"/vendor/redhat/kubernetes-client"},{"vendor":"redhat","product":"openshift_container_platform","name":"openshift container platform","label":"openshift_container_platform","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"3.11","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"3.11"}}],"versionsText":"3.11","eol":null,"hubHref":"/vendor/redhat/openshift_container_platform"},{"vendor":"redhat","product":"process_automation","name":"process automation","label":"process_automation","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"7.0"}}],"versionsText":"7.0","eol":null,"hubHref":"/vendor/redhat/process_automation"}],"affectedCount":10,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1923405","label":"bugzilla.redhat.com/show_bug.cgi?id=1923405","hostname":"bugzilla.redhat.com","tags":["X Refsource MISC","WEB","Issue Tracking","Vendor Advisory"]},{"url":"https://github.com/fabric8io/kubernetes-client/issues/2715","label":"github.com/fabric8io/kubernetes-client/issues/2715","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20218","label":"nvd.nist.gov/vuln/detail/CVE-2021-20218","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["RHSA-2021:1006"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-03-16T21:00:32.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T17:30:07.581Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 7.4 (NVD); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)","nextStep":"Check applicability and the vendor advisory: no fix release is recorded here","rank":[0,0,0,0,1,74],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.01312,"stale":false,"promoted":null},{"type":"cvss","source":"osv_maven","date":"2024-08-03T17:30:07.581Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2024-08-03T17:30:07.581Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2024-08-03T17:30:07.581Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.8,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:P","version":"2.0"}],"epss":{"value":0.01312,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T06:02:28.822Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T06:02:29.295Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T06:02:29.506Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T06:00:56.363Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T06:02:27.202Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T06:02:26.240Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T06:25:47.474Z","stale":false,"partial":false}}