Samba fixes LDAP filter injection in pdb_ldap user deletion in version 4.25.2
CERT-FR reports a vulnerability in Samba before version 4.25.2, tracked as CVE-2026-120377, that can harm data integrity. The flaw, an LDAP filter injection during user deletion, sits in the pdb_ldap module and concerns servers that keep their accounts in an LDAP directory.
What to do now
- Product
- Samba
- Affected versions
- Samba versions prior to 4.25.2
- Fixed in
- Samba 4.25.2
- CVE
- CVE-2026-120377
On 1 December 2026, CERT-FR published advisory CERTFR-2026-AVI-1650 about a vulnerability in Samba, the open-source suite that provides Windows-compatible file sharing and authentication services. The advisory is based on Samba's security bug 16169, dated 30 November 2026, and classifies the risk as a threat to data integrity. The flaw is tracked as CVE-2026-120377.
According to CERT-FR, every Samba release before 4.25.2 is affected. The title of the vendor's bug report pinpoints the cause: when a user is deleted, the pdb_ldap module places the username into an LDAP search filter without escaping it. A username containing characters that carry meaning in LDAP filter syntax can therefore change the query sent to the directory, which is a classic LDAP filter injection.
pdb_ldap is the Samba account database backend that stores users in an LDAP directory. Installations relying on a different account backend should not reach this code path, although the public bug page does not state this outright. A manipulated deletion query could target entries other than the intended account, which matches the integrity risk described in the advisory.
Much remains unknown. The publicly visible bug report shows only its title: it does not say who can trigger a user deletion, whether an account or special privileges are required, or whether the attack works over the network. The available material gives no CVSS vector, and neither CERT-FR nor Samba mentions any exploitation in the wild.
For the fix, CERT-FR points to the vendor's bulletin. Version 4.25.2 is the first release no longer listed as vulnerable. Administrators running Samba with an LDAP directory as the account database are the most directly concerned and should schedule the upgrade soon.
What to do now
- Upgrade Samba to version 4.25.2 or later, starting with servers configured with the pdb_ldap (ldapsam) account backend.
- Check the passdb backend setting in smb.conf to find out which servers store accounts in LDAP.
- Until the upgrade is done, restrict which accounts and tools may delete Samba users (general good practice).
- Review the LDAP directory and its logs for unexpected entry deletions.