CVE-2020-27840 json
A flaw was found in samba.
published 2021-05-12 5 y ago modified 2026-06-17 4 mo ago also EUVD-2020-20338
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.9%
- EPSS 3.9% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
A flaw was found in samba. Spaces used in a string around a domain name (DN), while supposed to be ignored, can cause invalid DN strings with spaces to instead write a zero-byte into out-of-bounds memory, resulting in a crash. The highest threat from this vulnerability is to system availability.
Patch / fix
- samba samba 4.12.13, 4.13.6, 4.14.1
- samba Debian 14, Debian 13, Debian 12 2:4.13.13+dfsg-1
debian advisories DEBIAN-CVE-2020-27840
- ldb Ubuntu 16.04 LTS 2:1.1.24-1ubuntu3.2
- ldb Ubuntu 18.04 LTS 2:1.2.3-1ubuntu0.2
- ldb Ubuntu 20.04 LTS 2:2.0.10-0ubuntu0.20.04.3
- ldb Ubuntu Pro 14.04 LTS 1:1.1.24-0ubuntu0.14.04.2+esm1
ubuntu advisories UBUNTU-CVE-2020-27840
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- samba SLE Module for Python 2 15 SP3, SLE Module for Basesystem 15 SP3, SLE High Availability Extension 15 SP3 4.15.4+git.324.8332acf1a63-150300.3.25.3
- ldb SLE Module for Basesystem 15 SP3, SLE Micro 5.1 2.4.1-150300.3.10.1
- tdb SLE Module for Basesystem 15 SP3, SLE Micro 5.1 1.4.4-150300.3.3.2
- krb5 SLE Module for Server Applications 15 SP3, SLE Module for Basesystem 15 SP3, SLE Micro 5.1 1.19.2-150300.8.3.2
- sssd SLE Module for Basesystem 15 SP3, SLE Micro 5.1 1.16.1-150300.23.17.3
- talloc SLE Module for Basesystem 15 SP3, SLE Micro 5.1 2.3.3-150300.3.3.2
- tevent SLE Module for Basesystem 15 SP3, SLE Micro 5.1 0.11.0-150300.3.3.2
- apparmor SLE Module for Server Applications 15 SP3, SLE Module for Basesystem 15 SP3, SLE Micro 5.1 2.13.6-150300.3.11.2
suse advisories SUSE-SU-2022:0283-1SUSE-SU-2021:3187-1SUSE-SU-2021:1498-1SUSE-SU-2021:1444-1SUSE-SU-2021:1440-1SUSE-SU-2021:0945-1
- ldb openSUSE Tumbleweed 2.3.0-1.3
- samba openSUSE Tumbleweed 4.14.6+git.182.2205d5224e3-1.1
- samba openSUSE Leap 15.3 4.15.4+git.324.8332acf1a63-150300.3.25.3
- ldb openSUSE Leap 15.3 2.4.1-150300.3.10.1
- tdb openSUSE Leap 15.3 1.4.4-150300.3.3.2
- krb5 openSUSE Leap 15.3 1.19.2-150300.8.3.2
- sssd openSUSE Leap 15.3 1.16.1-150300.23.17.3
- talloc openSUSE Leap 15.3 2.3.3-150300.3.3.2
opensuse advisories openSUSE-SU-2024:10911-1openSUSE-SU-2024:11365-1openSUSE-SU-2022:0283-1openSUSE-SU-2021:3187-1openSUSE-SU-2021:0636-1openSUSE-SU-2021:0469-1
- samba Alpine 3.12 4.12.14-r0
- samba Alpine 3.13 4.13.7-r0
- samba Alpine 3.24, Alpine 3.23, Alpine 3.22 +8 more 4.14.2-r0
alpine advisories ALPINE-CVE-2020-27840
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- samba Azure Linux 3.0 4.18.3-1
- libldb Azure Linux 3.0 2.7.2-1
azure linux advisories AZL-36997AZL-45414
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-27840 updated cvss 7.5
samba: Heap corruption via crafted DN strings
-
Red Hat Enterprise Linux 6 samba, samba4, samba4-dc, samba-swat, samba4-libs, samba4-pidl, +17 more Red Hat Enterprise Linux 7 ctdb, samba, samba-dc, ctdb-tests, samba-libs, samba-pidl, +18 more Red Hat Enterprise Linux 8 ctdb, samba, libnetapi, ctdb-tests, samba-libs, samba-pidl, +24 more Red Hat Enterprise Linux 9 ctdb, samba, libldb, ldb-tools, libnetapi, samba-libs, +27 more Red Hat Storage 3 ctdb, samba, samba-dc, ctdb-tests, samba-libs, samba-pidl, +21 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.86% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected products
- n/a samba
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/X5J3B6PN5XMXF3OHYBNHDKZ3XFSUGY4L/
vendor-advisory
-
debian.org
/security/2021/dsa-4884
vendor-advisory, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/ZXP3ONIY6MB4C5LDZV4YL5KJCES3UX24/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/VLZ74IF2N75VQSIHBL4B3P5WKWQCXSRY/
vendor-advisory
-
security.gentoo.org
/glsa/202105-22
vendor-advisory, third-party-advisory
-
samba.org
/samba/security/CVE-2020-27840.html
vendor-advisory
-
security.netapp.com
/advisory/ntap-20210326-0007/
third-party-advisory
-
lists.debian.org
/debian-lts-announce/2021/03/msg00036.html
mailing-list, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1941400
issue-tracking, third-party-advisory
Sources
- CVE List CVE-2020-27840
- NVD CVE-2020-27840
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.