CVE-2021-25738 — client-java
MEDIUMCVE-2021-25738 is a medium-severity (CVSS 6.7) Improper Input Validation vulnerability in io.kubernetes:client-java. A fix is available for io.kubernetes:client-java — see the affected versions and patch details below.
Code injection in Kubernetes Java Client
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2021-25738 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 385,386 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
io.kubernetes:client-javaReal-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
Loading specially-crafted yaml with the Kubernetes Java Client library can lead to code execution.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | io.kubernetes:client-java | all versions | 11.0.1io.kubernetes:client-java:11.0.1 |
Affected Products
javakubernetesDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for io.kubernetes:client-java, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update io.kubernetes:client-java to 11.0.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-25738 is resolved across your whole dependency graph.
Workarounds
Do not deserialise data from untrusted sources: where the format allows it, restrict deserialisation to an explicit allowlist of expected types, and prefer a data-only format (JSON, Protobuf) over one that can reconstruct arbitrary objects until you can upgrade.
Frequently Asked Questions
Is CVE-2021-25738 in your dependencies?
Find it across Maven, including transitive dependencies.