Command Execution Vulnerability in OpenSMTPD
CVE-2020-7247
Key Information:
Timeline
Exploit known 740 days after it was published
- ๐ฆ
CISA Reported
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
Vulnerability published
Vulnerability Reserved
Badges
How risky is it?
- Yes: Works over the network, no login needed
- Yes: Public exploit code (7 proof-of-concepts)
- Yes: Attacked in the wild (on CISA's KEV list)
- No: No ransomware use seen
Our verdict
Patch now
Attackers are using it. Patch or mitigate today.
What to do
1Check the vendor's fix
No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.
Read the vendor advisory โ2Follow CISA's required action
Apply updates per vendor instructions.
3Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach Opensmtpd. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
4Look for signs of compromise
It is being exploited in the wild, so check logs on exposed Opensmtpd systems for unusual requests or new processes from before you patched. The 7 public proof-of-concepts show what an attack looks like.
5Why it's rated "Patch now"
- CISA lists it as a Known Exploited Vulnerability, so it is being attacked in the wild.
- Exploit code is public, so attacks are easy to copy.
- It can be exploited remotely without credentials.
- EPSS gives it a 98.9% chance of exploitation in the next 30 days.
- Its CVSS severity is critical (9.8).
What is CVE-2020-7247?
The smtp_mailaddr function in smtp_session.c within OpenSMTPD versions 6.6 and OpenBSD 6.6 is vulnerable to command execution. Remote attackers can exploit this vulnerability by sending specially crafted SMTP commands, particularly utilizing shell metacharacters in the MAIL FROM field. This flaw arises from improper handling of return values during input validation, specifically within uncommented default configurations, allowing attackers to potentially execute arbitrary commands with root privileges.
CISA has reported CVE-2020-7247
CISA provides regional cyber and physical services to support security and resilience across the United States. CISA monitor the most dangerous vulnerabilities and have identified CVE-2020-7247 as being exploited . Neither CISA nor our sources have linked it to ransomware campaigns so far.
The CISA's recommendation is: Apply updates per vendor instructions.
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
More OpenBSD Vulnerabilities
Password Authentication Bypass in OpenSSH on Linux Systems Using Musl libc
Vulnerability in OpenSSH
Vulnerability in OpenSSH
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction