RCE in Openbsd Opensmtpd

CVE-2020-7247

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 f…

Vulnerability class: Command Injection (OS Command Injection)

EPSS: 0.989 (99.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

CISA KEV (Known Exploited Vulnerabilities)

This CVE is on the CISA KEV catalog, added on . CISA KEV inclusion means CISA has confirmed in-the-wild exploitation; US federal agencies are required to remediate within a published due date.

BOD 22-01 due date: .

Required action: Apply updates per vendor instructions.

Public proof-of-concept exploits

References

  • cve@mitre.org (x_refsource_CONFIRM, Patch, Vendor Advisory)
  • cve@mitre.org (Exploit, Mailing List, Third Party Advisory, x_refsource_MISC)
  • cve@mitre.org (x_refsource_CONFIRM, Patch)
  • cve@mitre.org (Exploit, VDB Entry, Third Party Advisory, x_refsource_MISC)
  • cve@mitre.org (mailing-list, x_refsource_BUGTRAQ, Mailing List, Third Party Advisory)
  • cve@mitre.org (vendor-advisory, Mailing List, Third Party Advisory, x_refsource_DEBIAN)
  • cve@mitre.org (Exploit, VDB Entry, Third Party Advisory, x_refsource_MISC)
  • cve@mitre.org (US Government Resource, x_refsource_CERT-VN, Third Party Advisory, third-party-advisory)
  • cve@mitre.org (mailing-list, Exploit, x_refsource_FULLDISC, Mailing List, Third Party Advisory)
  • cve@mitre.org (Exploit, VDB Entry, Third Party Advisory, x_refsource_MISC)

Frequently asked questions

What is CVE-2020-7247?
CVE-2020-7247 is a critical-severity vulnerability in Openbsd Opensmtpd, classified under OS Command Injection. CVSS score: 9.8/10. Published 2020-01-29.
How severe is CVE-2020-7247?
Critical severity. CVSS v3 base score is 9.8 out of 10.
Is CVE-2020-7247 known to be exploited?
Yes. CVE-2020-7247 is listed in the CISA Known Exploited Vulnerabilities catalog (added 2022-03-25), indicating it is being actively exploited. 50 public proof-of-concept repositories are indexed.