CVE-2021-25735 Validating Admission Webhook does not observe some previous fields

Medium 6.5 Published Updated

Attackers can bypass Validating Admission Webhooks for Node updates if the webhook relies on previous object state, potentially allowing unauthorized node modifications.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-25735?

CVE-2021-25735 is a medium-severity vulnerability in Kubernetes Kubernetes, published on 6 Sep 2021. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

A security issue was discovered in kube-apiserver that could allow node updates to bypass a Validating Admission Webhook. Clusters are only affected by this vulnerability if they run a Validating Admission Webhook for Nodes that denies admission based at least partially on the old state of the Node object. Validating Admission Webhook does not observe some previous fields.

Weakness: CWE-372

Which versions are affected by CVE-2021-25735?

7 open source packages ship an affected version, including k8s.io/kubernetes. It affects 1 product.

PackageAffectedFixed in
k8s.io/kubernetes GoAll versions1.18.18, 1.19.10, 1.20.6
k8s.io/kubernetes GoAll versions1.18.18
k8s.io/kubernetes GoAll versions1.18.18
k8s.io/kubernetes GoFrom 1.19.01.19.10
k8s.io/kubernetes GoFrom 1.19.01.19.10
k8s.io/kubernetes GoFrom 1.20.01.20.6
1 more packages
k8s.io/kubernetes GoFrom 1.20.01.20.6

Products include Kubernetes Kubernetes.

How do I fix CVE-2021-25735?

Upgrade k8s.io/kubernetes to a fixed version for your release line: 1.18.18, 1.19.10 or 1.20.6.

Is CVE-2021-25735 being exploited?

There is no known exploitation of CVE-2021-25735 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Kubernetes Kubernetes vulnerabilities

Sources

Also known as CLEANSTART-2025-YC51954, DEBIAN-CVE-2021-25735, GHSA-g42g-737j-qx6j, GO-2022-0907.

Is CVE-2021-25735 in your software?

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

Check your SBOMs for free