CVE-2021-20277
published 2021-05-12CVE-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…
PriorityP342high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
4.33%
90.1th percentile
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.
Affected
18 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | ldb | < ldb 2:2.2.0-3.1 (bullseye) | ldb 2:2.2.0-3.1 (bullseye) |
| debian | samba | < ldb 2:2.2.0-3.1 (bullseye) | ldb 2:2.2.0-3.1 (bullseye) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| msrc | azl3_libldb_2.7.2-1_on_azure_linux_3.0 | — | — |
| msrc | azl3_samba_4.18.3-1_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
| samba | samba | — | — |
| samba | samba | >= 0 < 2:4.13.13+dfsg-1 | 2:4.13.13+dfsg-1 |
| samba | samba | >= 0 < 2:4.13.13+dfsg-1 | 2:4.13.13+dfsg-1 |
| samba | samba | >= 0 < 2:4.13.13+dfsg-1 | 2:4.13.13+dfsg-1 |
| samba | samba | >= 4.0.0 < 4.12.13 | 4.12.13 |
| samba | samba | >= 4.13.0 < 4.13.6 | 4.13.6 |
| samba | samba | >= 4.14.0 < 4.14.1 | 4.14.1 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv7.5HIGH
vendor_debian7.5HIGH
vendor_msrc7.5HIGH
vendor_redhat7.5HIGH
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-96fm-7x9f-hmmw: A flaw was found in Samba's libldb
ghsa_unreviewed·2022-05-24
CVE-2021-20277 [HIGH] CWE-125 GHSA-96fm-7x9f-hmmw: A flaw was found in Samba's libldb
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.
OSV
CVE-2021-20277: A flaw was found in Samba's libldb
osv·2021-05-12·CVSS 7.5
CVE-2021-20277 [HIGH] CVE-2021-20277: A flaw was found in Samba's libldb
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.
OSV
ldb vulnerabilities
osv·2021-03-25·CVSS 7.5
CVE-2021-20277 [HIGH] ldb vulnerabilities
ldb vulnerabilities
USN-4888-1 fixed several vulnerabilities in ldb. This update provides
the corresponding update for Ubuntu 14.04 ESM.
Original advisory details:
Douglas Bagnall discovered that ldb, when used with Samba, incorrectly
handled certain LDAP attributes. A remote attacker could possibly use this
issue to cause the LDAP server to crash, resulting in a denial of service.
(CVE-2021-20277)
Douglas Bagnall discovered that ldb, when used with Samba, incorrectly
handled certain DN strings. A remote attacker could use this issue to
cause the LDAP server to crash, resulting in a denial of service, or
possibly execute arbitrary code. (CVE-2020-27840)
OSV
ldb vulnerabilities
osv·2021-03-24·CVSS 7.5
CVE-2021-20277 [HIGH] ldb vulnerabilities
ldb vulnerabilities
Douglas Bagnall discovered that ldb, when used with Samba, incorrectly
handled certain LDAP attributes. A remote attacker could possibly use this
issue to cause the LDAP server to crash, resulting in a denial of service.
(CVE-2021-20277)
Douglas Bagnall discovered that ldb, when used with Samba, incorrectly
handled certain DN strings. A remote attacker could use this issue to
cause the LDAP server to crash, resulting in a denial of service, or
possibly execute arbitrary code. (CVE-2020-27840)
Microsoft
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 reques
vendor_msrc·2021-05-11·CVSS 7.5
CVE-2021-20277 [HIGH] CWE-787 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 reques
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.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more informa
Ubuntu
ldb vulnerabilities
vendor_ubuntu·2021-03-25·CVSS 7.5
CVE-2020-27840 [HIGH] ldb vulnerabilities
Title: ldb vulnerabilities
Summary: Several security issues were fixed in ldb.
USN-4888-1 fixed several vulnerabilities in ldb. This update provides
the corresponding update for Ubuntu 14.04 ESM.
Original advisory details:
Douglas Bagnall discovered that ldb, when used with Samba, incorrectly
handled certain LDAP attributes. A remote attacker could possibly use this
issue to cause the LDAP server to crash, resulting in a denial of service.
(CVE-2021-20277)
Douglas Bagnall discovered that ldb, when used with Samba, incorrectly
handled certain DN strings. A remote attacker could use this issue to
cause the LDAP server to crash, resulting in a denial of service, or
possibly execute arbitrary code. (CVE-2020-27840)
Instructions: After a standard system update you need to restart applicat
Ubuntu
ldb vulnerabilities
vendor_ubuntu·2021-03-24·CVSS 7.5
CVE-2021-20277 [HIGH] ldb vulnerabilities
Title: ldb vulnerabilities
Summary: Several security issues were fixed in ldb.
Douglas Bagnall discovered that ldb, when used with Samba, incorrectly
handled certain LDAP attributes. A remote attacker could possibly use this
issue to cause the LDAP server to crash, resulting in a denial of service.
(CVE-2021-20277)
Douglas Bagnall discovered that ldb, when used with Samba, incorrectly
handled certain DN strings. A remote attacker could use this issue to
cause the LDAP server to crash, resulting in a denial of service, or
possibly execute arbitrary code. (CVE-2020-27840)
Instructions: After a standard system update you need to restart applications using ldb,
such as Samba, to make all the necessary changes.
Red Hat
samba: Out of bounds read in AD DC LDAP server
vendor_redhat·2021-03-24·CVSS 7.5
CVE-2021-20277 [HIGH] CWE-125 samba: Out of bounds read in AD DC LDAP server
samba: Out of bounds read in AD DC LDAP server
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.
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.
Statement: The version of Samba shipped with Red Hat Gluster Storage (RHGS) 3 is built with a private copy of ldb (LDAP-like embedded database) library which includes the vulnerable code. However, Sam
Debian
CVE-2021-20277: ldb - A flaw was found in Samba's libldb. Multiple, consecutive leading spaces in an L...
vendor_debian·2021·CVSS 7.5
CVE-2021-20277 [HIGH] CVE-2021-20277: ldb - A flaw was found in Samba's libldb. Multiple, consecutive leading spaces in an L...
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.
Scope: local
bullseye: resolved (fixed in 2:2.2.0-3.1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://bugzilla.redhat.com/show_bug.cgi?id=1941402https://lists.debian.org/debian-lts-announce/2021/03/msg00036.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VLZ74IF2N75VQSIHBL4B3P5WKWQCXSRY/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X5J3B6PN5XMXF3OHYBNHDKZ3XFSUGY4L/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZXP3ONIY6MB4C5LDZV4YL5KJCES3UX24/https://security.gentoo.org/glsa/202105-22https://security.netapp.com/advisory/ntap-20210326-0007/https://www.debian.org/security/2021/dsa-4884https://www.samba.org/samba/security/CVE-2021-20277.htmlhttps://bugzilla.redhat.com/show_bug.cgi?id=1941402https://lists.debian.org/debian-lts-announce/2021/03/msg00036.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VLZ74IF2N75VQSIHBL4B3P5WKWQCXSRY/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X5J3B6PN5XMXF3OHYBNHDKZ3XFSUGY4L/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZXP3ONIY6MB4C5LDZV4YL5KJCES3UX24/https://security.gentoo.org/glsa/202105-22https://security.netapp.com/advisory/ntap-20210326-0007/https://www.debian.org/security/2021/dsa-4884https://www.samba.org/samba/security/CVE-2021-20277.html
2021-05-12
Published