CVE-2020-7247
Critical 9.8KEV · exploitedPublic exploit ×3Fix status unknownOpenSMTPD Remote Code Execution Vulnerability
Record last updated
CVSS score
Critical on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Among the highest-scored CVEs. A prediction, not evidence.
CISA remediation deadline
Passed 1681 days ago for U.S. federal agencies
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.
Weakness: CWE-755, CWE-78
Patching and mitigation
- Patch status
- Unknown: no source documents a fix
- Mitigation
- None documented
- Vendor guidance
- debian.org (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| OpenBSD | OpenSMTPD | Not documented | Not documented | CISA KEV |
Timeline
Disclosure
CVE record published by mitre
Source: CVE Program (opens in a new tab)
25 Mar 2022KEV
Added to the CISA Known Exploited Vulnerabilities catalog
Source: CISA KEV (opens in a new tab)
25 Mar 2022Exploitation
Exploitation confirmed by CISA KEV
Source: CISA KEV (opens in a new tab)
Vendor guidance and references
- FEDORA-2020-b92d7083ca (opens in a new tab)vendor-advisory, x_refsource_fedora, x_transferred
- USN-4268-1 (opens in a new tab)vendor-advisory, x_refsource_ubuntu, x_transferred
- DSA-4611 (opens in a new tab)vendor-advisory, x_refsource_debian, x_transferred
- 20200131 LPE and RCE in OpenSMTPD (CVE-2020-7247) (opens in a new tab)mailing-list, x_refsource_fulldisc, x_transferred
- http://www.openwall.com/lists/oss-security/2020/01/28/3 (opens in a new tab)x_refsource_misc, x_transferred
- https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 (opens in a new tab)x_refsource_confirm, x_transferred
- https://nvd.nist.gov/vuln/detail/CVE-2020-7247 (opens in a new tab)government
- 20200129 [SECURITY] [DSA 4611-1] opensmtpd security update (opens in a new tab)mailing-list, x_refsource_bugtraq, x_transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-7247 (opens in a new tab)government-resource
- VU#390745 (opens in a new tab)third-party-advisory, x_refsource_cert-vn, x_transferred
- https://www.openbsd.org/security.html (opens in a new tab)x_refsource_confirm, x_transferred
Public exploit code
Exploit or proof-of-concept code is publicly available on Exploit-DB. Shown as a prioritization and defensive-testing signal — treat exploit code as hostile and run it only against systems you are authorized to test.
- Exploit-DB 47984 (verified) (opens in a new tab)3 entries on Exploit-DB