smtp_mailaddr in smtp_session.c in OpenSMTPD 6.6, as used in OpenBSD 6.6 and other products, allows remote attackers to execute arbitrary commands as root via a crafted SMTP session, as demonstrated by shell metacharacters in a MAIL FROM field. This affects the "uncommented" default configuration. The issue exists because of an incorrect return value upon failure of input validation.
Published 2020-01-29 16:15:13
Updated 2025-02-04 21:15:21
Source MITRE
View at NVD,   CVE.org

Products affected by CVE-2020-7247

CVE-2020-7247 is in the CISA Known Exploited Vulnerabilities Catalog

CISA vulnerability name:
OpenSMTPD Remote Code Execution Vulnerability
CISA required action:
Apply updates per vendor instructions.
CISA description:
smtp_mailaddr in smtp_session.c in OpenSMTPD, as used in OpenBSD and other products, allows remote attackers to execute arbitrary commands as root via a crafted SMTP session.
Notes:
https://nvd.nist.gov/vuln/detail/CVE-2020-7247
Added on 2022-03-25 Action due date 2022-04-15

Exploit prediction scoring system (EPSS) score for CVE-2020-7247

97.39%
Probability of exploitation activity in the next 30 days EPSS Score History
~ 100 %
Percentile, the proportion of vulnerabilities that are scored at or less

Metasploit modules for CVE-2020-7247

  • OpenSMTPD MAIL FROM Remote Code Execution
    Disclosure Date: 2020-01-28
    First seen: 2020-04-26
    exploit/unix/smtp/opensmtpd_mail_from_rce
    This module exploits a command injection in the MAIL FROM field during SMTP interaction with OpenSMTPD to execute a command as the root user. Authors: - Qualys - wvu <wvu@metasploit.com> - RageLtMan <rageltman@sempervictus>

CVSS scores for CVE-2020-7247

Base Score Base Severity CVSS Vector Exploitability Score Impact Score Score Source First Seen
10.0
HIGH AV:N/AC:L/Au:N/C:C/I:C/A:C
10.0
10.0
NIST
9.8
CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
3.9
5.9
134c704f-9b21-4f2e-91b3-4a467353bcc0 2025-02-04
9.8
CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
3.9
5.9
NIST

CWE ids for CVE-2020-7247

References for CVE-2020-7247

Jump to
This web site uses cookies for managing your session, storing preferences, website analytics and additional purposes described in our privacy policy.
By using this web site you are agreeing to CVEdetails.com terms of use!