CVE-2021-25735
JSON

6.5medium

Validating Admission Webhook does not observe some previous fields

Severity
6.5medium CVSS:3.1 by kubernetes
Exploit likelihood
5.42% (higher than 92% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
kubernetes
Also known as
GHSA-g42g-737j-qx6jGO-2022-0907

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.

Affected

Product or packageVersionsReported by
Kubernetes Kubernetesfrom unspecified up to 1.18.17, from unspecified up to 1.19.9, from unspecified up to 1.20.5, before 1.18.18, from 1.19.0 before 1.19.10, from 1.20.0 before 1.20.6CVE List, NVD
k8s.io/kubernetes (Go)from 1.20.0 before 1.20.6, from 1.19.0 before 1.19.10, before 1.18.18GitHub Advisory Database, Go Vulnerability Database

All scores

kubernetes6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
NVD5.5medium CVSS:2.0AV:N/AC:L/Au:S/C:N/I:P/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database

A vulnerability in Kubernetes kube-apiserver could allow node updates to bypass a Validating Admission Webhook and allow unauthorized node updates. The information that is provided to the admission controller could contain old configurations that overwrite values used for validation. Since the overwriting takes place before the validation, this could lead the admission controller to accept requests that should be blocked. The vulnerability can be exploited when an update action on node resources is performed and an admission controller is in place and configured to validate the action.

Users are only affected by this vulnerability if they are running a Validating Admission Webhook for Nodes that denies admission based partially on the old state of the Node object. It only impacts validating admission plugins that rely on old values in certain fields and does not impact calls from kubelets that go through the built-in NodeRestriction admission plugin.

Go Vulnerability Database

Access Restriction Bypass in kube-apiserver in k8s.io/kubernetes

NVD (es)

Se ha detectado un problema de seguridad en kube-apiserver que podría permitir a las actualizaciones de los nodos omitir un Validating Admission Webhook. Los clusters sólo están afectados por esta vulnerabilidad si ejecutan un Validating Admission Webhook para nodos que deniega la admisión basándose, al menos parcialmente, en el estado antiguo del objeto Node. El Validating Admission Webhook no comprueba algunos campos anteriores.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2021-25735 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-g42g-737j-qx6j changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0907 changed 2026-02-04CC-BY-4.0
NVDCVE-2021-25735 changed 2026-06-17Public domain