# CVE-2023-3961: Samba: smbd allows client access to unix domain sockets on the file system as root

- Severity: Critical 9.1 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.69%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-11-03T12:32:29.558Z
- Modified: 2026-11-07T12:17:32.990Z
- Weaknesses: CWE-22
- 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.

(As written by CVE List.)

## Affected

- samba: no versions given (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 *)
- samba4: no versions given
- samba samba: before 4.17.12; from 4.18.0 before 4.18.8; from 4.19.0 before 4.19.1
- redhat storage: 3.0
- redhat enterprise_linux: 8.0
- redhat enterprise_linux_eus: 9.0
- fedoraproject fedora: 39

## Every score

- redhat: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://bugzilla.samba.org/show_bug.cgi?id=15422> (exploit, issue-tracking)
- <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://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

- CVE List: [CVE-2023-3961](https://www.cve.org/CVERecord?id=CVE-2023-3961), CVE Terms of Use, modified 2026-11-07
- NVD: [CVE-2023-3961](https://nvd.nist.gov/vuln/detail/CVE-2023-3961), Public domain, modified 2026-11-07

---

Page: https://cve.day/CVE-2023-3961 · Whole record: https://cve.day/CVE-2023-3961.json · Rebuilt by cve.day 2026-11-25T22:58:30.020Z
