Security advisory · Server software
CVE-2023-3961: a vulnerability in Samba
CVE-2023-3961 in Samba is a path traversal flaw allowing crafted SMB client pipe names containing "../" to reach Unix domain sockets outside the intended private directory, potentially giving unauthorized access to privileged services. Prioritise any internet-facing service first. The affected versions, the fix and the CVSS score below come straight from the CVE record, not our interpretation.
- CVE ID
- CVE-2023-3961
- Published
- November 3, 2023
- CVSS
- 9.8 (Critical), CVSS 3.1
- Affected
- from 4.18.0, 4.19.0 up to the fixed release
- Fixed in
- 4.17.12, 4.18.8, 4.19.1
- Assigned by
- Red Hat
What is CVE-2023-3961?
A path traversal vulnerability in Samba (CVE-2023-3961) arises when Samba processes client pipe names used to connect to Unix domain sockets inside a private directory. Samba uses these pipe names to connect SMB clients to RPC services such as SAMR, LSA, or SPOOLSS, and it initiates those connections on demand. Because incoming client pipe names were not adequately sanitized, an attacker-controlled pipe name containing directory traversal sequences ("../") could resolve to a Unix domain socket outside the private directory. The attack vector is a remote, unauthenticated SMB client sending a specially crafted pipe name; the vulnerability affects versions from 4.18.0, 4.19.0 up to the fixed release. The impact is that an SMB client could connect to an external service socket as root, potentially resulting in unauthorized access to that service, compromise of the service, or service crashes. The issue was fixed in releases 4.17.12, 4.18.8, and 4.19.1.
Am I affected?
Affected versions: from 4.18.0, 4.19.0 up to the fixed release. Fixed in 4.17.12, 4.18.8, 4.19.1.
How do I fix it?
Install your distribution's security update for this package, then restart the affected service so the running process picks up the fix.
# Debian / Ubuntu
sudo apt update && sudo apt upgrade
# RHEL / AlmaLinux / Rocky Linux
sudo dnf upgrade --refresh
How HostCrust helps you see it
Patch Proof checks the packages on each server against your distribution's own security data, per CVE, so once your distribution publishes its fix it shows this package as open until the update is installed — and because it is a running service, the fix isn't done until you restart it.
How we checked this: Every fact on this page — the CVE id, the affected and fixed versions, the CVSS score and the remediation — was taken from the CVE's NVD record and the vendor or CNA advisory linked under Sources, and checked on December 2, 2026. HostCrust did not independently reproduce the vulnerability. Anything we didn't run ourselves comes from the official documentation listed under Sources.
Check which CVEs are really open on your server
HostCrust Patch Proof compares every installed package with your distribution's own security data. It counts fixes your distro backported and checks the kernel that is actually running, not just the one on disk. Read-only, no root, free.
FAQ
How severe is CVE-2023-3961?
The NVD record lists a CVSS base score of 9.8 (Critical) (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). Severity scores can be revised as a CVE is analysed, so check the NVD record and the vendor advisory under Sources for the current figure.
How do I fix it?
Install your distribution's or vendor's fixed release for Samba and restart the affected service (or reboot, for a kernel fix). The commands are in the section above.
Where do these facts come from?
Every fact on this page — the CVE id, the affected and fixed versions, the CVSS score and the remediation — is copied from the CVE's NVD record and the vendor or CNA advisory linked under Sources. HostCrust reformats the official facts; it does not add its own.