New Kubernetes NFS CSI Vulnerability Enables Unauthorized Directory Deletion and Changes
## Cybersecurity: Kubernetes CSI Driver Vulnerability
Cybersecurity: Kubernetes CSI Driver Vulnerability
A security vulnerability identified in the Kubernetes Container Storage Interface (CSI) Driver for Network File System (NFS) exposes storage servers to unauthorized directory modifications and deletions.
This vulnerability, designated as CVE-2026-3864, has a CVSS v3.1 score of 6.5, indicating medium severity. It affects all versions of the driver prior to v4.13.1. The flaw underscores the importance of input validation in cluster storage provisioning.
The vulnerability involves the handling of the subDir parameter within volume identifiers by the Kubernetes CSI Driver for NFS. In secure configurations, this parameter specifies the subdirectory where a volume should be mounted on the NFS server. However, in affected versions, the input is insufficiently validated, allowing attackers to inject path traversal characters (e.g., ../ ) into the volume identifier.
During volume deletion or cleanup operations, these manipulated identifiers enable the CSI driver to access directories outside the designated storage export. Successful exploitation requires specific cluster privileges, including the ability to create PersistentVolumes that reference the NFS CSI driver.
This vulnerability, designated as CVE-2026-3864, has a CVSS v3.1 score of 6.5, indicating medium severity.
If these privileges are acquired, an attacker can leverage the driver's access to delete data, alter directories, or disrupt shared storage resources, potentially impacting the broader storage infrastructure.
Organizations should promptly assess their Kubernetes environments for exposure. It is crucial to inspect the volumeHandle field of PersistentVolumes using the NFS CSI driver for traversal sequences and review CSI controller logs for anomalous directory operations.
To mitigate this vulnerability, upgrade the CSI Driver for NFS to version 4.13.1 or newer, which includes fixes for the input validation issue. Until updates are applied, restrict PersistentVolume creation privileges to trusted personnel and ensure NFS exports only grant write access to intended directories.
Untrusted users should not be granted storage provisioning rights that reference external storage drivers.
Based on reporting by GBHackers.
