cve.bz

CVE-2021-20218 redhat: Path traversal

7.4 highEPSS 1.3%Fix available

High (7.4) in redhat. EPSS 1.3% estimated probability of exploitation activity in the next 30 days. Fixed in io.fabric8:kubernetes-client 4.11.2, 4.13.2, 4.7.2.

On this page
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

Severity

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
EPSS
1.3% (unchanged from 1.3% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 71st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-20218 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20218?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20218?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-20218 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:kubernetes-clientfrom 4.2.0 before 4.7.2
redhat:kubernetes-clientfrom 4.8.0 before 4.11.2
redhat:kubernetes-clientfrom 4.12.0 before 4.13.2
redhat:kubernetes-clientfrom 5.0.0 before 5.0.2
redhat:codeready_studio12.0
redhat:descision_manager7.0
redhat:jboss_fuse7.0.0
redhat:openshift_container_platform3.11
redhat:process_automation7.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-jwh2-ffg4-48xcMavenio.fabric8:kubernetes-client>=4.2.0 <4.7.24.7.2
GHSA-jwh2-ffg4-48xcMavenio.fabric8:kubernetes-client>=4.8.0 <4.11.24.11.2
GHSA-jwh2-ffg4-48xcMavenio.fabric8:kubernetes-client>=4.12.0 <4.13.24.13.2
GHSA-jwh2-ffg4-48xcMavenio.fabric8:kubernetes-client>=5.0.0 <5.0.25.0.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatopenshift:4.7::el7cri-o, cri-o-debuginfo0:1.20.2-4.rhaos4.7.gitd5a999a.el7RHSA-2021:1006
Red Hatopenshift:4.7::el7openshift-clients, openshift-clients-redistributable0:4.7.0-202103251046.p0.git.3957.c4da68b.el7RHSA-2021:1006
Red Hatopenshift:4.7::el8cri-o, cri-o-debuginfo, cri-o-debugsource0:1.20.2-4.rhaos4.7.gitd5a999a.el8RHSA-2021:1006
Red Hatopenshift:4.7::el8jenkins-2-plugins0:4.7.1616671397-1.el8RHSA-2021:1006
Red Hatopenshift:4.7::el8openshift-clients, openshift-clients-redistributable0:4.7.0-202103251046.p0.git.3957.c4da68b.el8RHSA-2021:1006

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

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.

ProductPackageStateAdvisory
Red Hat AMQ Online 1.7.0 GAkubernetes-clientFixed 2021-03-25RHSA-2021:0986
Red Hat Fuse 7.10kubernetes-clientFixed 2021-12-14RHSA-2021:5134
Red Hat IntegrationFixed 2021-08-18RHSA-2021:3205
Red Hat Integration Camel Quarkus 2Fixed 2021-08-18RHSA-2021:3207
Red Hat OpenShift Container Platform 4.7jenkins-2-plugins-0:4.7.1616671397-1.el8Fixed 2021-04-05RHSA-2021:1006
Red Hat OpenShift Container Platform 4.8openshift4/driver-toolkit-rhel8:v4.8.0-202107210116.p0.git.37de0e6.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat OpenShift Container Platform 4.8openshift4/egress-router-cni-rhel8:v4.8.0-202106291913.p0.git.016bea1.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat OpenShift Container Platform 4.8openshift4/network-tools-rhel8:v4.8.0-202106291913.p0.git.5ac3739.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat OpenShift Container Platform 4.8openshift4/ose-aws-ebs-csi-driver-rhel8:v4.8.0-202106291913.p0.git.8c036e4.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat OpenShift Container Platform 4.8openshift4/ose-aws-ebs-csi-driver-rhel8-operator:v4.8.0-202106291913.p0.git.d1fe616.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat OpenShift Container Platform 4.8openshift4/ose-aws-machine-controllers:v4.8.0-202107131617.p0.git.4c66f3d.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat OpenShift Container Platform 4.8openshift4/ose-aws-pod-identity-webhook-rhel8:v4.8.0-202107081650.p0.git.2b8eee2.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat OpenShift Container Platform 4.8openshift4/ose-azure-disk-csi-driver-rhel8:v4.8.0-202106291913.p0.git.2d461b3.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat OpenShift Container Platform 4.8openshift4/ose-azure-disk-csi-driver-rhel8-operator:v4.8.0-202106291913.p0.git.d3a3c29.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat Integration Camel K 1kubernetes-clientAffected
Red Hat Integration Camel Quarkus 1kubernetes-clientAffected
Red Hat JBoss Fuse 6kubernetes-clientNot affected
Red Hat OpenShift Container Platform 3.11jenkins-2-pluginsWill not fix
Red Hat OpenShift Container Platform 3.11openshift3/ose-logging-elasticsearch5Will not fix
Red Hat OpenShift Container Platform 4openshift4/ose-logging-elasticsearch5Will not fix
136 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-20218.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON