CVE-2025-62878
criticalpriority · track · 10EPSS 0.006 · 51 %ileexploit · PoCDEEUUSEPSS · scored 2026-10-27
A malicious user can manipulate the parameters.pathPattern to create PersistentVolumes in arbitrary locations on the host node, potentially overwriting sensitive files or gaining access to unintended directories.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
- kinokopio/CVE-2025-62878CVE-2025-62878PoC · poc_in_github
affected products (4)
Products and version ranges known to be affected.
- Go github.com/rancher/local-path-provisioner< 0.0.34osvUSpkg:golang/github.com/rancher/local-path-provisioner
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2026-0344Rancher Local Path Provisioner: Schwachstelle ermöglicht Manipulation von DateienDeutsch2026-02-08csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann eine Schwachstelle in Rancher Local Path Provisioner ausnutzen, um Dateien zu manipulieren.
- GHSA-jr3w-9vfr-c746Local Path Provisioner vulnerable to Path Traversal via parameters.pathPattern2026-02-04ghsa · osvUS
### Impact A malicious user can manipulate the [parameters.pathPattern](https://github.com/rancher/local-path-provisioner/blob/d4f71b4b03a321e9f54be00808e9de42b8bfd35a/provisioner.go#L381) to create PersistentVolumes in arbitrary locations on the host node, potentially overwriting sensitive files or gaining access to unintended directories. Example: ``` apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: > {"apiVersion":"storage.k8s.io/v1","kind":"StorageClass","metadata":{"annotations":{},"name":"local-path"},"provisioner":"rancher.io/local-path","reclaimPolicy":"Delete","volumeBindingMode":"WaitForFirstConsumer"} storageclass.kubernetes.io/is-default-class: 'true' name: local-path provisioner: rancher.io/local-path reclaimPolicy: Delete parameters: pathPattern: "{{ .PVC.Namespace }}/{{ .PVC.Name }}/../../../../../etc/new-dir" volumeBindingMode: WaitForFirstConsumer Results in the PersistentVolume to target /etc/new-dir: ``` This produces a PersistentVolume that points to `/etc/new-dir`, instead of a path under the configured base directory. Expected Behavior: - Paths generated from pathPattern should always resolve under the configured base path. - Relative path elements (e.g., ..) should be normalized or rejected. ### Patches This vulnerability is addressed by validating and normalizing the `parameters.pathPattern` to ensure that generated PersistentVolume paths always resolve under the configured base directory. Any path traversal attempts using relative path elements are rejected, preventing PersistentVolumes from being created in arbitrary locations on the host node. Previously, a malicious user could manipulate `pathPattern` to escape the base path and create volumes pointing to sensitive or unintended directories (for example, `/etc`), potentially overwriting host files or gaining unauthorized access. With this fix, path patterns that resolve outside of the base directory are denied, and only safe, normalized paths under the configured base path are allowed. Patched versions of local-path-provisioner include releases v0.0.34 (and later). No patches are provided for earlier releases, as they do not include the necessary path validation and normalization logic. ### Workarounds There are no workarounds for this issue. Users must upgrade to a patched version of local-path-provisioner to fully mitigate the vulnerability. ### References There are any questions or comments about this advisory: - Contact the [SUSE Rancher Security team](https://github.com/rancher/rancher/security/policy) for security related inquiries. - Open an issue in the [Rancher](https://github.com/rancher/rancher/issues/new/choose) repository.
- GO-2026-4425Local Path Provisioner vulnerable to Path Traversal via parameters.pathPattern in github.com/rancher/local-path-provisioner2026-02-05vendor · osvUS
Local Path Provisioner vulnerable to Path Traversal via parameters.pathPattern in github.com/rancher/local-path-provisioner
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://bugzilla.suse.com/show_bug.cgi?id=CVE-2025-62878cnnvd
- https://github.com/advisories/GHSA-jr3w-9vfr-c746cnnvd
- https://www.suse.com/products/Patchcnnvd
- https://bugzilla.suse.com/show_bug.cgi?id=CVE-2025-62878enisa_euvd
- https://github.com/advisories/GHSA-jr3w-9vfr-c746enisa_euvd
- https://bugzilla.suse.com/show_bug.cgi?id=CVE-2025-62878nvd
- https://github.com/advisories/GHSA-jr3w-9vfr-c746nvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan