Skip to main content
100%

check if any JVMs in kubernetes cluster are vulnerable to log4shell CVE-2021-44228. only checks java versions for those exploitable using the initial exploit. be aware that there are other exploits that can work on any java version.

✓ Published0🌍 Public
Aaharonh
Last edited Dec 15, 2021
Created on Dec 13, 2021

This visualization scans every pod in a Kubernetes cluster to determine whether its JVM version is vulnerable to CVE-2021-44228 (Log4Shell). It shows a tabular output of pod namespace, name, container, Java version, and a boolean vulnerability flag, skipping pods that have succeeded or lack the Java executable. The script uses the Kubernetes Python client’s `CoreV1Api` to list pods and `connect_get_namespaced_pod_exec` with a streaming response to run `java -version` in each container, parsing the stderr with regex to extract version numbers. It applies a hard-coded threshold check for Java 6, 7, 8, and 11 versions, explicitly noting that only the initial exploit vector is covered.

AI-generated description

Similar vizzes