CVE-2023-3961: Samba: smbd allows client access to unix domain sockets on the file system as root
CVE-2023-3961 affects 176 listed versions of Samba in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Samba
176 of 250 listed versions are affected. Fixed in 4.19.1, 4.18.8, 4.17.12. The newest release, 4.25.1, is not affected.
4.19.0 4.18.7 4.18.6 4.18.5 4.18.4 4.18.3 4.18.2 4.18.1 4.18.0 4.17.11 4.17.10 4.17.9 4.17.8 4.17.7 4.17.6 4.17.5 4.17.4 4.17.3 4.17.2 4.17.1 4.17.0 4.16.11 4.16.10 4.16.9 4.16.8 4.16.7 4.16.6 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.13 4.15.12 4.15.11 4.15.10 4.15.9 4.15.8 4.15.7 4.15.6 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 4.14.14 4.14.13 4.14.12 4.14.11 4.14.10 4.14.9 4.14.8 4.14.7 4.14.6 4.14.5 4.14.4 4.14.3 4.14.2 and 116 more
What it is
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)
Published by Red Hat on 3 November 2023. Last changed 26 November 2026.
Sources
Check one version you run: look CVE-2023-3961 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.