CVE-2023-3961
JSON

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 packageVersionsReported by
sambaNot 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
samba4Not specifiedCVE List
samba sambabefore 4.17.12, from 4.18.0 before 4.18.8, from 4.19.0 before 4.19.1NVD
redhat storage3.0NVD
redhat enterprise_linux8.0NVD
redhat enterprise_linux_eus9.0NVD
fedoraproject fedora39NVD

All scores

redhat9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
NVD9.8critical CVSS:3.1CVSS: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:6209third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2023:6744third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2023:7371vendor-advisory
https://access.redhat.com/errata/RHSA-2023:7408vendor-advisory
https://access.redhat.com/errata/RHSA-2023:7464vendor-advisory
https://access.redhat.com/errata/RHSA-2023:7467vendor-advisory
https://access.redhat.com/security/cve/CVE-2023-3961third-party-advisory, vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2241881issue-tracking
https://bugzilla.samba.org/show_bug.cgi?id=15422exploit, issue-tracking
https://www.samba.org/samba/security/CVE-2023-3961.htmlvendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZUMVALLFFDFC53JZMUWA6HPD7HUGAP5I/
https://security.netapp.com/advisory/ntap-20231124-0002/

Sources

SourceRecordLicence
CVE ListCVE-2023-3961 changed 2026-11-07CVE Terms of Use
NVDCVE-2023-3961 changed 2026-11-07Public domain