# CVE-2021-20277: A flaw was found in Samba's libldb.

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.19%, higher than 91% of CVEs (2026-12-01)
- Published: 2021-05-12T13:54:05.000Z
- Modified: 2026-06-17T03:33:35.570Z
- Weaknesses: CWE-125, CWE-787
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- samba: samba 4.14.1, samba 4.13.6, samba 4.12.13
- samba samba: from 4.0.0 before 4.12.13; from 4.13.0 before 4.13.6; from 4.14.0 before 4.14.1
- debian debian_linux: 9.0; 10.0
- fedoraproject fedora: 32; 33; 34

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://security.netapp.com/advisory/ntap-20210326-0007/> (third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X5J3B6PN5XMXF3OHYBNHDKZ3XFSUGY4L/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/03/msg00036.html> (mailing-list, third-party-advisory)
- <https://www.debian.org/security/2021/dsa-4884> (third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZXP3ONIY6MB4C5LDZV4YL5KJCES3UX24/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VLZ74IF2N75VQSIHBL4B3P5WKWQCXSRY/> (vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1941402> (issue-tracking, third-party-advisory)
- <https://www.samba.org/samba/security/CVE-2021-20277.html> (vendor-advisory)
- <https://security.gentoo.org/glsa/202105-22> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2021-20277](https://www.cve.org/CVERecord?id=CVE-2021-20277), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-20277](https://nvd.nist.gov/vuln/detail/CVE-2021-20277), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-20277 · Whole record: https://cve.day/CVE-2021-20277.json · Rebuilt by cve.day 2026-11-25T22:58:01.304Z
