Advisory

GHSA-g42g-737j-qx6j

Also known as: CVE-2021-25735, GO-2022-0907

Summary

Access Restriction Bypass in kube-apiserver

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-05-28 19:49 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

k8s.io/kubernetes

Go · All systems

Affected

  • introduced 1.20.0, fixed 1.20.6 (semver)

Fixed versions

1.20.6

Fix

k8s.io/kubernetes

Go · All systems

Affected

  • introduced 1.19.0, fixed 1.19.10 (semver)

Fixed versions

1.19.10

Fix

k8s.io/kubernetes

Go · All systems

Affected

  • introduced 0, fixed 1.18.18 (semver)

Fixed versions

1.18.18

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences