Vulnerabilities / CVE-2020-7247

critical

CVE-2020-7247

smtp_mailaddr in smtp_session.c in OpenSMTPD 6.6, as used in OpenBSD 6 ...

Published Modified CWE 78, 755
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

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

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Ubuntu (high).

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.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.11opensmtpd6.6.2p1-r0
alpine 3.12opensmtpd6.6.2p1-r0
alpine 3.13opensmtpd6.6.2p1-r0
alpine 3.14opensmtpd6.6.2p1-r0
alpine 3.15opensmtpd6.6.2p1-r0
alpine 3.16opensmtpd6.6.2p1-r0
alpine 3.17opensmtpd6.6.2p1-r0
alpine 3.18opensmtpd6.6.2p1-r0
alpine 3.19opensmtpd6.6.2p1-r0
alpine 3.20opensmtpd6.6.2p1-r0
alpine 3.21opensmtpd6.6.2p1-r0
alpine 3.22opensmtpd6.6.2p1-r0
Show all 27 entries from 27 sources
SourcePackageFixed in
alpine 3.11opensmtpd6.6.2p1-r0
alpine 3.12opensmtpd6.6.2p1-r0
alpine 3.13opensmtpd6.6.2p1-r0
alpine 3.14opensmtpd6.6.2p1-r0
alpine 3.15opensmtpd6.6.2p1-r0
alpine 3.16opensmtpd6.6.2p1-r0
alpine 3.17opensmtpd6.6.2p1-r0
alpine 3.18opensmtpd6.6.2p1-r0
alpine 3.19opensmtpd6.6.2p1-r0
alpine 3.20opensmtpd6.6.2p1-r0
alpine 3.21opensmtpd6.6.2p1-r0
alpine 3.22opensmtpd6.6.2p1-r0
alpine 3.23opensmtpd6.6.2p1-r0
alpine 3.24opensmtpd6.6.2p1-r0
alpine edgeopensmtpd6.6.2p1-r0
debian 10opensmtpd6.0.3p1-5+deb10u3
debian 11opensmtpd6.6.2p1-1
debian 12opensmtpd6.6.2p1-1
debian 13opensmtpd6.6.2p1-1
debian 14opensmtpd6.6.2p1-1
debian 9opensmtpd6.0.2p1-2+deb9u2
echoopensmtpd6.6.2p1-1
ubuntu 14.04-ESMopensmtpd5.4.1p1-1ubuntu0.1~esm1
ubuntu 16.04-ESMopensmtpd5.7.3p2-1ubuntu0.1~esm1
ubuntu 18.04opensmtpd6.0.3p1-1ubuntu0.1
ubuntu 18.04-ESMopensmtpd6.0.3p1-1ubuntu0.1
ubuntu 19.10opensmtpd6.0.3p1-6ubuntu0.1

References

All 22 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.