# CVE-2020-27840: A flaw was found in samba.

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.86%, higher than 91% of CVEs (2026-11-30)
- Published: 2021-05-12T14:06:16.000Z
- Modified: 2026-06-17T03:09:43.100Z
- Weaknesses: CWE-125
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- samba: samba 4.14.1, samba 4.13.6, samba 4.12.13
- samba samba: from 4.0.0 before 4.12.13; from 4.13.0 before 4.13.6; from 4.14.0 before 4.14.1
- debian debian_linux: 9.0; 10.0
- fedoraproject fedora: 32; 33; 34

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://security.netapp.com/advisory/ntap-20210326-0007/> (third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X5J3B6PN5XMXF3OHYBNHDKZ3XFSUGY4L/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/03/msg00036.html> (mailing-list, third-party-advisory)
- <https://www.debian.org/security/2021/dsa-4884> (third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZXP3ONIY6MB4C5LDZV4YL5KJCES3UX24/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VLZ74IF2N75VQSIHBL4B3P5WKWQCXSRY/> (vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1941400> (issue-tracking, third-party-advisory)
- <https://www.samba.org/samba/security/CVE-2020-27840.html> (vendor-advisory)
- <https://security.gentoo.org/glsa/202105-22> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2020-27840](https://www.cve.org/CVERecord?id=CVE-2020-27840), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-27840](https://nvd.nist.gov/vuln/detail/CVE-2020-27840), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-27840 · Whole record: https://cve.day/CVE-2020-27840.json · Rebuilt by cve.day 2026-11-25T22:57:57.910Z
