Skip to main content
No exploitation reportedFix available

CVE-2023-3961

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

No exploitation reported by the sources we read.

  • Published2023-11-03
  • Fixed in4.19.1 · 4.18.8 · 4.17.12
  • WeaknessCWE-22

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2023-11-0312:32CVE publishedCNA

Versions per branch

NVD
Samba
BranchAffectedFixed in
4.19≥ 4.19.0, < 4.19.14.19.1
4.18≥ 4.18.0, < 4.18.84.18.8
4.17< 4.17.124.17.12
Fedoraproject fedora
BranchAffectedFixed in
39.x= 39no fix published
Redhat enterprise linux
BranchAffectedFixed in
8.0= 8.0no fix published

2 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA11 products

As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

5 more products in the CVE record.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-11-26

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • ctdbRed Hat:rhel_eus:9.2::resilientstorageall versions · fixed in 0:4.17.5-104.el9_2and 25 other packages
  • ctdbRed Hat:rhel_eus:9.0::resilientstorageall versions · fixed in 0:4.15.5-111.el9_0and 20 other packages
  • ctdbRed Hat:enterprise_linux:9::resilientstorageall versions · fixed in 0:4.18.6-101.el9_3and 25 other packages
  • sambaTuxCare:Ubuntu:18.04all versions · fixed in 2:4.7.6+dfsg~ubuntu-0ubuntu2.29+tuxcare.els4and 19 other packages
  • sambaTuxCare:Ubuntu:16.04all versions · fixed in 2:4.3.11+dfsg-0ubuntu0.16.04.34+tuxcare.els6and 19 other packages
  • sambaTuxCare:OracleLinux:6all versions · fixed in 3.6.23-53.0.1.el6_10.tuxcare.ol.els2and 12 other packages
  • sambaTuxCare:CentOS:8.5all versions · fixed in 4.14.5-7.el8.5.tuxcare.els7and 25 other packages
  • sambaTuxCare:CentOS:8.5all versions · fixed in 4.14.5-9.el8.5.tuxcare.els1and 25 other packages

47 more package ranges on OSV.dev

Vendor advisories

  • CVE-2023-3961 Red Hat Product Security2,860 products fixed · 35 known affected

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

    ctdb as a component of Red Hat Storage 3 · ctdb-devel as a component of Red Hat Storage 3 · ctdb-tests as a component of Red Hat Storage 3 · +32 more

  • RHSA-2023:7467 Red Hat Product Security479 products fixed

    Red Hat Security Advisory: samba security update

  • RHSA-2023:7464 Red Hat Product Security479 products fixed

    Red Hat Security Advisory: samba security update

  • RHSA-2023:7408 Red Hat Product Security379 products fixed

    Red Hat Security Advisory: samba security update

  • RHSA-2023:7371 Red Hat Product Security551 products fixed

    Red Hat Security Advisory: samba security update

  • RHSA-2023:6744 Red Hat Product Security551 products fixed

    Red Hat Security Advisory: samba security update

1 more advisory

Full record on NVD

Fix

  1. Update Samba to 4.19.1 · 4.18.8 · 4.17.12
  2. Vendor fix Red Hat Product Security RHSA-2023:7467 · 479 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing this update, the smb service will be restarted automatically.
  3. Workaround from the vendor Red Hat Product Security RHSA-2023:7467 · 479 productsMitigation 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.
  4. No fix planned, says the vendor Red Hat Product Security CVE-2023-3961 · 35 productsOut of support scope

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CNACVSS 3.19.12026-11-26
  • NVDCVSS 3.19.8read 2026-11-26
  • CNAweakness (CWE)CWE-222026-11-26
  • NVDweakness (CWE)CWE-22read 2026-11-26
  • FIRST EPSSEPSS score2.7 %2026-12-03
  • OSVaffected packages—
  • GitHub Advisoriesadvisory—

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2023-11-03
Last modified
2026-11-26
NVD status
Modified
GitHub advisory
GHSA-8m6h-6qw7-f6cg

Frequently asked questions

What is CVE-2023-3961?

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.

Is CVE-2023-3961 actively exploited?

Active exploitation of CVE-2023-3961 has not been confirmed. Its EPSS score was 2.7% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2023-3961?

CVE-2023-3961 has a CVSS v3 base score of 9.8 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running samba? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record