CVE-2023-3961
Last modified
CVE-2023-3961 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 2.41% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Samba | Samba | < 4.17.12 |
| Samba | Samba | >= 4.18.0, < 4.18.8 |
| Samba | Samba | >= 4.19.0, < 4.19.1 |
| Redhat | Storage | 3.0 |
| Redhat | Enterprise Linux | 8.0 |
| Redhat | Enterprise Linux Eus | 9.0 |
| Fedoraproject | Fedora | 39 |
References
- https://access.redhat.com/errata/RHSA-2023:6209Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:6744Third Party Advisory
- https://access.redhat.com/security/cve/CVE-2023-3961Third Party Advisory
- 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://access.redhat.com/errata/RHSA-2023:6209Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:6744Third Party Advisory
- https://access.redhat.com/security/cve/CVE-2023-3961Third Party Advisory
- 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
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-3961?
How severe is CVE-2023-3961?
How do I fix CVE-2023-3961?
Are you affected by CVE-2023-3961?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
