Path Traversal in Kubernetes Local Path Provisioner pathPattern
CVE-2025-62878 is a path traversal vulnerability in Kubernetes Local Path Provisioner. The flaw is caused by insufficient sanitization and validation of the user-controlled StorageClass parameter parameters.pathPattern. By supplying traversal sequences such as ../../, a malicious user can cause the provisioner to create PersistentVolumes in filesystem locations outside the intended base directory on the host node. This breaks the expected storage isolation boundary and allows volume paths to resolve to arbitrary host locations. Reported descriptions state that this can result in PersistentVolumes being created in unintended directories, including sensitive areas of the host filesystem, with potential overwrite of sensitive files or unauthorized access to directories on the node.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can allow an attacker to escape the provisioner's intended storage sandbox and influence file placement on the Kubernetes host. The documented consequences include creating PersistentVolumes in arbitrary host filesystem locations, overwriting sensitive files, and accessing unintended directories. Depending on the targeted path and node configuration, this can compromise confidentiality, integrity, and availability of the host and workloads, including modification of system configuration, planting malicious content, or destabilizing/crashing the node.
If you can’t patch tonight, do this now.
No workaround is available according to the advisory. The stated mitigation is to upgrade to a patched version. Until patching, reducing who can create or modify StorageClasses or storage resources may reduce exposure, but this is not presented in the provided advisory as a supported workaround.
Patch, then assume compromise.
Upgrade Kubernetes Local Path Provisioner to version v0.0.34 or later. The fix adds stricter validation and normalization of parameters.pathPattern and rejects traversal attempts or patterns that resolve outside the configured base directory.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.