Researchers at cybersecurity firm Qualys have identified a potentially serious vulnerability in OpenSMTPD that can allow remote command execution with elevated privileges.
OpenSMTPD is the OpenBSD Project’s free and open source implementation of the Simple Mail Transfer Protocol (SMTP). The portable version of OpenSMTPD can run on various BSD and Linux distributions, as well as Apple’s Mac OS X operating system.
According to Qualys, OpenSMTPD is affected by a vulnerability that can allow an attacker to execute arbitrary shell commands with root privileges. The flaw can be exploited locally in OpenSMTPD’s default configuration, and both locally and remotely in the case of OpenSMTPD’s “uncommented” default configuration.
The vulnerability, tracked as CVE-2020-7247, exists in the smtp_mailaddr() function, which is responsible for validating sender and recipient email addresses. Attacks can be carried out via specially crafted emails.
In its advisory for CVE-2020-7247, Qualys says the flaw has been exploitable since May 2018. The company has shared technical details and there is a discussion on Hacker News about the vulnerability and its root cause.
The maintainers of OpenSMTPD have released patches for the vulnerability and they have urged users to apply them as soon as possible. They have also promised to share more information about why the weakness existed “when things settle down.”
This is not the first time Qualys has found vulnerabilities in OpenSMTPD. Back in 2015, the company conducted a security audit for the project and identified several flaws that could have been exploited to cause a DoS condition, leak information, escalate privileges, and execute arbitrary code.
Related: Libarchive Vulnerability Impacts Multiple Linux Distributions
Related: Serious Vulnerabilities in Linux Kernel Allow Remote DoS Attacks

Eduard Kovacs (@EduardKovacs) is a contributing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.
More from Eduard Kovacs
- Industry Reactions to Hive Ransomware Takedown: Feedback Friday
- US Reiterates $10 Million Reward Offer After Disruption of Hive Ransomware
- Hive Ransomware Operation Shut Down by Law Enforcement
- UK Gov Warns of Phishing Attacks Launched by Iranian, Russian Cyberspies
- Dozens of Cybersecurity Companies Announced Layoffs in Past Year
- Security Update for Chrome 109 Patches 6 Vulnerabilities
- New Open Source OT Security Tool Helps Address Impact of Upcoming Microsoft Patch
- Forward Networks Raises $50 Million in Series D Funding
Latest News
- Industry Reactions to Hive Ransomware Takedown: Feedback Friday
- Microsoft Urges Customers to Patch Exchange Servers
- Iranian APT Leaks Data From Saudi Arabia Government Under New Persona
- US Reiterates $10 Million Reward Offer After Disruption of Hive Ransomware
- Cyberattacks Target Websites of German Airports, Admin
- US Infiltrates Big Ransomware Gang: ‘We Hacked the Hackers’
- Tenable Launches $25 Million Early-Stage Venture Fund
- 820k Impacted by Data Breach at Zacks Investment Research
