{"schemaVersion":3,"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.70239,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00: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":0.70239}],"last30":[{"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":0.70239}]},"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 ('Path Traversal')","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},{"text":"≥ 4.8.0, < 4.11.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.12.0, < 4.13.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.0.2","noFixRecorded":false,"fixedIn":null}],"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}],"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}],"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}],"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}],"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}],"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}],"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},{"text":"≥ 4.8.0, < 4.11.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.12.0, < 4.13.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.0.2","noFixRecorded":false,"fixedIn":null}],"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}],"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}],"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}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T15:48:01.713Z","stale":false,"partial":false}}