CVE-2020-7247: Vulnerability in OpenBSD Opensmtpd
Actively exploited. 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.
Exploited in the wild, CWE-78, CWE-755
- Exploitation
- Confirmed 25 Mar 2022
- Severity
- 9.8 of 10
- Attack likelihood
- Unknown
- Fix
- None recorded
- Patch deadline
- Agencies by 15 Apr 2022
Details
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-78, CWE-755
- Published
- 29 Jan 2020
- Last change
- 17 Jun 2026
Affected products
Affected versions and the first fixed release
- OpenBSD Opensmtpd Version 6.6. No fixed version recorded
- Debian Linux Versions 9.0, 10.0. No fixed version recorded
- Fedoraproject Fedora Version 32. No fixed version recorded
- Canonical Ubuntu Linux Versions 18.04, 19.10. No fixed version recorded
Advisories
Vendor and security advisories
Exploit code
Public exploits and proofs of concept, handle with care
- packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execut...
- packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html
- packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html
- packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html
- packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html
Related
- Opensmtpd vulnerabilities Recent advisories, watch this product
- Exploited vulnerabilities Explorer, exploited only