CVE-2025-62878
Received Received - Intake
Path Traversal in PersistentVolumes Allows Host File Overwrite

Publication date: 2026-02-25

Last updated on: 2026-02-25

Assigner: SUSE

Description
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 Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-02-25
Last Modified
2026-02-25
Generated
2026-05-27
AI Q&A
2026-02-25
EPSS Evaluated
2026-05-25
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
rancher local-path-provisioner to 0.0.34 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-23 The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.
Attack-Flow Graph
AI Powered Q&A
How can this vulnerability impact me? :

This vulnerability can have severe impacts including unauthorized access to sensitive files and directories on the host node, potentially leading to data breaches or system compromise.

An attacker can overwrite critical files or access unintended directories by creating PersistentVolumes in arbitrary locations, which can compromise confidentiality, integrity, and availability of the system.

The CVSS v3.1 base score of 9.9 reflects the high severity, indicating that the attack can be performed remotely with low complexity and low privileges, without user interaction, and can cause significant damage.


Can you explain this vulnerability to me?

[{'type': 'paragraph', 'content': "CVE-2025-62878 is a critical path traversal vulnerability in the Rancher local-path-provisioner component. It occurs because the parameter 'parameters.pathPattern' used in Kubernetes StorageClass definitions is not properly validated. A malicious user can manipulate this parameter to include relative path elements like '../../../../../etc/new-dir', which allows the creation of PersistentVolumes pointing to arbitrary locations on the host node outside the intended base directory."}, {'type': 'paragraph', 'content': 'This improper validation enables attackers to overwrite sensitive files or gain unauthorized access to directories on the host system, which should normally be protected.'}, {'type': 'paragraph', 'content': "The vulnerability is addressed in version 0.0.34 and later by implementing validation and normalization of the 'parameters.pathPattern' to prevent path traversal attempts."}] [1, 2]


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

[{'type': 'paragraph', 'content': 'Detection of this vulnerability involves inspecting Kubernetes StorageClass definitions for the use of the `parameters.pathPattern` field containing relative path elements such as `..` that allow directory traversal.'}, {'type': 'paragraph', 'content': 'You can check for potentially malicious or unsafe path patterns by querying your Kubernetes cluster for StorageClasses and examining their parameters. For example, use the following command to list StorageClasses and filter for suspicious pathPattern values:'}, {'type': 'list_item', 'content': "kubectl get storageclass -o jsonpath='{range .items[*]}{.metadata.name}: {.parameters.pathPattern}\\n{end}' | grep '\\.\\.'"}, {'type': 'paragraph', 'content': 'This command lists all StorageClasses and their pathPattern parameters, then filters for any that contain `..` sequences indicating possible path traversal attempts.'}, {'type': 'paragraph', 'content': 'Additionally, monitoring PersistentVolumes that are created outside the expected base directory on the host node can help detect exploitation attempts.'}] [1]


What immediate steps should I take to mitigate this vulnerability?

The primary and immediate mitigation step is to upgrade the Rancher local-path-provisioner to version 0.0.34 or later, where the vulnerability is fixed by validating and normalizing the `parameters.pathPattern` to prevent path traversal.

No patches or workarounds exist for earlier versions, so upgrading is essential to prevent exploitation.

After upgrading, review existing StorageClass definitions to ensure no malicious or unsafe pathPattern values remain.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart