Samba Pipe Name Path Traversal Potential Priv Escalation
CVE-2023-3961 Published on November 3, 2023
Samba: smbd allows client access to unix domain sockets on the file system as root
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.
Vulnerability Analysis
CVE-2023-3961 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality, a high impact on integrity and availability.
Timeline
Reported to Red Hat.
Made public. 7 days later.
Weakness Type
What is a Directory traversal Vulnerability?
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
CVE-2023-3961 has been classified to as a Directory traversal vulnerability or weakness.
Products Associated with CVE-2023-3961
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2023-3961 are published in these products:
Affected Versions
Red Hat Enterprise Linux 8:- Version 0:4.18.6-2.el8_9 and below * is unaffected.
- Version 0:4.18.6-2.el8_9 and below * is unaffected.
- Version 0:4.15.5-13.el8_6 and below * is unaffected.
- Version 0:4.17.5-4.el8_8 and below * is unaffected.
- Version 0:4.18.6-101.el9_3 and below * is unaffected.
- Version 0:4.18.6-101.el9_3 and below * is unaffected.
- Version 0:4.15.5-111.el9_0 and below * is unaffected.
- Version 0:4.17.5-104.el9_2 and below * is unaffected.
- Version 0:4.15.5-13.el8_6 and below * is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.