CVE-2021-25738 Code exec via yaml parsing

Medium 6.7 Published Updated

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.

Weakness: CWE-502, CWE-20

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.

PackageAffectedFixed in
io.kubernetes:client-java MavenAll versions11.0.1
io.kubernetes:client-java MavenAll versions11.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.

Sources

Also known as GHSA-m8wh-mqgf-rr8g.

Is CVE-2021-25738 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free