ALPINE-CVE-2021-20277
Record from OSV · Published May 12, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| samba | Alpine:v3.19 | 4.14.2-r0 |
| samba | Alpine:v3.13 | 4.13.7-r0 |
| samba | Alpine:v3.22 | 4.14.2-r0 |
| samba | Alpine:v3.16 | 4.14.2-r0 |
| samba | Alpine:v3.20 | 4.14.2-r0 |
| samba | Alpine:v3.24 | 4.14.2-r0 |
| samba | Alpine:v3.15 | 4.14.2-r0 |
| samba | Alpine:v3.12 | 4.12.14-r0 |
| samba | Alpine:v3.23 | 4.14.2-r0 |
| samba | Alpine:v3.14 | 4.14.2-r0 |
| samba | Alpine:v3.18 | 4.14.2-r0 |
| samba | Alpine:v3.21 | 4.14.2-r0 |
1 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Alpine:v3.19 | samba | 3.2.11-r0, 3.2.10-r0, 0 |
| Alpine:v3.13 | samba | 3.2.8-r0, 3.2.11-r1, 3.3.6-r0 |
| Alpine:v3.22 | samba | 3.4.4-r0, 4.0.0, 4.8.2-r0 |
| Alpine:v3.16 | samba | 4.10.5-r0, 4.0.0, 3.3.7-r4 |
| Alpine:v3.20 | samba | 3.2.8-r0, 3.3.4-r0, 3.3.7-r0 |
| Alpine:v3.24 | samba | 4.0.0, 0 |
| Alpine:v3.15 | samba | 4.11.6-r0, 3.2.10-r0, 3.2.11-r0 |
| Alpine:v3.12 | samba | 3.2.10-r0, 4.0.0, 4.1.14-r0 |
| Alpine:v3.23 | samba | 3.3.5-r2, 3.3.5-r1, 3.3.5-r0 |
| Alpine:v3.14 | samba | 3.3.4-r0, 3.3.5-r0, 3.3.5-r1 |
| Alpine:v3.18 | samba | 4.7.0-r1, 3.3.5-r2, 3.3.6-r0 |
| Alpine:v3.21 | samba | 3.2.8-r0, 3.2.8-r1, 3.3.4-r0 |
| Alpine:v3.17 | samba | 0, 4.0.0, 3.3.5-r1 |
Timeline
- May 12, 2021 CVE Published
- Jul 8, 2026 CVE Updated
- Aug 8, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln ALPINE-CVE-2021-20277
vulnetix vdb fixes ALPINE-CVE-2021-20277
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/ALPINE-CVE-2021-20277/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart