CVE-2021-25738 Code exec via yaml parsing
Attackers can execute arbitrary code by supplying malicious YAML to the Kubernetes Java Client library.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-25738?
CVE-2021-25738 is a medium-severity unsafe deserialization vulnerability in Kubernetes Java Client, published on 11 Oct 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Loading specially-crafted yaml with the Kubernetes Java Client library can lead to code execution.
Which versions are affected by CVE-2021-25738?
2 open source packages ship an affected version, including io.kubernetes:client-java. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
io.kubernetes:client-java Maven | All versions | 11.0.1 |
io.kubernetes:client-java Maven | All versions | 11.0.1 |
Products include Kubernetes Java.
How do I fix CVE-2021-25738?
Upgrade io.kubernetes:client-java to 11.0.1 or later.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2021-25738 being exploited?
There is no known exploitation of CVE-2021-25738 in the wild and no public exploit code.
Other vulnerabilities in Kubernetes Java Client
Sources
Also known as GHSA-m8wh-mqgf-rr8g.