All Products
Search
Document Center

Container Service for Kubernetes:Security bulletin for CVE-2025-5187

Last Updated:Jun 21, 2026

The Kubernetes community recently disclosed a security vulnerability, CVE-2025-5187. An attacker with permissions to modify a node can exploit a vulnerability in the NodeRestriction admission controller. By adding ownerReferences metadata to a node that points to a specific resource, the attacker can trigger the deletion of the node object. If the target resource defined in the ownerReferences does not exist or is later deleted, the garbage collection mechanism removes the corresponding node object.

By default, users who can create or update node objects in a cluster cannot delete them. Because the NodeRestriction admission controller fails to prevent updates to a node's ownerReferences, an attacker can delete and recreate a compromised node. This allows an attacker to bypass the restrictions that the NodeRestriction admission controller enforces on a node's taints or labels, recreate the node with a modified configuration, and gain control over Pods on that node.

This vulnerability is rated Medium, with a CVSS score of 6.7. For more information from the Kubernetes community, see #133471.

Affected versions

This vulnerability affects the following community versions of kube-apiserver:

  • kube-apiserver: <= v1.31.11

  • kube-apiserver: <= v1.32.7

  • kube-apiserver: <= v1.33.3

Container Service for Kubernetes (ACK) has patched this vulnerability in clusters that run version 1.32.7 or 1.33.3.

Detection

Under normal conditions, a kubelet does not initiate requests to modify its own ownerReferences. You can use the API server auditing feature and run the following query on your audit log to check for suspicious updates to node ownerReferences.

ownerReferences and verb: patch and objectRef.resource: nodes

If the query returns no results, no suspicious activity is detected.

Mitigation

Take the following measures to mitigate this vulnerability.

1. Upgrade cluster

Upgrade your cluster to version 1.32.7 or 1.33.3.

To learn about the upgrade process, potential impacts, and important considerations, see Upgrade clusters. For step-by-step instructions, see Manually upgrade ACK clusters.

2. Enable OwnerReferencesPermissionEnforcement

Configure the kube-apiserver component parameters to enable the OwnerReferencesPermissionEnforcement admission controller. This controller protects access to an object's ownerReferences, ensuring that only users with delete permissions for the object can modify it.

To enable this controller, see Customize the parameters of control plane components in ACK Pro clusters.

In the enableAdmissionPlugins parameter field, enter OwnerReferencesPermissionEnforcement.