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.
https://www.kb.cert.org/vuls/id/390745
https://www.debian.org/security/2020/dsa-4611
https://usn.ubuntu.com/4268-1/
https://github.com/trishab0807-lgtm/home-network-scanner
https://github.com/g1san/Agents-for-Vulnerable-Dockers-and-related-Benchmarks
https://github.com/minhluannguyen/CVE-2020-7247-reproducer
https://github.com/Orange-OpenSource/decret
https://github.com/aurelien-vilminot/ENSIMAG_EXPLOIT_CVE1_3A
https://github.com/presentdaypresenttime/shai_hulud
https://github.com/Sergio928/OpenSMTPD-6.6.1---Remote-Code-Execution---Linux-remote-Exploit
https://www.openbsd.org/security.html
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-7247
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45
http://www.openwall.com/lists/oss-security/2020/01/28/3
http://seclists.org/fulldisclosure/2020/Jan/49
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html
http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html
http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html