CRITICAL KEV
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 ·Due Apr 15, 2022
9.8
CRITICALCVSS 3.1
EPSS 98.97%
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 products
No data.
Configuration 2
OR
- 9.0
- 10.0
Configuration 3
- 32
Configuration 4
OR
- 18.04
- 19.10
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Weaknesses (2)
References (15)
- http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html x_refsource_MISCExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html x_refsource_MISCExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html x_refsource_MISCExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html x_refsource_MISCExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html x_refsource_MISCBroken LinkThird Party AdvisoryVDB Entry
- http://seclists.org/fulldisclosure/2020/Jan/49 mailing-listx_refsource_FULLDISCExploitMailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2020/01/28/3 x_refsource_MISCExploitMailing ListThird Party Advisory
- https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 x_refsource_CONFIRMPatch
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ vendor-advisoryx_refsource_FEDORAMailing ListThird Party Advisory
- https://seclists.org/bugtraq/2020/Jan/51 mailing-listx_refsource_BUGTRAQMailing ListThird Party Advisory
- https://usn.ubuntu.com/4268-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-7247 government-resourceUS Government Resource
- https://www.debian.org/security/2020/dsa-4611 vendor-advisoryx_refsource_DEBIANMailing ListThird Party Advisory
- https://www.kb.cert.org/vuls/id/390745 third-party-advisoryx_refsource_CERT-VNThird Party AdvisoryUS Government Resource
- https://www.openbsd.org/security.html x_refsource_CONFIRMPatchVendor Advisory
Change history (0)
No recorded changes yet.
Sources
CVE.org / MITRE
Status PUBLISHED
Assigner mitre
Published Jan 29, 2020
Updated Oct 21, 2025
Reserved Jan 20, 2020
Link CVE-2020-7247
CISA Vulnrichment
Updated Feb 4, 2025