Improper Handling of Case Sensitivity in scapy - #VU159465
Published: November 5, 2026
Vulnerability details
The vulnerability allows a guest SMB client to access the local repository served by Scapy's SMB server regardless of the configured shares, exposing repository contents that were not intended to be shared.
The vulnerability exists due to inconsistent handling of share-name case between case-insensitive share lookup and subsequent checks for the special IPC$ share. The server retains the request's spelling in its current tree state rather than the configured share name, causing a lowercase request to bypass the checks that restrict IPC$ to named pipes. A remote attacker can connect as a guest SMB client and request ipc$ in lowercase instead of IPC$ to make the server serve the local repository.
IPC$ is intended to remain pipe-only rather than provide access to a filesystem directory. Although the lowercase name successfully resolves during share lookup, its retained spelling causes later IPC$ checks to treat the connection differently and serve the default local folder, independently of the share configuration.