Improper Limitation of a Pathname to a Restricted Directory in Fabric8 Kubernetes ClientGHSA-jwh2-ffg4-48xc
HIGHGHSA-jwh2-ffg4-48xc 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.
EPSS Exploitation Probability
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
io.fabric8:kubernetes-client☕io.fabric8:kubernetes-client☕io.fabric8:kubernetes-client☕io.fabric8:kubernetes-clientReal-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
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | io.fabric8:kubernetes-client | ≥ 4.2.0&&< 4.7.2 | 4.7.2io.fabric8:kubernetes-client:4.7.2 |
| ☕Maven | io.fabric8:kubernetes-client | ≥ 4.8.0&&< 4.11.2 | 4.11.2io.fabric8:kubernetes-client:4.11.2 |
| ☕Maven | io.fabric8:kubernetes-client | ≥ 4.12.0&&< 4.13.2 | 4.13.2io.fabric8:kubernetes-client:4.13.2 |
| ☕Maven | io.fabric8:kubernetes-client | ≥ 5.0.0&&< 5.0.2 | 5.0.2io.fabric8:kubernetes-client:5.0.2 |
Affected Products
a-mq onlineredhatbuild of quarkusredhatcodeready studioredhatdescision managerredhatintegration camel kredhatjboss fuseredhatDetection & mitigation playbook
Open-source dependencyDetect
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.
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 GHSA-jwh2-ffg4-48xc is resolved across your whole dependency graph.
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.
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.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat AMQ Online 1.7.0 GA | kubernetes-client | RHSA-2021:0986 |
| Red Hat Fuse 7.10 | kubernetes-client | RHSA-2021:5134 |
| Red Hat Integration | see advisory | RHSA-2021:3205 |
| Red Hat Integration Camel Quarkus 2 | see advisory | RHSA-2021:3207 |
| Red Hat OpenShift Container Platform 4.7 | jenkins-2-plugins-0:4.7.1616671397-1.el8 | RHSA-2021:1006 |
| Red Hat OpenShift Container Platform 4.8 | openshift4/driver-toolkit-rhel8:v4.8.0-202107210116.p0.git.37de0e6.assembly.stream | RHSA-2021:2438 |
| RHDM 7.12.0 | kubernetes-client | RHSA-2022:0297 |
| RHPAM 7.12.0 | kubernetes-client | RHSA-2022:0296 |
Frequently Asked Questions
Is GHSA-jwh2-ffg4-48xc in your dependencies?
Find it across Maven, including transitive dependencies.