Skip to content
Vulnerability Intelligence

CVE-2020-7247

CriticalExploitedPublic exploit

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 Oct 9, 2026 · Also known as ALPINE-CVE-2020-7247, 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. Public exploit code is available.
  • 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.

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

Exploited in the wild

Yes

4 catalog listings

Public exploit code

Available

Proof-of-concept or weaponized module

Get the full CVE-2020-7247 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

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

39 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.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

    Oct 9, 2026

Weakness Type

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

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2020-7247 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo