Subscribe to the Non-Human & AI Identity Journal

Notifications
Clear all

K3s storage traversal: what IAM and platform teams need to know


(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 4368
Topic starter  

TL;DR: CVE-2025-62878 lets authenticated Kubernetes users turn Rancher Local Path Provisioner path templates into arbitrary host filesystem access, with exploitability ranging from namespace-level PVC control to cluster-scoped StorageClass changes according to Orca Security. The real lesson is that default storage backends can become host-level identity boundaries when templated paths trust user-controlled metadata.

NHIMG editorial — based on content published by Orca Security: an analysis of CVE-2025-62878 in Rancher Local Path Provisioner

By the numbers:

Questions worth separating out

Q: What breaks when a Kubernetes storage backend trusts user-controlled path templates?

A: The storage backend stops confining volume operations to the intended directory and can redirect reads, writes, or deletions onto the host filesystem.

Q: Why do storage-class permissions matter so much in Kubernetes security?

A: StorageClass permissions matter because they can define how cluster-scoped storage behaves for every namespace that uses it.

Q: How do security teams know if a PVC template is exposing host paths?

A: Look for StorageClass fields that reference user-controlled PVC metadata, then test whether those values can produce traversal sequences or unexpected base-path escapes.

Practitioner guidance

  • Upgrade the provisioner immediately Move every affected deployment to Local Path Provisioner v0.0.34 or a K3s release that bundles the fix.
  • Review every StorageClass path template Inventory StorageClasses for pathPattern values that reference annotations or labels, then remove user-controlled fields where possible.
  • Restrict storage-class creation and edits Limit StorageClass modification to trusted cluster administrators and audit who can create or patch cluster-scoped storage objects.

What's in the full article

Orca Security's full research covers the operational detail this post intentionally leaves for the source:

  • Exact malicious YAML patterns showing how traversal sequences are injected into pathPattern values
  • Host and Kubernetes audit indicators for detecting unsafe volume resolution and ConfigMap tampering
  • Remediation timing guidance for upgrading bundled provisioners across K3s and downstream distributions
  • Background on how the helper pod reaches the host filesystem through hostPath rather than privileged container settings

👉 Read Orca Security's analysis of CVE-2025-62878 in K3s storage →

K3s storage traversal: what IAM and platform teams need to know?

Explore further

View Full Forum →  |  NHI Foundation Course →



   
Quote
Share: