{"api_version":"1","generated_at":"2026-04-22T22:49:26+00:00","cve":"CVE-2020-7247","urls":{"html":"https://cve.report/CVE-2020-7247","api":"https://cve.report/api/cve/CVE-2020-7247.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-7247","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-7247"},"summary":{"title":"CVE-2020-7247","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2020-01-29 16:15:00","updated_at":"2023-11-07 03:25:00"},"problem_types":["CWE-78","CWE-755"],"metrics":[],"references":[{"url":"https://www.debian.org/security/2020/dsa-4611","name":"DSA-4611","refsource":"DEBIAN","tags":["Third Party Advisory"],"title":"Debian -- Security Information -- DSA-4611-1 opensmtpd","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://seclists.org/fulldisclosure/2020/Jan/49","name":"20200131 LPE and RCE in OpenSMTPD (CVE-2020-7247)","refsource":"FULLDISC","tags":[],"title":"Full Disclosure: LPE and RCE in OpenSMTPD (CVE-2020-7247)","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html","name":"http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html","refsource":"MISC","tags":[],"title":"OpenSMTPD 6.6.1 Local Privilege Escalation ≈ Packet Storm","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/","name":"FEDORA-2020-b92d7083ca","refsource":"","tags":[],"title":"[SECURITY] Fedora 32 Update: opensmtpd-6.6.4p1-2.fc32 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://usn.ubuntu.com/4268-1/","name":"USN-4268-1","refsource":"UBUNTU","tags":[],"title":"USN-4268-1: OpenSMTPD vulnerability | Ubuntu security notices","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/","name":"FEDORA-2020-b92d7083ca","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 32 Update: opensmtpd-6.6.4p1-2.fc32 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html","name":"http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html","refsource":"MISC","tags":["Third Party Advisory"],"title":"OpenSMTPD 6.6.2 Remote Code Execution ≈ Packet Storm","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html","name":"http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html","refsource":"MISC","tags":[],"title":"OpenSMTPD MAIL FROM Remote Code Execution ≈ Packet Storm","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html","name":"http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html","refsource":"MISC","tags":["Exploit","Third Party Advisory","VDB Entry"],"title":"OpenBSD OpenSMTPD Privilege Escalation / Code Execution ≈ Packet Storm","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.openwall.com/lists/oss-security/2020/01/28/3","name":"http://www.openwall.com/lists/oss-security/2020/01/28/3","refsource":"MISC","tags":["Exploit","Mailing List","Third Party Advisory"],"title":"oss-security - LPE and RCE in OpenSMTPD (CVE-2020-7247)","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html","name":"http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html","refsource":"MISC","tags":[],"title":"OpenBSD OpenSMTPD 6.6 Remote Code Execution ≈ Packet Storm","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.kb.cert.org/vuls/id/390745","name":"VU#390745","refsource":"CERT-VN","tags":[],"title":"VU#390745 - OpenSMTPD vulnerable to local privilege escalation and remote code execution","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.openbsd.org/security.html","name":"https://www.openbsd.org/security.html","refsource":"CONFIRM","tags":["Patch","Vendor Advisory"],"title":"OpenBSD Security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://seclists.org/bugtraq/2020/Jan/51","name":"20200129 [SECURITY] [DSA 4611-1] opensmtpd security update","refsource":"BUGTRAQ","tags":["Third Party Advisory"],"title":"Bugtraq: [SECURITY] [DSA 4611-1] opensmtpd security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45","name":"https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45","refsource":"CONFIRM","tags":["Patch","Third Party Advisory"],"title":"Fix a security vulnerability discovered by Qualys which can lead to a · openbsd/src@9dcfda0 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-7247","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7247","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2020","cve_id":"7247","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"7247","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"19.10","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"7247","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"7247","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"7247","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"7247","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"7247","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"32","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"7247","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"openbsd","cpe5":"opensmtpd","cpe6":"6.6","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"7247","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"openbsd","cpe5":"opensmtpd","cpe6":"6.6","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":{"cve_year":"2020","cve_id":"7247","cve":"CVE-2020-7247","vendorProject":"OpenBSD","product":"OpenSMTPD","vulnerabilityName":"OpenSMTPD Remote Code Execution Vulnerability","dateAdded":"2022-03-25","shortDescription":"smtp_mailaddr in smtp_session.c in OpenSMTPD, as used in OpenBSD and other products, allows remote attackers to execute arbitrary commands as root via a crafted SMTP session.","requiredAction":"Apply updates per vendor instructions.","dueDate":"2022-04-15","knownRansomwareCampaignUse":"Unknown","notes":"https://nvd.nist.gov/vuln/detail/CVE-2020-7247","cwes":"CWE-755,CWE-78","catalogVersion":"2026.04.22","updated_at":"2026-04-22 20:03:10"},"epss":{"cve_year":"2020","cve_id":"7247","cve":"CVE-2020-7247","epss":"0.940760000","percentile":"0.999060000","score_date":"2026-04-21","updated_at":"2026-04-22 00:07:42"},"legacy_qids":[{"cve":"CVE-2020-7247","qid":"500482","title":"Alpine Linux Security Update for opensmtpd"},{"cve":"CVE-2020-7247","qid":"505195","title":"Alpine Linux Security Update for opensmtpd"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2020-7247","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"refsource":"CONFIRM","name":"https://www.openbsd.org/security.html","url":"https://www.openbsd.org/security.html"},{"refsource":"MISC","name":"http://www.openwall.com/lists/oss-security/2020/01/28/3","url":"http://www.openwall.com/lists/oss-security/2020/01/28/3"},{"refsource":"CONFIRM","name":"https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45","url":"https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45"},{"refsource":"MISC","name":"http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html","url":"http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html"},{"refsource":"BUGTRAQ","name":"20200129 [SECURITY] [DSA 4611-1] opensmtpd security update","url":"https://seclists.org/bugtraq/2020/Jan/51"},{"refsource":"DEBIAN","name":"DSA-4611","url":"https://www.debian.org/security/2020/dsa-4611"},{"refsource":"MISC","name":"http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html","url":"http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html"},{"refsource":"CERT-VN","name":"VU#390745","url":"https://www.kb.cert.org/vuls/id/390745"},{"refsource":"FULLDISC","name":"20200131 LPE and RCE in OpenSMTPD (CVE-2020-7247)","url":"http://seclists.org/fulldisclosure/2020/Jan/49"},{"refsource":"MISC","name":"http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html","url":"http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html"},{"refsource":"MISC","name":"http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html","url":"http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html"},{"refsource":"UBUNTU","name":"USN-4268-1","url":"https://usn.ubuntu.com/4268-1/"},{"refsource":"FEDORA","name":"FEDORA-2020-b92d7083ca","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/"},{"refsource":"MISC","name":"http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html","url":"http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html"}]}},"nvd":{"publishedDate":"2020-01-29 16:15:00","lastModifiedDate":"2023-11-07 03:25:00","problem_types":["CWE-78","CWE-755"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":10},"severity":"HIGH","exploitabilityScore":10,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:openbsd:opensmtpd:6.6:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2020","CveId":"7247","Ordinal":"167523","Title":"CVE-2020-7247","CVE":"CVE-2020-7247","Year":"2020"},"notes":[{"CveYear":"2020","CveId":"7247","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2020","CveId":"7247","Ordinal":"2","NoteData":"2020-01-29","Type":"Other","Title":"Published"},{"CveYear":"2020","CveId":"7247","Ordinal":"3","NoteData":"2021-04-06","Type":"Other","Title":"Modified"}]}}}