Samba vulnerabilities
47 known CVE vulnerabilities in Samba, translated and rated.
- CVE-2026-135114Unknown
This CVE has been rejected at Upstream (reference: https://bugzilla.samba.org/show_bug.cgi?id=16403#c12). No confirmed vulnerability to describe.
- CVE-2026-120377Unknown
This CVE has been rejected at Upstream (reference: https://bugzilla.samba.org/show_bug.cgi?id=16169#c6). No confirmed vulnerability to describe.
- CVE-2026-120369Unknown
This CVE has been rejected at Upstream (reference: https://bugzilla.samba.org/show_bug.cgi?id=16161#c10). No confirmed vulnerability to describe.
- CVE-2026-135106Unknown
This CVE has been rejected by Upstream. The rejection is documented with a reference to the Samba bugzilla.
- CVE-2026-58221Medium
A low-privilege authenticated Samba AD user can modify internal LDB special DNs via LDAP access, enabling a domain takeover.
- CVE-2026-4408Critical
A flaw in Samba allows remote command execution due to improper escaping of shell meta-characters in the 'check password script' feature when using the %u substitution. This affects non-standard configurations with samba-dcerpcd running as a system service.
- CVE-2026-4480Critical
The Samba printing subsystem contains a vulnerability where the client-controlled job description string is passed to the command configured with the 'print command' setting via the '%J' substitution character without escaping shell meta characters. A remote attacker can send a specially crafted print job description containing unescaped shell characters, leading to remote code execution.
- CVE-2025-10230Critical
A flaw was found in Samba, in the front-end WINS hook handling: NetBIOS names from registration packets are passed to a shell without proper validation or escaping. Unsanitized NetBIOS name data from WINS registration packets are inserted into a shell command and executed by the Samba Active Directory Domain Controller's wins hook, allowing an unauthenticated network attacker to achieve remote command execution as the Samba process.
- CVE-2023-3961Critical
A path traversal vulnerability was identified in Samba when processing client pipe names connecting to Unix domain sockets within a private directory. Due to inadequate sanitization of incoming client pipe names, a client can send a pipe name containing Unix directory traversal characters (../), potentially causing SMB clients to connect as root to Unix domain sockets outside the private directory.
- CVE-2017-15275High
Samba before 4.7.3 might allow remote attackers to obtain sensitive information by leveraging failure of the server to clear allocated heap memory.
- CVE-2017-14746Critical
Use-after-free vulnerability in Samba 4.x before version 4.7.3 allows remote attackers to execute arbitrary code via a crafted SMB1 request.
- CVE-2015-5252High
In Samba versions 3.x and 4.x before 4.1.22, 4.2.x before 4.2.7, and 4.3.x before 4.3.3, a vulnerability allows remote attackers to bypass intended file-access restrictions via a symlink pointing outside of a share when certain substring relationships in share names exist.
- CVE-2015-0240High
The Netlogon server implementation in smbd in Samba 3.5.x and 3.6.x before 3.6.25, 4.0.x before 4.0.25, 4.1.x before 4.1.17, and 4.2.x before 4.2.0rc5 performs a free operation on an uninitialized stack pointer, allowing remote attackers to execute arbitrary code via crafted Netlogon packets.
- CVE-2014-8143High
Samba versions 4.0.x before 4.0.24, 4.1.x before 4.1.16, and 4.2.x before 4.2rc4, when an Active Directory Domain Controller (AD DC) is configured, allow remote authenticated users to set the LDB userAccountControl UF_SERVER_TRUST_ACCOUNT bit, consequently gaining privileges.
- CVE-1999-0182High
Samba has a buffer overflow which allows a remote attacker to obtain root access by specifying a long password.
- CVE-2026-135109High
An allocation of resources without limits or throttling issue exists in the dcesrv_samr_ChangePasswordUser4 function in samr_password.c of Samba's SAMR password-change handling. A network attacker or user who can reach the service can send password-change requests for an existing account without logging in, forcing the server to perform costly work before rejecting a forged request.
- CVE-2026-120376Medium
An out-of-bounds read flaw has been found in the process_host_announce() function in source3/nmbd/nmbd_incomingdgrams.c of the NetBIOS browse handling in the Samba package. A network attacker or user who can reach nmbd can send one datagram to UDP port 138 and nmbd can stop and stay stopped until it is started again, leading to a denial of service.
- CVE-2026-135111Medium
In the Samba package, the smbd_accept_connection() function (source3/smbd/server.c) has an incorrect child count after a failed fork. Each failed worker creation remains in the parent's child count, and once the configured maximum is reached, the listener closes later connections, leaving clients without a worker until smbd is restarted.
- CVE-2026-125628High
A type confusion exists in ldapsrv_do_call() in ldap_backend.c of the Samba LDAP server. An unauthenticated network attacker can send an extended response as the first LDAP message, causing the process serving the connection to exit and disconnect other clients.
- CVE-2026-125633Medium
A Type Confusion has been found in the dns_to_dnsp_convert() function in dnsdata.c of the DNS server RPC module in the Samba package. The function copies an HINFO record from the management request into the stored DNS record without converting the request name into the two strings the stored record uses. A low-privileged network attacker or user in the DnsAdmins group adds an HINFO record through the DNS management interface. The directory process that handles the add also serves the directory's other remote calls. That process exits, which disconnects the clients that were using it, and the directory service starts a replacement process. Another add of the same kind crashes the process that accepts it, and each further crash waits longer before that process is replaced, so repeating the add keeps the directory remote-call service from staying available.
- CVE-2026-125627Medium
A NULL pointer dereference flaw exists in the vlv_value_compare() function in vlv_pagination.c of the Virtual List View module in the Samba package. The function uses the sort value from the search result without checking that the result still contains that attribute. A low-privileged network attacker or user who can search the directory sends a Virtual List View search by value sorted on an attribute the matching entries do not have; this causes the LDAP worker handling the search to exit, disconnecting clients and starting a replacement worker, and repeating the search keeps the LDAP service from staying available.
- CVE-2026-135107Medium
In the Samba package, the smbd_smb2_ioctl_pipe_write_done() function in SMB2 named-pipe ioctl handling reserves memory for a named-pipe response using a client-chosen size without keeping it within the agreed maximum. A low-privileged network attacker or user who can open a named pipe can request a very large response, leading to memory exhaustion.
- CVE-2026-125634Medium
In the Samba Active Directory domain controller ACL module, acl_check_dns_host_name() and acl_validate_spn_value() read the account name after a request removes it and do not check that the value is present. A low-privileged user can include removal of sAMAccountName in an LDAP modify, crashing the directory process.
- CVE-2026-109411High
An access control bypass flaw was identified in Samba's vfs_ceph_rgw module in its openat() function. An authenticated user can bypass access controls to read or overwrite restricted files on shares configured with the experimental vfs_ceph_rgw module. When a client requests an existing file using mismatched character casing, the module fails to perform a case-insensitive lookup correctly, causing the server to treat the operation as creating a new file and skip standard permission checks.
- CVE-2026-58222High
A vulnerability in Samba Active Directory Domain Controller (AD DC) combines LDAP filter injection with improper authorization checks, allowing an authenticated low-privilege domain user to disclose confidential AD attributes such as msKds-RootKeyData, potentially leading to privilege escalation and full domain compromise.
- CVE-2026-58216Medium
In Samba's Kerberos KDC password change (kpasswd) service, an out-of-bounds read flaw exists. When processing malformed ASN.1-encoded requests, the server miscalculates structure size and attempts to read up to six bytes beyond the allocated buffer, potentially causing the KDC process to crash and resulting in denial of service.
- CVE-2026-58218Medium
A flaw in Samba's internal DNS server allows unauthenticated TKEY registration requests to be added to the TKEY name cache before being rejected. A remote, unauthenticated attacker can send a large number of TKEY requests with arbitrary names, exhausting the cache and evicting legitimate TKEY entries.
- CVE-2026-15779Medium
A flaw in Samba's pam_winbind, when mkhomedir is enabled, fails to validate the home directory path before chowning it. This allows a non-root user with narrow sudo delegation to change ownership of the root directory (/), causing severe denial of service (SSH, sudo, and package-manager failures) without granting write access.
- CVE-2026-3238High
In Samba's WINS server component when running as an Active Directory Domain Controller, protocol handlers for certain request types do not properly validate incoming packets. An unauthenticated remote attacker can send specially crafted UDP packets, triggering a NULL pointer dereference and crashing the WINS service.
- CVE-2026-2340Medium
A flaw in Samba's vfs_worm module allows bypassing WORM (write-once, read-many) protections during file rename operations. An authenticated user with write access to a share can overwrite a protected file by renaming a newly created file over an existing WORM-protected file.
- CVE-2026-1933High
A flaw was found in Samba's handling of NTFS-style reparse points on shares configured with read only = yes. Due to missing SMB-layer access checks, authenticated users with underlying filesystem write permissions may create or delete reparse point metadata through SMB operations even on read-only exports.
- CVE-2026-3012High
A flaw was found in Samba's certificate auto-enrollment Group Policy handling. When enabled, Samba may retrieve a CA certificate over an unencrypted HTTP connection and install it into the local trust store without proper verification.
- CVE-2025-9640Medium
A flaw was found in Samba's vfs_streams_xattr module where uninitialized heap memory could be written into alternate data streams. This allows an authenticated user to read residual memory content that may include sensitive data, resulting in an information disclosure vulnerability.
- CVE-2025-0620Medium
A flaw in Samba causes the smbd daemon to ignore group membership changes when re-authenticating an expired SMB session. This can expose file shares until clients disconnect and reconnect.
- CVE-2020-25720High
In Samba, a delegated administrator with permission to create objects in Active Directory can write to all attributes of the newly created object, including security-sensitive attributes, even after creation. This occurs because the administrator owns the object due to the lack of an Access Control List (ACL) at creation time and is later recognized as the 'creator owner'.
- CVE-2023-42669Medium
A vulnerability was found in Samba's 'rpcecho' development server, a non-Windows RPC server used to test Samba's DCE/RPC stack elements. The issue arises because the 'rpcecho' service operates with only one worker in the main RPC task, allowing calls to be blocked for a specified time via a sleep() call in dcesrv_echo_TestSleep(), causing a complete denial of service on the AD DC.
- CVE-2023-4091Medium
A vulnerability was discovered in Samba that allows SMB clients to truncate files even with read-only permissions when the Samba VFS module "acl_xattr" is configured with "acl_xattr:ignore system acls = yes". The SMB protocol allows opening files with read-only access but then implicitly truncates the opened file to 0 bytes if the client specifies a separate OVERWRITE create disposition request.
- CVE-2023-42670Medium
A flaw was found in Samba where multiple incompatible RPC listeners can be initiated, causing disruptions in the AD DC service. When Samba's RPC server experiences high load or unresponsiveness, servers intended for non-AD DC purposes (e.g. NT4-emulation 'classic DCs') can erroneously start and compete for the same unix domain sockets, leading to partial query responses and errors such as 'The procedure number is out of range'.
- CVE-2023-3347Medium
A vulnerability was found in Samba's SMB2 packet signing mechanism. SMB2 packet signing is not enforced if an admin configured 'server signing = required' or for SMB2 connections to Domain Controllers where SMB2 packet signing is mandatory.
- CVE-2023-34968Medium
CVE-2023-34968 is a path disclosure vulnerability in Samba that allows the server-side absolute path of shares, files, and directories to be disclosed in search query results. An attacker can exploit this flaw to view information contained in the disclosed path.
- CVE-2022-2127Medium
An out-of-bounds read vulnerability exists in Samba due to insufficient length checks in winbindd_pam_auth_crap.c. During NTLM authentication, Winbind fails to check the LAN Manager response length, allowing a maliciously crafted request to trigger an out-of-bounds read and possibly a crash.
- CVE-2016-2119High
In Samba library versions 4.x before 4.2.14, 4.3.x before 4.3.11, and 4.4.x before 4.4.5, a vulnerability allows man-in-the-middle attackers to bypass a client-signing protection mechanism. This enables spoofing of SMB2 and SMB3 servers.
- CVE-2016-2113High
Samba versions 4.x before 4.2.11, 4.3.x before 4.3.8, and 4.4.x before 4.4.2 do not verify X.509 certificates from TLS servers, allowing man-in-the-middle attackers to spoof LDAPS and HTTPS servers and obtain sensitive information via a crafted certificate.
- CVE-2015-8467High
The samldb_check_user_account_control_acl function in Samba 4.x before 4.1.22, 4.2.x before 4.2.7, and 4.3.x before 4.3.3 does not properly check for administrative privileges during the creation of machine accounts. This allows remote authenticated users to bypass intended access restrictions.
- CVE-2000-0938Medium
Samba Web Administration Tool (SWAT) in Samba 2.0.7 supplies a different error message when a valid username is provided versus an invalid name. This allows remote attackers to identify valid users on the server.
- CVE-2000-0936Low
Samba Web Administration Tool (SWAT) in Samba 2.0.7 installs the cgi.log logging file with world readable permissions. This allows local users to read sensitive information such as user names and passwords.
- CVE-1999-1288Medium
Samba 1.9.18 inadvertently includes a prototype application, wsmbconf, which is installed with incorrect permissions, including the setgid bit.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

