Vulnerability Name:

CVE-2020-8794 (CCN-176751)

Assigned:2020-02-25
Published:2020-02-25
Updated:2022-10-08
Summary:OpenSMTPD before 6.6.4 allows remote code execution because of an out-of-bounds read in mta_io in mta_session.c for multi-line replies. Although this vulnerability affects the client side of OpenSMTPD, it is possible to attack a server because the server code launches the client code during bounce handling.
CVSS v3 Severity:9.8 Critical (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
9.1 Critical (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
9.8 Critical (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
9.1 Critical (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:10.0 High (CVSS v2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
10.0 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-125
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2020-8794

Source: MISC
Type: Exploit, Third Party Advisory, VDB Entry
http://packetstormsecurity.com/files/156633/OpenSMTPD-Out-Of-Bounds-Read-Local-Privilege-Escalation.html

Source: FULLDISC
Type: Mailing List, Third Party Advisory
20200227 LPE and RCE in OpenSMTPD's default install (CVE-2020-8794)

Source: MLIST
Type: Exploit, Mailing List, Third Party Advisory
[oss-security] 20200226 Re: LPE and RCE in OpenSMTPD's default install (CVE-2020-8794)

Source: MLIST
Type: Mailing List, Third Party Advisory
[oss-security] 20200301 Re: LPE and RCE in OpenSMTPD's default install (CVE-2020-8794)

Source: MLIST
Type: Mailing List, Third Party Advisory
[oss-security] 20200301 Re: LPE and RCE in OpenSMTPD's default install (CVE-2020-8794)

Source: MLIST
Type: Exploit, Mailing List, Third Party Advisory
[oss-security] 20210504 21Nails: Multiple vulnerabilities in Exim

Source: XF
Type: UNKNOWN
opensmtpd-cve20208794-command-exec(176751)

Source: FEDORA
Type: Mailing List, Patch, Third Party Advisory
FEDORA-2020-b92d7083ca

Source: CCN
Type: Packet Storm Security [02-25-2020]
OpenSMTPD Out-Of-Bounds Read

Source: CCN
Type: Packet Storm Security [03-05-2020]
OpenSMTPD Out-Of-Bounds Read / Local Privilege Escalation

Source: UBUNTU
Type: Patch, Third Party Advisory
USN-4294-1

Source: DEBIAN
Type: Third Party Advisory
DSA-4634

Source: EXPLOIT-DB
Type: EXPLOIT
Offensive Security Exploit Database [03-09-2020]

Source: MISC
Type: Third Party Advisory
https://www.openbsd.org/security.html

Source: CCN
Type: OpenSMTPD Web site
OpenSMTPD

Source: MISC
Type: Exploit, Mailing List, Third Party Advisory
https://www.openwall.com/lists/oss-security/2020/02/24/5

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2020-8794

Vulnerable Configuration:Configuration 1:
  • cpe:/a:opensmtpd:opensmtpd:*:*:*:*:*:*:*:* (Version < 6.6.4)

  • Configuration 2:
  • cpe:/o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*

  • Configuration 3:
  • cpe:/o:fedoraproject:fedora:31:*:*:*:*:*:*:*
  • OR cpe:/o:fedoraproject:fedora:32:*:*:*:*:*:*:*

  • Configuration 4:
  • cpe:/o:debian:debian_linux:9.0:*:*:*:*:*:*:*
  • OR cpe:/o:debian:debian_linux:10.0:*:*:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:opensmtpd:opensmtpd:6.6.0:-:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.ubuntu.bionic:def:202087940000000
    V
    CVE-2020-8794 on Ubuntu 18.04 LTS (bionic) - high.
    2020-02-25
    oval:com.ubuntu.xenial:def:202087940000000
    V
    CVE-2020-8794 on Ubuntu 16.04 LTS (xenial) - high.
    2020-02-25
    BACK
    opensmtpd opensmtpd *
    canonical ubuntu linux 18.04
    canonical ubuntu linux 19.10
    fedoraproject fedora 31
    fedoraproject fedora 32
    debian debian linux 9.0
    debian debian linux 10.0
    opensmtpd opensmtpd 6.6.0 -