Skip to content
OpenAdvisories
Critical · 9.8 Known exploited Scanner template Public exploit CVE-2020-7247 EUVD-2020-28374GHSA-rcw6-69h3-89fh

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 c…

Published Jan 29, 2020 · Updated Oct 21, 2025 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 opensmtpd 6.6.2p1-1 —
Debian 13 opensmtpd 6.6.2p1-1 —
Debian 12 opensmtpd 6.6.2p1-1 —
Debian 10 opensmtpd 6.0.3p1-5+deb10u3 DSA-4611-1
Debian 9 opensmtpd 6.0.2p1-2+deb9u2 DSA-4611-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS opensmtpd 6.0.3p1-1ubuntu0.1 USN-4268-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS opensmtpd 5.7.3p2-1ubuntu0.1~esm1 USN-4875-1
Ubuntu Pro 14.04 LTS opensmtpd 5.4.1p1-1ubuntu0.1~esm1 USN-4875-1
ReleasePackageFixed inAdvisory
Alpine v3.24 opensmtpd 6.6.2p1-r0 —
Alpine v3.23 opensmtpd 6.6.2p1-r0 —
Alpine v3.22 opensmtpd 6.6.2p1-r0 —
Alpine v3.21 opensmtpd 6.6.2p1-r0 —
Alpine v3.20 opensmtpd 6.6.2p1-r0 —
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 opensmtpd 6.6.2p1-r0 —
Alpine v3.18 opensmtpd 6.6.2p1-r0 —
Alpine v3.17 opensmtpd 6.6.2p1-r0 —
Alpine v3.16 opensmtpd 6.6.2p1-r0 —
Alpine v3.15 opensmtpd 6.6.2p1-r0 —
Alpine v3.14 opensmtpd 6.6.2p1-r0 —
Alpine v3.13 opensmtpd 6.6.2p1-r0 —
Alpine v3.12 opensmtpd 6.6.2p1-r0 —
Alpine v3.11 opensmtpd 6.6.2p1-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 3

GitHub 11 repositories · most starred shown

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Advisories 3

References