CVE-2020-7247
Exploitation confirmed. First attested on 2022-03-25 by CISA-ADP, CISA KEV, GCVE · kevintel.
- Published2020-01-29
- WeaknessCWE-755 · CWE-78
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2020-01-2916:15CVE publishedNVD
- 2020-01-30Exploit-DB entryExploit-DB
- 2022-03-25Added to the CISA KEV catalogCISA KEV
- 2022-03-25Listed as exploited by GCVEGCVE
- 2022-03-25Exploitation first reportedCISA KEV
- 2025-02-0420:20SSVC exploitation set to activeCISA-ADP
Observed activity
isMalicious corpus · updated 2026-11-03 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2020-7247?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2020-7247?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 18.4 | = 18.04 | no fix published | NVD |
| 19.10 | = 19.10 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 9.0 | = 9.0 | no fix published | NVD |
| 10.0 | = 10.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 32.x | = 32 | no fix published | NVD |
1 more product in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- opensmtpdUbuntu:Pro:16.04:LTSall versions · fixed in 5.7.3p2-1ubuntu0.1~esm1
- opensmtpdUbuntu:Pro:16.04:LTSall versions · fixed in 5.7.3p2-1ubuntu0.1~esm2
- opensmtpdUbuntu:Pro:14.04:LTSall versions · fixed in 5.4.1p1-1ubuntu0.1~esm1
- opensmtpdUbuntu:18.04:LTSall versions · fixed in 6.0.3p1-1ubuntu0.1
- opensmtpdDebian:14all versions · fixed in 6.6.2p1-1
- opensmtpdDebian:13all versions · fixed in 6.6.2p1-1
- opensmtpdDebian:12all versions · fixed in 6.6.2p1-1
- opensmtpdDebian:10all versions · fixed in 6.0.3p1-5+deb10u3
16 more package ranges on OSV.dev
Vendor advisories
- CVE-2020-7247 Red Hat Product Security
opensmtpd: arbitrary commands execution in smtp_mailaddr in smtp_session.c via crafted SMTP session
Fix
- CISA’s required action: Apply updates per vendor instructions.due 2022-04-15
Advisories and patches
- github.comPatch
- www.openbsd.orgPatch · Vendor Advisory
Detection
read 2026-11-03 22:42 UTC- Nuclei template
- available ProjectDiscovery
- Proof-of-concept repositories
- 11 repositories, unverifiedFiroSolutions/cve-2020-7247-exploitsuperzerosec/cve-2020-7247r0lh/CVE-2020-7247QTranspose/CVE-2020-7247-exploitbytescrappers/CVE-2020-7247 PoC-in-GitHub
- Metasploit modules
- 1 moduleexploit/unix/smtp/opensmtpd_mail_from_rcerank: excellentModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
CISA Known Exploited Vulnerability
- Date Added
- 2022-03-25
- Patch Due Date
- 2022-04-15
- Ransomware Use
- Unknown
- Required Action
- Apply updates per vendor instructions.
Sources
- CISA KEVKEV entry2022-03-25
- ENISA EUVDexploitation2022-03-252022-03-25
- GCVEexploitation2022-03-25
- CISA-ADPSSVC decisionactive2025-02-04
- OpenCVESSVC decisionactive—
- CISA-ADPCVSS 3.19.82025-02-04
- NVDCVSS 3.19.8read 2026-10-23
- NVDCVSS 2.010read 2026-10-23
- CISA-ADPweakness (CWE)CWE-7552025-02-04
- NVDweakness (CWE)CWE-755, CWE-78read 2026-10-23
- FIRST EPSSEPSS score99.0 %read 2026-11-03
- PoC-in-GitHubproof of concept11read 2026-11-03
- Exploit-DBdetectionread 2026-11-03
- ProjectDiscoverydetectionread 2026-11-03
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- EUVD-2020-28374same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-rcw6-69h3-89fhsame flawGitHub Advisory Database · CC-BY-4.0
- exploit/unix/smtp/opensmtpd_mail_from_rceexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
- EDB-48051exploit referenceExploit-DB · BSD-3-Clause
- DSA-4611-1advisory covering several CVEsDebian · LicenseRef-unstated
- USN-4268-1advisory covering several CVEsUbuntu
- USN-4875-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2020-01-29
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-rcw6-69h3-89fh
Frequently asked questions
What is CVE-2020-7247?
Is CVE-2020-7247 actively exploited?
What is the CVSS score for CVE-2020-7247?
Running opensmtpd? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA KEV · CC0-1.0 (cisagov/kev-data)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GCVE · GCVE dump terms (preserve source attribution)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-rcw6-69h3-89fh
- Metasploit Framework · BSD-3-Clause
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0