Path traversal in Java client for Kubernetes & OpenShift - CVE-2021-20218

 

Path traversal in Java client for Kubernetes & OpenShift - CVE-2021-20218

Published: January 31, 2024


Vulnerability identifier: #VU85950
CSH Severity: Medium
CVSS v4: 8.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-20218
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to malicious pod/container can cause applications using the fabric8 kubernetes-client `copy` command to extract files outside the working path. A remote attacker can send a specially crafted HTTP request and read arbitrary files on the system.


Affected software

Java client for Kubernetes & OpenShift
IBM Cloud Pak for Watson AIOps
Fuse
IBM Observability with Instana

How to mitigate CVE-2021-20218

Install update from vendor's website.

Java client for Kubernetes & OpenShift - addressed in versions 4.7.2, 4.11.2, 4.13.2, 5.0.2
IBM Cloud Pak for Watson AIOps - update to 4.4.0
Fuse - update to 7.10.0
IBM Observability with Instana - update to 265

External References

Related Security Bulletins