Vulnerabilities · 2023 · Samba
CVE-2023-3961
Samba vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Samba, Storage, Enterprise Linux, Enterprise Linux Eus, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Samba runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.samba.org/samba/security/CVE-2023-3961.html · Vendor Advisory
- access.redhat.com/errata/RHSA-2023:6209 · Third Party Advisory
- access.redhat.com/errata/RHSA-2023:6744 · Third Party Advisory
- access.redhat.com/security/cve/CVE-2023-3961 · Third Party Advisory
- bugzilla.samba.org/show_bug.cgi?id=15422 · Exploit
- access.redhat.com/errata/RHSA-2023:7371
- access.redhat.com/errata/RHSA-2023:7408
- access.redhat.com/errata/RHSA-2023:7464
- nvd.nist.gov/vuln/detail/CVE-2023-3961
- cve.org/CVERecord?id=CVE-2023-3961
More vulnerabilities in Samba products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.