ID CVE-2020-8793
Summary OpenSMTPD before 6.6.4 allows local users to read arbitrary files (e.g., on some Linux distributions) because of a combination of an untrusted search path in makemap.c and race conditions in the offline functionality in smtpd.c.
References
Vulnerable Configurations
  • cpe:2.3:a:opensmtpd:opensmtpd:5.0:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.0:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.0:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.0:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.2.1:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.2.1:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.2.1:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.2.1:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.3:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.3:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.3:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.3:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.3.1:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.3.1:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.3.1:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.3.1:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.3.2:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.3.2:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.3.2:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.3.2:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.3.3:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.3.3:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.3.3:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.3.3:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.4:*:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.4:*:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.4.1:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.4.1:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.4.1:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.4.1:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.4.2:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.4.2:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.4.2:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.4.2:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.4.4:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.4.4:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.4.4:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.4.4:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.4.5:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.4.5:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.4.5:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.4.5:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.4.6:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.4.6:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.4.6:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.4.6:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.4.6-2:*:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.4.6-2:*:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.7.1:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.7.1:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.7.1:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.7.1:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.7.2:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.7.2:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.7.2:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.7.2:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.7.3:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.7.3:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.7.3:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.7.3:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.7.3:p2:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.7.3:p2:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.9.1:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.9.1:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.9.1:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.9.1:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.9.2:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.9.2:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:5.9.2:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:5.9.2:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.0.0:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.0.0:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.0.0:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.0.0:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.0.2:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.0.2:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.0.2:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.0.2:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.0.3:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.0.3:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.0.3:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.0.3:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.4.0:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.4.0:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.4.0:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.4.0:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.4.0:p2:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.4.0:p2:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.4.1:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.4.1:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.4.1:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.4.1:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.4.1:p2:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.4.1:p2:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.4.2:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.4.2:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.4.2:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.4.2:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.6.0:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.6.0:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.6.0:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.6.0:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.6.1:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.6.1:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.6.1:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.6.1:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.6.2:-:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.6.2:-:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.6.2:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.6.2:p1:*:*:*:*:*:*
  • cpe:2.3:a:opensmtpd:opensmtpd:6.6.3:p1:*:*:*:*:*:*
    cpe:2.3:a:opensmtpd:opensmtpd:6.6.3:p1:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
  • cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
    cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
  • cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*
    cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*
CVSS
Base: 4.7 (as of 01-01-2022 - 19:30)
Impact:
Exploitability:
CWE CWE-367
CAPEC
  • Leveraging Race Conditions via Symbolic Links
    This attack leverages the use of symbolic links (Symlinks) in order to write to sensitive files. An attacker can create a Symlink link to a target file not otherwise accessible to her. When the privileged program tries to create a temporary file with the same name as the Symlink link, it will actually write to the target file pointed to by the attackers' Symlink link. If the attacker can insert malicious content in the temporary file she will be writing to the sensitive file by using the Symlink. The race occurs because the system checks if the temporary file exists, then creates the file. The attacker would typically create the Symlink during the interval between the check and the creation of the temporary file.
  • Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions
    This attack targets a race condition occurring between the time of check (state) for a resource and the time of use of a resource. A typical example is file access. The adversary can leverage a file access race condition by "running the race", meaning that they would modify the resource between the first time the target program accesses the file and the time the target program uses the file. During that period of time, the adversary could replace or modify the file, causing the application to behave unexpectedly.
Access
VectorComplexityAuthentication
LOCAL MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE NONE NONE
cvss-vector via4 AV:L/AC:M/Au:N/C:C/I:N/A:N
refmap via4
fedora FEDORA-2020-b92d7083ca
fulldisc 20200227 Local information disclosure in OpenSMTPD (CVE-2020-8793)
misc https://www.openbsd.org/security.html
mlist [oss-security] 20200224 Local information disclosure in OpenSMTPD (CVE-2020-8793)
ubuntu USN-4294-1
Last major update 01-01-2022 - 19:30
Published 25-02-2020 - 17:15
Last modified 01-01-2022 - 19:30
Back to Top