[ CVE-2020-7247 · Published 29 Jan 2020 ]
OpenSMTPD Remote Code Execution Vulnerability
Exploited · CISA KEV CVSS 9.8
EPSS 99%Fix available
[ Why it matters ]Priority signals
- Exploited in the wild: on CISA's Known Exploited Vulnerabilities list since 2022-03-25
- EPSS: 99% chance of exploitation in the next 30 days (higher than 100% of CVEs)
- Critical severity: CVSS 9.8
[ Description ]Official 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.
CISA: 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.
[ Fixes ]Fixes and patches
CISA required action (US federal deadline 15 Apr 2022): Apply updates per vendor instructions.
- Patch on github.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
- Patch on openbsd.orgVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
[ References ]References
- packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execut…ExploitThird Party AdvisoryVDB Entry
- packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.htmlExploitThird Party AdvisoryVDB Entry
- packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.htmlExploitThird Party AdvisoryVDB Entry
- packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.htmlExploitThird Party AdvisoryVDB Entry
- packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.htmlBroken LinkThird Party AdvisoryVDB Entry
- seclists.org/fulldisclosure/2020/Jan/49ExploitMailing ListThird Party Advisory
- www.openwall.com/lists/oss-security/2020/01/28/3ExploitMailing ListThird Party Advisory
- github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45Patch
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/messag…Mailing ListThird Party Advisory
- seclists.org/bugtraq/2020/Jan/51Mailing ListThird Party Advisory
- usn.ubuntu.com/4268-1Third Party Advisory
- www.debian.org/security/2020/dsa-4611Mailing ListThird Party Advisory
- www.kb.cert.org/vuls/id/390745Third Party AdvisoryUS Government Resource
- www.openbsd.org/security.htmlPatchVendor Advisory
- www.cisa.gov/known-exploited-vulnerabilities-catalogUS Government Resource