NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
☕
☕ Maven
Not in CISA KEV
HIGH severity

CVE-2021-20218 — kubernetes-client

HIGH

CVE-2021-20218 is a high-severity (CVSS 7.4) Path Traversal vulnerability in io.fabric8:kubernetes-client. A fix is available for io.fabric8:kubernetes-client — see the affected versions and patch details below.

Improper Limitation of a Pathname to a Restricted Directory in Fabric8 Kubernetes Client

Also known asGHSA-jwh2-ffg4-48xc
Published
Updated
Affected
4 pkgs
Patched
4 / 4
Exploits
None indexed
Exploitation data as of Nov 10, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
1.3%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs71th percentile — riskier than 71% of all scored CVEsHighest risk
0.09%0.67%1.24%1.81%0.6%1.3%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

4 pkgs affected
☕io.fabric8:kubernetes-client☕io.fabric8:kubernetes-client☕io.fabric8:kubernetes-client☕io.fabric8:kubernetes-client

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

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

Affected Packages

4 total 4 fixed
EcosystemPackageVulnerable rangeFix
☕Mavenio.fabric8:kubernetes-client≥ 4.2.0&&< 4.7.24.7.2io.fabric8:kubernetes-client:4.7.2
☕Mavenio.fabric8:kubernetes-client≥ 4.8.0&&< 4.11.24.11.2io.fabric8:kubernetes-client:4.11.2
☕Mavenio.fabric8:kubernetes-client≥ 4.12.0&&< 4.13.24.13.2io.fabric8:kubernetes-client:4.13.2
☕Mavenio.fabric8:kubernetes-client≥ 5.0.0&&< 5.0.25.0.2io.fabric8:kubernetes-client:5.0.2

Affected Products

9 products · 12 configurations
Application
a-mq onlineredhat
all
Application
build of quarkusredhat
all
Application
codeready studioredhat
1 version
12.0
Application
descision managerredhat
1 version
7.0
Application
integration camel kredhat
all
Application
jboss fuseredhat
1 version
7.0.0

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for io.fabric8:kubernetes-client, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update io.fabric8:kubernetes-client to 4.7.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-20218 is resolved across your whole dependency graph.

  3. Workarounds

    Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate

In OpenShift Container Platform 4 (OCP) there are no plans to maintain the ose-logging-elasticsearch5 container, therefore it has been marked wontfix at this time and maybe fixed in a future update. Red Hat CodeReady WorkSpaces 2.7.0 does not ship fabric8-kubernetes-client and is therefore not affected by this flaw.

ProductFixed inAdvisory
Red Hat AMQ Online 1.7.0 GAkubernetes-clientRHSA-2021:0986
Red Hat Fuse 7.10kubernetes-clientRHSA-2021:5134
Red Hat Integrationsee advisoryRHSA-2021:3205
Red Hat Integration Camel Quarkus 2see advisoryRHSA-2021:3207
Red Hat OpenShift Container Platform 4.7jenkins-2-plugins-0:4.7.1616671397-1.el8RHSA-2021:1006
Red Hat OpenShift Container Platform 4.8openshift4/driver-toolkit-rhel8:v4.8.0-202107210116.p0.git.37de0e6.assembly.streamRHSA-2021:2438
RHDM 7.12.0kubernetes-clientRHSA-2022:0297
RHPAM 7.12.0kubernetes-clientRHSA-2022:0296

Frequently Asked Questions

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
O3 Security · Impact-Aware SCA

Is CVE-2021-20218 in your dependencies?

Find it across Maven, including transitive dependencies.

CVE-2021-20218: kubernetes-client — Fixed in 4.7.2