CVE-2023-3961

published 3 Nov 2023 · updated 7 Nov 2026

Samba: smbd allows client access to unix domain sockets on the file system as root

10.0CriticalCVSS 9.1EPSS 3%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 3%. Fixed in Samba 4.19.1, Samba 4.18.8 and Samba 4.17.12.

A path traversal vulnerability was identified in Samba when processing client pipe names connecting to Unix domain sockets within a private directory. Samba typically uses this mechanism to connect SMB clients to remote procedure call (RPC) services like SAMR LSA or SPOOLSS, which Samba initiates on demand. However, due to inadequate sanitization of incoming client pipe names, allowing a client to send a pipe name containing Unix directory traversal characters (../). This could result in SMB clients connecting as root to Unix domain sockets outside the private directory. If an attacker or client managed to send a pipe name resolving to an external service using an existing Unix domain socket, it could potentially lead to unauthorized access to the service and consequential adverse events, including compromise or service crashes.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red HatEnterprise Linux
Red HatStorage
Red HatVirtualization
SambaSamba>=4.19.0 <4.19.1, >=4.18.0 <4.18.8, <4.17.124.19.1, 4.18.8, 4.17.12
fedoraprojectfedora=39
redhatenterprise_linux_eus=9.0
redhatstorage=3.0
redhatenterprise_linux=8.0

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Samba, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-3961 severity on Zeptric[![CVE-2023-3961](https://zeptric.io/badge/cve/CVE-2023-3961.svg)](https://zeptric.io/cve/CVE-2023-3961)