CVE-2026-3864 CSI Driver for NFS path traversal via subDir may delete unintended directories on the NFS server

Medium 6.5 Published Updated

Attackers can delete or modify unintended directories on the NFS server by crafting malicious volume identifiers with path traversal sequences.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-3864?

CVE-2026-3864 is a medium-severity path traversal vulnerability in Kubernetes CSI Driver for NFS, published on 20 Mar 2026. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

A vulnerability was discovered in the Kubernetes CSI Driver for NFS where the subDir parameter in volume identifiers was insufficiently validated. Attackers with the ability to create PersistentVolumes referencing the NFS CSI driver could craft volume identifiers containing path traversal sequences (../). During volume deletion or cleanup operations, the driver could operate on unintended directories outside the intended managed path within the NFS export. This may lead to deletion or modification of directories on the NFS server.

Weakness: CWE-22

Which versions are affected by CVE-2026-3864?

3 open source packages ship an affected version, including github.com/kubernetes-csi/csi-driver-nfs.

PackageAffectedFixed in
github.com/kubernetes-csi/csi-driver-nfs GoAll versions0.0.0-20260210055231-316af2d86b91
github.com/kubernetes-csi/csi-driver-nfs GoAll versions0.0.0-20260210055231-316af2d86b91
github.com/kubernetes-csi/csi-driver-nfs GoAll versions0.0.0-20260210055231-316af2d86b91

How do I fix CVE-2026-3864?

Upgrade github.com/kubernetes-csi/csi-driver-nfs to 0.0.0-20260210055231-316af2d86b91 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-3864 being exploited?

There is no known exploitation of CVE-2026-3864 in the wild and no public exploit code.

Sources

Also known as GHSA-2mjq-54qg-7w6j, GO-2026-4816.

Is CVE-2026-3864 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free