Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.5

CVE-2021-20277: A flaw was found in Samba's libldb. Multiple, consecutive leading spaces in an LDAP attribute can lead to an out-of-bounds memory write, leading to a crash of the LDAP server process handling the r...

CVE-2021-20277 · published 5 years ago
Summary

A flaw was found in Samba's libldb. Multiple, consecutive leading spaces in an LDAP attribute can lead to an out-of-bounds memory write, leading to a crash of the LDAP server process handling the request. The highest threat from this vulnerability is to system availability.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
VendorProductAffected versions
samba samba >= 4.0.0, < 4.12.13
>= 4.13.0, < 4.13.6
>= 4.14.0, < 4.14.1
cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*
debian debian_linux 9.0
10.0
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
fedoraproject fedora 32
33
34
cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
Original advisory text
A flaw was found in Samba's libldb. Multiple, consecutive leading spaces in an LDAP attribute can lead to an out-of-bounds memory write, leading to a crash of the LDAP server process handling the r...
A flaw was found in Samba's libldb. Multiple, consecutive leading spaces in an LDAP attribute can lead to an out-of-bounds memory write, leading to a crash of the LDAP server process handling the request. The highest threat from this vulnerability is to system availability.
Fix within
Internet-facing 14 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically (estimated)
  • Gives an attacker partial control (estimated)
Severity
7.5 High
Exploitation
4% chance of attack within 30 days
Type
CWE-125Out-of-bounds Read
CWE-787Out-of-bounds Write
Timeline
Published12 May 2021
Updated4 Nov 2026
First seen29 Sep 2026
Sources
Track software like this
Free during beta