Skip to content
Fencer Intel
high 7.5

CVE-2020-27840 json

A flaw was found in samba.

published 5y ago modified 4mo 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

  • samba Arch Linux 4.14.2-1
  • ldb Arch Linux 1:2.3.0-1

arch linux advisories AVG-1732AVG-1734

Is CVE-2020-27840 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

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 more
    not 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-09).

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

References

Sources

Fencer Intel 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.