9.1critical
Samba: smbd allows client access to unix domain sockets on the file system as root
- Severity
- 9.1critical CVSS:3.1 by redhat
- Exploit likelihood
- 2.69% (higher than 86% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| samba | Not specified Not affected: from 0:4.18.6-2.el8_9 before *, from 0:4.15.5-13.el8_6 before *, from 0:4.17.5-4.el8_8 before *, from 0:4.18.6-101.el9_3 before *, from 0:4.15.5-111.el9_0 before *, from 0:4.17.5-104.el9_2 before * | CVE List |
| samba4 | Not specified | CVE List |
| samba samba | before 4.17.12, from 4.18.0 before 4.18.8, from 4.19.0 before 4.19.1 | NVD |
| redhat storage | 3.0 | NVD |
| redhat enterprise_linux | 8.0 | NVD |
| redhat enterprise_linux_eus | 9.0 | NVD |
| fedoraproject fedora | 39 | NVD |
All scores
| redhat | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
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.
NVD (es)
Se identificó una vulnerabilidad de path traversal en Samba al procesar nombres de canalizaciones de clientes que se conectan a sockets de dominio Unix dentro de un directorio privado. Samba normalmente usa este mecanismo para conectar clientes SMB a servicios de Remote Procedure Call (RPC) como SAMR LSA o SPOOLSS, que Samba inicia bajo demanda. Sin embargo, debido a una sanitización inadecuada de los nombres de canalización del cliente entrante, se permite que un cliente envíe un nombre de canalización que contenga caracteres transversales del directorio Unix (../). Esto podría provocar que los clientes SMB se conecten como root a sockets de dominio Unix fuera del directorio privado. Si un atacante o cliente lograra enviar un nombre de canalización a un servicio externo utilizando un socket de dominio Unix existente, podría provocar un acceso no autorizado al servicio y los consiguientes eventos adversos, incluido el compromiso o la caída del servicio.
References
| https://access.redhat.com/errata/RHSA-2023:6209 | third-party-advisory, vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2023:6744 | third-party-advisory, vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2023:7371 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2023:7408 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2023:7464 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2023:7467 | vendor-advisory | |
| https://access.redhat.com/security/cve/CVE-2023-3961 | third-party-advisory, vdb-entry | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2241881 | issue-tracking | |
| https://bugzilla.samba.org/show_bug.cgi?id=15422 | exploit, issue-tracking | |
| https://www.samba.org/samba/security/CVE-2023-3961.html | vendor-advisory | |
| https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZUMVALLFFDFC53JZMUWA6HPD7HUGAP5I/ | ||
| https://security.netapp.com/advisory/ntap-20231124-0002/ | ||
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-3961 changed 2026-11-07 | CVE Terms of Use |
| NVD | CVE-2023-3961 changed 2026-11-07 | Public domain |