{"id":"CVE-2021-20277","details":"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.","modified":"2026-05-18T05:52:40.220623330Z","published":"2021-05-12T14:15:11.140Z","related":["SUSE-SU-2021:0944-1","SUSE-SU-2021:0945-1","SUSE-SU-2021:1440-1","SUSE-SU-2021:1444-1","SUSE-SU-2021:1498-1","SUSE-SU-2021:3187-1","SUSE-SU-2022:0283-1","openSUSE-SU-2021:0469-1","openSUSE-SU-2021:0636-1","openSUSE-SU-2021:3187-1","openSUSE-SU-2022:0283-1","openSUSE-SU-2024:10911-1","openSUSE-SU-2024:11365-1"],"database_specific":{"unresolved_ranges":[{"source":"CPE_FIELD","cpes":["cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"],"vendor_product":"debian:debian_linux","extracted_events":[{"last_affected":"9.0"},{"last_affected":"10.0"}]},{"source":"CPE_FIELD","cpes":["cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"],"vendor_product":"fedoraproject:fedora","extracted_events":[{"last_affected":"32"},{"last_affected":"33"},{"last_affected":"34"}]}]},"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VLZ74IF2N75VQSIHBL4B3P5WKWQCXSRY/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X5J3B6PN5XMXF3OHYBNHDKZ3XFSUGY4L/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZXP3ONIY6MB4C5LDZV4YL5KJCES3UX24/"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00036.html"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202105-22"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20210326-0007/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2021/dsa-4884"},{"type":"ADVISORY","url":"https://www.samba.org/samba/security/CVE-2021-20277.html"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1941402"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/samba-team/samba","events":[{"introduced":"df33344d8eb40221d60c99931690703a11d91bc2"},{"fixed":"bb2f64babf1a2bfb780d0325e859f796d0ce1647"},{"introduced":"3fe82c204f0d88cb6db50b7bd1f798b591a918f8"},{"fixed":"440b75fda7092b88b1986759c40f95ed65c2da24"},{"introduced":"9b49519cae3e967af9ea48dc5fcfb6c145e31db4"},{"fixed":"ed4a04eca53906ab7d69667545b414fa84fe5404"}],"database_specific":{"source":"CPE_FIELD","cpe":"cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"4.0.0"},{"fixed":"4.12.13"},{"introduced":"4.13.0"},{"fixed":"4.13.6"},{"introduced":"4.14.0"},{"fixed":"4.14.1"}]}}],"versions":["samba-4.13.5","samba-4.14.0","samba-4.13.4","samba-4.13.3","samba-4.13.2","samba-4.13.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-20277.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}