# CVE-2020-7247: opensmtpd: smtp_mailaddr in smtp_session.c in OpenSMTPD 6.6, as used in OpenBSD 6.6 and other products, allows remote attackers...

CVE-2020-7247 is fixed in opensmtpd on 1 platform by opensmtpd 6.0.3p1-1ubuntu0.1 (version 6.0.3p1-1ubuntu0.1), released January 29, 2020. It is being exploited: CISA added it to the Known Exploited Vulnerabilities catalog on March 25, 2022. Patch Radar priority: Patch now.

- Web page: https://patchblox.com/security/cve/CVE-2020-7247
- Priority: Patch now
- CVSS: n/a (High)
- EPSS: 0.9897
- CISA KEV: listed Mar 25, 2022, federal due date Apr 15, 2022
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jan 29, 2020

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | opensmtpd Ubuntu 18.04.6 LTS (bionic) | 6.0.3p1-1ubuntu0.1 | [opensmtpd 6.0.3p1-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-opensmtpd-6.0.3p1-1ubuntu0.1.md) | Jan 29, 2020 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
