# CVE-2021-20218: Improper Limitation of a Pathname to a Restricted Directory in Fabric8 Kubernetes Client

- Severity: High 7.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.31%, higher than 71% of CVEs (2026-12-01)
- Published: 2021-03-16T21:00:32.000Z
- Modified: 2026-06-17T03:33:29.460Z
- Also known as: GHSA-jwh2-ffg4-48xc
- Weaknesses: CWE-22
- Assigned by: redhat

## 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

(As written by CVE List.)

## Affected

- fabric8-kubernetes-client: kubernetes-client-4.2.0 and after
- io.fabric8:kubernetes-client (Maven): from 4.2.0 before 4.7.2; from 4.8.0 before 4.11.2; from 4.12.0 before 4.13.2; from 5.0.0 before 5.0.2
- redhat kubernetes-client: from 4.2.0 before 4.7.2; from 4.8.0 before 4.11.2; from 4.12.0 before 4.13.2; from 5.0.0 before 5.0.2
- redhat a-mq_online: no versions given
- redhat build_of_quarkus: no versions given
- redhat codeready_studio: 12.0
- redhat descision_manager: 7.0
- redhat integration_camel_k: no versions given
- redhat jboss_fuse: 7.0.0
- redhat openshift_container_platform: 3.11
- redhat process_automation: 7.0

## Every score

- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:P`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1923405> (issue-tracking, vendor-advisory, web)
- <https://github.com/fabric8io/kubernetes-client/issues/2715> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-20218> (advisory)

## Sources

- CVE List: [CVE-2021-20218](https://www.cve.org/CVERecord?id=CVE-2021-20218), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-jwh2-ffg4-48xc](https://github.com/advisories/GHSA-jwh2-ffg4-48xc), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-20218](https://nvd.nist.gov/vuln/detail/CVE-2021-20218), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-20218 · Whole record: https://cve.day/CVE-2021-20218.json · Rebuilt by cve.day 2026-11-25T22:58:00.309Z
