cve.bz

CVE-2025-5187 kubernetes kubernetes: Incorrect Authorization

6.7 mediumEPSS 0.6%Fix available

Medium (6.7) in kubernetes kubernetes. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in k8s.io/kubernetes 1.31.12, 1.32.8, 1.33.4.

On this page
A vulnerability exists in the NodeRestriction admission controller in Kubernetes clusters where node users can delete their corresponding node object by patching themselves with an OwnerReference to a cluster-scoped resource. If the OwnerReference resource does not exist or is subsequently deleted, the given node object will be deleted via garbage collection.

Severity

CVSS 3.1

6.7 medium
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-08-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-863 Incorrect Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-5187 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-5187?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-5187?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-5187 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Kubernetesfrom v1.31.0 through v1.31.11
Kubernetesfrom v1.32.0 through v1.32.7
Kubernetesfrom v1.33.0 through v1.33.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4x4m-3c2p-qppcGok8s.io/kubernetes<1.31.121.31.12
GHSA-4x4m-3c2p-qppcGok8s.io/kubernetes>=1.32.0-alpha.0 <1.32.81.32.8
GHSA-4x4m-3c2p-qppcGok8s.io/kubernetes>=1.33.0-alpha.0 <1.33.41.33.4
GO-2025-3915Gok8s.io/kubernetes<1.31.12
>=1.32.0-alpha.0 <1.32.8
>=1.33.0-alpha.0 <1.33.4
1.31.12, 1.32.8, 1.33.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14kubernetes1.20.5+really1.20.2-1DEBIAN-CVE-2025-5187
SUSELinux Enterprise Module for Package Hub 15 SP6govulncheck-vulndb0.0.20250918T182144-150000.1.107.1SUSE-SU-2025:03289-1
openSUSELeap 15.6govulncheck-vulndb0.0.20250918T182144-150000.1.107.1SUSE-SU-2025:03289-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSETumbleweedgovulncheck-vulndb0.0.20250918T182144-1.1openSUSE-SU-2025:15566-1

From the distributions' data via OSV.dev: the Debian Security Tracker; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as having a Moderate severity. For a successful attack to take place, the attacker needs to have a high privileged account with enough privileges to create the nodes.

Red Hat's mitigation

This vulnerability can be mitigated by enabling the OwnerReferencesPermissionEnforcement admission controller, which will prevent any user without delete permissions on an object from modifying the OwnerReferences on that object.

Note that this admission controller will apply to all users and object types.

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 4.18openshift4/ose-cluster-kube-apiserver-rhel9-operator:ose-cluster-kube-apiserver-operator-container-v4.18.0-202509100344.p2.gb6ad4b0.assembly.stream.el9Fixed 2025-09-17RHBA-2025:15714
Red Hat OpenShift Container Platform 4.19openshift4/ose-cluster-kube-apiserver-rhel9-operator:ose-cluster-kube-apiserver-operator-container-v4.19.0-202509091807.p2.g80c1fc3.assembly.stream.el9Fixed 2025-09-16RHBA-2025:15694
Red Hat OpenShift Container Platform 4microshiftOut of support scope
Red Hat OpenShift Container Platform 4openshiftFix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-cluster-kube-apiserver-operatorFix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-hyperkubeFix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-hyperkube-rhel9Fix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-kube-proxyFix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-kube-proxy-rhel9Fix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-testsFix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-tests-rhel9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-5187.

References

Check your stackJSON