10

CVE-2020-7247: OpenSMTPD Remote Code Execution Vulnerability

CVSS: 10.0v2.0HighKEVAnalyzed
AliasesALPINE-CVE-2020-7247UBUNTU-CVE-2020-7247USN-4268-1
Published 29-01-2020Last modified 21-10-2025

Vulnerability summary

CVE-2020-7247 is a high (CVSS 10.0) OS Command Injection vulnerability in OpenBSD OpenSMTPD. It is known to be exploited: CISA lists it, first on 25-03-2022. EPSS estimates a 98.97% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 10 public exploits are recorded.

Overall risk
90/100
0100
Critical · default modelHow is this calculated?
CVSS score
10.0/10
010
High · v2.0 (NVD)
EPSS score
98.97%
0%100%
Critical · 0.00 pp in 30 days
KEVListedCISA
RansomwareNone recordedNo known use recorded
Public exploits10reference, exploit-database, metasploit

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 29-01-2020
    PublishedVulnerability first disclosed.
  2. 25-03-2022
    Added to CISA KEVOpenSMTPD Remote Code Execution Vulnerability
  3. 15-04-2022
    CISA remediation dueApply updates per vendor instructions.
  4. 21-10-2025
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

98.97%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

0.00 pp

From 98.97% on 18-09-2026

18-09-202618-10-2026
EPSS score
98.97%

Known exploited

Compare KEV catalogs
CISA KEVListed
Added
25-03-2022
Federal due date
15-04-2022

CISA required action

Apply updates per vendor instructions. nvd.nist.gov/vuln/detail/CVE-2020-7247

Public exploits

10 found
  • referenceUnverified

    Exploit Reference (openwall.com)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (packetstormsecurity.com)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (packetstormsecurity.com)

    Maturity: unknown

Show all 10 exploits
  • referenceUnverified

    Exploit Reference (seclists.org)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (packetstormsecurity.com)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (packetstormsecurity.com)

    Maturity: unknown

  • exploit-databaseremotelinuxVerified

    OpenSMTPD - MAIL FROM Remote Code Execution (Metasploit)

    Maturity: weaponized

  • exploit-databaseremotelinuxVerified

    OpenSMTPD 6.6.1 - Remote Code Execution

    Maturity: weaponized

  • exploit-databaseremoteopenbsdVerified

    OpenSMTPD 6.4.0 < 6.6.1 - Local Privilege Escalation + Remote Code Execution

    Maturity: weaponized

  • MetasploitMetasploitremoteVerified

    OpenSMTPD MAIL FROM Remote Code Execution

    exploit/unix/smtp/opensmtpd_mail_from_rce

    Maturity: weaponized

Weaknesses

CWE · root cause

Affected systems

Debian2 products
  • opensmtpd< 6.6.2p1-1 | < 6.0.2p1-2+deb9u2 | < 6.0.3p1-5+deb10u3
  • debian_linuxEOL9.0 | 10.0
Alpine1 product
  • opensmtpd< 6.6.2p1-r0
Canonical1 product
Fedoraproject1 product
Openbsd1 product
Ubuntu1 product
  • opensmtpd< 5.4.1p1-1ubuntu0.1~esm1 | < 5.7.3p2-1ubuntu0.1~esm1 | < 6.0.3p1-1ubuntu0.1

6 vendors · 7 products

References

25 links
Show all 25 references