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

Summary

CVECVE-2023-3961
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-11-03 13:15:08 UTC
Updated2026-11-07 12:17:32 UTC
DescriptionA 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.

Risk And Classification

Primary CVSS: v3.1 9.8 CRITICAL from [email protected]

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Problem Types: CWE-22 | CWE-22 Improper Limitation of a Pathname to a Restricted Directory


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary9.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
3.1[email protected]Secondary9.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
3.1CNACVSS9.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Samba Samba All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:4.18.6-2.el8_9 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:4.18.6-2.el8_9 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support unaffected 0:4.15.5-13.el8_6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support unaffected 0:4.17.5-4.el8_8 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:4.18.6-101.el9_3 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:4.18.6-101.el9_3 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support unaffected 0:4.15.5-111.el9_0 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support unaffected 0:4.17.5-104.el9_2 * rpm Not specified
CNA Red Hat Red Hat Virtualization 4 For Red Hat Enterprise Linux 8 unaffected 0:4.15.5-13.el8_6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 6 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 6 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 7 Not specified Not specified
CNA Red Hat Red Hat Storage 3 Not specified Not specified

References

ReferenceSourceLinkTags
cve-details af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
security.netapp.com/advisory/ntap-20231124-0002 af854a3a-2127-422b-91ae-364da2661108 security.netapp.com
15422 – (CVE-2023-3961) CVE-2023-3961 [SECURITY] Unsanitized client pipe name passed to local_np_connect() af854a3a-2127-422b-91ae-364da2661108 bugzilla.samba.org Exploit, Issue Tracking
access.redhat.com/errata/RHSA-2023:7467 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
access.redhat.com/errata/RHSA-2023:7408 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
[SECURITY] Fedora 39 Update: samba-4.19.2-1.fc39 - package-announce - Fedora Mailing-Lists af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
access.redhat.com/errata/RHSA-2023:7464 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
2241881 – (CVE-2023-3961) CVE-2023-3961 samba: smbd allows client access to unix domain sockets on the file system as root af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Issue Tracking
access.redhat.com/errata/RHSA-2023:7371 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
Samba - Security Announcement Archive af854a3a-2127-422b-91ae-364da2661108 www.samba.org Vendor Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Additional Advisory Data

SourceTimeEvent
CNA2023-10-03T00:00:00.000ZReported to Red Hat.
CNA2023-10-10T00:00:00.000ZMade public.

Workarounds

CNA: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Legacy QID Mappings

  • 161070 Oracle Enterprise Linux Security Update for samba (ELSA-2023-6744)
  • 161196 Oracle Enterprise Linux Security Update for samba (ELSA-2023-7467)
  • 242260 Red Hat Update for samba (RHSA-2023:6209)
  • 242318 Red Hat Update for samba (RHSA-2023:6744)
  • 242484 Red Hat Update for samba (RHSA-2023:7408)
  • 242507 Red Hat Update for samba (RHSA-2023:7467)
  • 242508 Red Hat Update for samba (RHSA-2023:7464)
  • 284612 Fedora Security Update for samba (FEDORA-2023-7eb8cbf1a5)
  • 284682 Fedora Security Update for samba (FEDORA-2023-fff0c857d6)
  • 285191 Fedora Security Update for samba (FEDORA-2023-8c9251e479)
  • 356630 Amazon Linux Security Advisory for samba : ALAS2023-2023-416
  • 503395 Alpine Linux Security Update for samba
  • 505937 Alpine Linux Security Update for samba
  • 6000310 Debian Security Update for samba (DSA 5525-1)
  • 710873 Gentoo Linux Samba Multiple Vulnerabilities (GLSA 202402-28)
  • 755069 SUSE Enterprise Linux Security Update for samba (SUSE-SU-2023:4046-1)
  • 941395 AlmaLinux Security Update for samba (ALSA-2023:6744)
  • 941422 AlmaLinux Security Update for samba (ALSA-2023:7467)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report