CVE-2020-7247

Known Exploited Public Exploit

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.

Categories

9.8
CVSS
Severity: Critical
CVSS 3.1 •
CVSS 2.0 •
EPSS 94.04% Top 5%
KEV Since 
Vendor Advisory debian.org Vendor Advisory ubuntu.com Vendor Advisory fedoraproject.org Vendor Advisory openbsd.org
Affected: n/a n/a
Published at:
Updated at:

References

Link Tags
https://www.openbsd.org/security.html patch vendor advisory
http://www.openwall.com/lists/oss-security/2020/01/28/3 mailing list exploit third party advisory
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 patch
http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html exploit vdb entry third party advisory
https://seclists.org/bugtraq/2020/Jan/51 third party advisory mailing list
https://www.debian.org/security/2020/dsa-4611 mailing list third party advisory vendor advisory
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html exploit vdb entry third party advisory
https://www.kb.cert.org/vuls/id/390745 third party advisory us government resource
http://seclists.org/fulldisclosure/2020/Jan/49 mailing list exploit third party advisory
http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html exploit vdb entry third party advisory
http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html exploit vdb entry third party advisory
https://usn.ubuntu.com/4268-1/ third party advisory vendor advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ mailing list third party advisory vendor advisory
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html vdb entry third party advisory broken link

Frequently Asked Questions

What is the severity of CVE-2020-7247?
CVE-2020-7247 has been scored as a critical severity vulnerability.
How to fix CVE-2020-7247?
To fix CVE-2020-7247, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2020-7247 being actively exploited in the wild?
It is confirmed that CVE-2020-7247 is actively exploited. Be extra cautious if you are using vulnerable components. According to its EPSS score, there is a ~94% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.