Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-5187

MEDIUM 6.7EPSS 50%

Nodes can delete themselves by adding an OwnerReference

Also known as GHSA-4x4m-3c2p-qppc, GO-2025-3915

Mitigation

  • Upgrade k8s.io/kubernetes to one of 1.31.12, 1.32.8, 1.33.4 (or later in the same release line).

Who should check

  • Projects that depend on Go package k8s.io/kubernetes (< 1.31.12)
  • Anyone running Kubernetes >= v1.31.0, <= v1.31.11; >= v1.32.0, <= v1.32.7; >= v1.33.0, <= v1.33.3

Vulnerability facts

Affected
k8s.io/kubernetes < 1.31.12
Fixed in
1.31.12, 1.32.8, 1.33.4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
6.7 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: High
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: Low
EPSS
0.73% chance of exploitation in 30 days (percentile 50, 2026-11-26)
CWE
CWE-863
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
Go k8s.io/kubernetes< 1.31.121.31.12, 1.32.8, 1.33.4osv
Kubernetes>= v1.31.0, <= v1.31.11; >= v1.32.0, <= v1.32.7; >= v1.33.0, <= v1.33.3—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-5187. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-5187.md
Affected: k8s.io/kubernetes < 1.31.12
Fixed in: 1.31.12, 1.32.8, 1.33.4

Steps:
1. Search this machine and project for k8s.io/kubernetes (Go), Kubernetes: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-5187 being exploited?

There is no confirmed exploitation: CVE-2025-5187 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.73% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-5187?

Medium: CVSS 6.7 (v3.1, scored by CNA). Remote, login needed.

Which versions are affected by CVE-2025-5187?

k8s.io/kubernetes < 1.31.12.

Is there a fix for CVE-2025-5187?

Yes. Fixed in 1.31.12, 1.32.8, 1.33.4. Upgrade k8s.io/kubernetes to one of 1.31.12, 1.32.8, 1.33.4 (or later in the same release line).

How do I check if I'm affected by CVE-2025-5187?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors