Skip to content
Critical

CVE-2020-7247Opensmtpd OS Command Injection

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.

Published Jan 29, 2020 · Updated Nov 29, 2026 · Also known as ALPINE-CVE-2020-7247, CLEANSTART-2024-GM77139, DEBIAN-CVE-2020-7247, DSA-4611-1, UBUNTU-CVE-2020-7247, USN-4268-1, USN-4875-1

Key Facts

Patch immediately
  • CVE-2020-7247 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Opensmtpd (Openbsd), Ubuntu Linux (Canonical), Debian Linux and 1 more product.
  • It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Mar 25, 2022. A public exploit is reported by tracking sources, but no code link is listed yet.
  • EPSS estimates a 99% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Opensmtpd 5.4.1p1-1ubuntu0.1~esm1, Opensmtpd 5.7.3p2-1ubuntu0.1~esm1, Opensmtpd 5.7.3p2-1ubuntu0.1~esm2.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

Scores

CVSS v3.1

9.8

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

99%

Higher than 99.9% of all scored CVEs

Exploit maturity

Exploited (KEV)

ATLAS score

86/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Mar 25, 2022

786 days after publication

Federal due date

Apr 15, 2022

Overdue

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Exploited (KEV)

Public exploit code

8

Proof-of-concept links

In-the-wild evidence

4

Reports of active use

Required action (CISA): Apply updates per vendor instructions.

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.

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
CISA KEVMar 25, 2022Apr 15, 2022Not reported
Industry KEV feedMar 25, 2022Apr 15, 2022Not reported
CIRCL KEVMar 25, 2022Apr 15, 2022Not reported
ENISA EUVDMar 25, 2022n/aNot reported

Required action: Apply updates per vendor instructions.

Affected Products

40 affected entries in total
ProductAffected versionsFixed in
OpensmtpdOpenbsd6.66.6.2p1-1
Ubuntu LinuxCanonical18.04, 19.10n/a
Debian LinuxDebian10.0, 9.0n/a
FedoraFedoraproject32n/a

Patched Releases

Opensmtpd

5.4.1p1-1ubuntu0.1~esm1, 5.7.3p2-1ubuntu0.1~esm1, 5.7.3p2-1ubuntu0.1~esm2, 6.0.2p1-2+deb9u2, 6.0.3p1-1ubuntu0.1, 6.0.3p1-5+deb10u3, 6.6.2_p1-r0, 6.6.2p1-1, 6.6.2p1-r0

Timeline

  1. Publicly disclosed

    Jan 29, 2020

  2. Added to CISA KEV

    Mar 25, 2022

  3. Added to Industry KEV feed

    Mar 25, 2022

  4. Added to CIRCL KEV

    Mar 25, 2022

  5. Added to ENISA EUVD

    Mar 25, 2022

  6. Last updated

    Nov 29, 2026

Weakness Type

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command
  • CWE-755 Improper Handling of Exceptional Conditions

FAQ

Common Questions.

Is CVE-2020-7247 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Dec 3, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.