{"id":"CVE-2021-20277","aliases":["CVE-2021-20277"],"related":[],"kind":"vulnerability","state":"published","title":"A flaw was found in Samba's libldb.","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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 request. The highest threat from this vulnerability is to system availability.","source":"cvelist"},{"lang":"es","text":"Se encontró un fallo en libldb de Samba. Múltiples espacios iniciales consecutivos en un atributo LDAP pueden conllevar a una escritura de memoria fuera de los límites, conllevando a un bloqueo del proceso del servidor LDAP que maneja la petición. La mayor amenaza de esta vulnerabilidad es la disponibilidad del sistema","source":"nvd"}],"published":"2021-05-12T13:54:05.000Z","modified":"2026-06-17T03:33:35.570Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-125","CWE-787"],"affected":[{"ranges":[{"version":"samba 4.14.1, samba 4.13.6, samba 4.12.13","status":"affected"}],"product":"samba","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.0.0","fixed":"4.12.13"},{"status":"affected","introduced":"4.13.0","fixed":"4.13.6"},{"status":"affected","introduced":"4.14.0","fixed":"4.14.1"}],"vendor":"samba","product":"samba","cpe":"cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"},{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"32"},{"status":"affected","version":"33"},{"status":"affected","version":"34"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://security.netapp.com/advisory/ntap-20210326-0007/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X5J3B6PN5XMXF3OHYBNHDKZ3XFSUGY4L/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00036.html","tags":["mailing-list","third-party-advisory","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.debian.org/security/2021/dsa-4884","tags":["third-party-advisory","vendor-advisory","x-refsource-debian","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZXP3ONIY6MB4C5LDZV4YL5KJCES3UX24/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VLZ74IF2N75VQSIHBL4B3P5WKWQCXSRY/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1941402","tags":["issue-tracking","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.samba.org/samba/security/CVE-2021-20277.html","tags":["vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.gentoo.org/glsa/202105-22","tags":["third-party-advisory","vendor-advisory","x-refsource-gentoo","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-20277","url":"https://www.cve.org/CVERecord?id=CVE-2021-20277","licence":"CVE Terms of Use","modified":"2024-08-03T17:37:24.134Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-20277","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20277","licence":"Public domain","modified":"2026-06-17T03:33:35.570Z"}],"updatedAt":"2026-11-25T22:58:01.304Z","epss":{"score":0.04193,"percentile":0.91172,"date":"2026-12-01T12:00:22.000Z"}}