5
CVSSv2

CVE-2020-27840

Published: 12/05/2021 Updated: 07/11/2023
CVSS v2 Base Score: 5 | Impact Score: 2.9 | Exploitability Score: 10
CVSS v3 Base Score: 7.5 | Impact Score: 3.6 | Exploitability Score: 3.9
VMScore: 445
Vector: AV:N/AC:L/Au:N/C:N/I:N/A:P

Vulnerability Summary

A security issue has been found in Samba before version 4.14.2. A DN may be represented in string form with arbitrary amounts of space around the component values. These spaces are supposed to be ignored, but invalid DNs strings with spaces may instead cause a zero byte to be written into out-of-bounds memory. An LDAP bind request can send a string DN as a username. This DN is necessarily parsed before the password is checked, so an attacker without real credentials can anonymously trigger this bug. The location of zero byte is a negative offset relative to the location of a dynamically allocated heap buffer; the exact offset depends on the DN string. While it is possible for an malicious user to cause non-fatal data corruption, usefully targeting this is likely to be difficult and the most likely outcome is a crash. The affected parsing routine is widely used. LDAP bind is not the only way to trigger the bug remotely, though it appears to be the only unauthenticated method.

Vulnerability Trend

Vulnerable Product Search on Vulmon Subscribe to Product

samba samba

debian debian linux 9.0

debian debian linux 10.0

fedoraproject fedora 32

fedoraproject fedora 33

fedoraproject fedora 34

Vendor Advisories

Debian Bug report logs - #985936 ldb: CVE-2020-27840 Package: src:ldb; Maintainer for src:ldb is Debian Samba Maintainers <pkg-samba-maint@listsaliothdebianorg>; Reported by: Salvatore Bonaccorso <carnil@debianorg> Date: Fri, 26 Mar 2021 11:51:31 UTC Severity: grave Tags: patch, pending, security, upstream Found ...
Multiple vulnerabilities have been discovered in ldb, a LDAP-like embedded database built on top of TDB CVE-2020-10730 Andrew Bartlett discovered a NULL pointer dereference and use-after-free flaw when handling ASQ and VLV LDAP controls and combinations with the LDAP paged_results feature CVE-2020-27840 Douglas Bagnall discovered ...
A security issue has been found in Samba before version 4142 A DN may be represented in string form with arbitrary amounts of space around the component values These spaces are supposed to be ignored, but invalid DNs strings with spaces may instead cause a zero byte to be written into out-of-bounds memory An LDAP bind request can send a stri ...