Known Exploited Vulnerability
9.8
CRITICAL
CVE-2020-7247
OpenSMTPD Remote Code Execution Vulnerability - [Actively Exploited]
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.

INFO

Published Date :

Jan. 29, 2020, 4:15 p.m.

Last Modified :

Nov. 21, 2024, 5:36 a.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

3.9
CISA Notification
CISA KEV (Known Exploited Vulnerabilities)

For the benefit of the cybersecurity community and network defenders—and to help every organization better manage vulnerabilities and keep pace with threat activity—CISA maintains the authoritative source of vulnerabilities that have been exploited in the wild.

Description :

smtp_mailaddr in smtp_session.c in OpenSMTPD, as used in OpenBSD and other products, allows remote attackers to execute arbitrary commands as root via a crafted SMTP session.

Required Action :

Apply updates per vendor instructions.

Notes :

https://nvd.nist.gov/vuln/detail/CVE-2020-7247

Public PoC/Exploit Available at Github

CVE-2020-7247 has a 35 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2020-7247 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Canonical ubuntu_linux
1 Fedoraproject fedora
1 Debian debian_linux
1 Openbsd opensmtpd
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2020-7247.

URL Resource
http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html Broken Link Third Party Advisory VDB Entry
http://seclists.org/fulldisclosure/2020/Jan/49 Exploit Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2020/01/28/3 Exploit Mailing List Third Party Advisory
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 Patch
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ Mailing List Third Party Advisory
https://seclists.org/bugtraq/2020/Jan/51 Mailing List Third Party Advisory
https://usn.ubuntu.com/4268-1/ Third Party Advisory
https://www.debian.org/security/2020/dsa-4611 Mailing List Third Party Advisory
https://www.kb.cert.org/vuls/id/390745 Third Party Advisory US Government Resource
https://www.openbsd.org/security.html Patch Vendor Advisory
http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html Broken Link Third Party Advisory VDB Entry
http://seclists.org/fulldisclosure/2020/Jan/49 Exploit Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2020/01/28/3 Exploit Mailing List Third Party Advisory
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 Patch
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ Mailing List Third Party Advisory
https://seclists.org/bugtraq/2020/Jan/51 Mailing List Third Party Advisory
https://usn.ubuntu.com/4268-1/ Third Party Advisory
https://www.debian.org/security/2020/dsa-4611 Mailing List Third Party Advisory
https://www.kb.cert.org/vuls/id/390745 Third Party Advisory US Government Resource
https://www.openbsd.org/security.html Patch Vendor Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

基于Docker-Compose的预构建漏洞环境设计源码 Docker-Compose 漏洞环境 Java Python Shell 该项目是一套基于Docker-Compose的预构建漏洞环境设计源码,涵盖了1684个文件,其中包括405个PNG图像文件、319个Markdown文档、218个YAML配置文件、68个Java源文件、67个Python脚本、62个Shell脚本、53个XML文件、34个PHP文件以及多个Dockerfile。该环境集成了Java, Python, Shell, PHP, HTML, JavaScript, CSS, Ruby等多种编程语言,旨在为安全研究提供易用的漏洞测试平台。

Updated: 3 weeks, 3 days ago
0 stars 0 fork 0 watcher
Born at : Nov. 29, 2024, 4:05 a.m. This repo has been linked 127 different CVEs too.

A curated collection of Proof of Concept (PoC) tools, scripts, and techniques designed for red team operations, penetration testing, and cybersecurity research. This repository focuses on providing practical resources for exploring vulnerabilities

attack cybersecurity exp hw penetration-testing poc red-team security-tools vulnerability-poc

Updated: 2 weeks, 4 days ago
1 stars 2 fork 2 watcher
Born at : Nov. 17, 2024, 11:53 a.m. This repo has been linked 414 different CVEs too.

None

Updated: 2 weeks, 6 days ago
2 stars 1 fork 1 watcher
Born at : Jan. 26, 2024, 10:07 a.m. This repo has been linked 161 different CVEs too.

DayOne: Critical Vulnerability Root Cause Analysis Platform

Python JavaScript Ruby HTML Assembly Makefile C Objective-C Shell Dockerfile

Updated: 1 year, 2 months ago
0 stars 0 fork 0 watcher
Born at : Oct. 15, 2023, 2:18 p.m. This repo has been linked 61 different CVEs too.

在公网收集的gobypoc+部分自己加的poc

Updated: 1 month ago
106 stars 7 fork 7 watcher
Born at : July 28, 2023, 4:28 p.m. This repo has been linked 296 different CVEs too.

Terraform script to deploy vulnerable pentest lab on AWS.

penetration-testing penetration-testing-tools

Shell HCL

Updated: 6 months, 1 week ago
4 stars 2 fork 2 watcher
Born at : April 25, 2023, 1:05 p.m. This repo has been linked 1 different CVEs too.

None

Updated: 3 weeks ago
25 stars 5 fork 5 watcher
Born at : July 28, 2022, 3:22 a.m. This repo has been linked 149 different CVEs too.

None

Updated: 5 months, 3 weeks ago
8 stars 1 fork 1 watcher
Born at : June 21, 2022, 7:45 a.m. This repo has been linked 943 different CVEs too.

POC exploit index

Updated: 2 years, 7 months ago
0 stars 0 fork 0 watcher
Born at : May 19, 2022, 6:09 a.m. This repo has been linked 8 different CVEs too.

Some POC_EXP Records.

Python Shell C Perl Go PHP Lua PowerShell

Updated: 1 week, 1 day ago
0 stars 0 fork 0 watcher
Born at : May 14, 2022, 6:12 a.m. This repo has been linked 37 different CVEs too.

一个漏洞利用工具仓库

Python PHP Java C Makefile C++ Dockerfile Shell Perl RPC

Updated: 2 years, 8 months ago
0 stars 72 fork 72 watcher
Born at : April 22, 2022, 10:21 a.m. This repo has been linked 48 different CVEs too.

一个漏洞利用工具仓库

exploit vulnerability proof-of-concept rce

Python PHP Java C Makefile C++ Dockerfile Shell Perl RPC

Updated: 3 months, 3 weeks ago
321 stars 72 fork 72 watcher
Born at : April 22, 2022, 2:08 a.m. This repo has been linked 48 different CVEs too.

Ostorlab KEV: One-command to detect most remotely known exploitable vulnerabilities. Sourced from CISA KEV, Google's Tsunami, Ostorlab's Asteroid and Bug Bounty programs.

cisa-kev vulnerability 0day cisa exploits

Updated: 2 weeks, 2 days ago
548 stars 35 fork 35 watcher
Born at : April 19, 2022, 8:58 a.m. This repo has been linked 1228 different CVEs too.

一个Vulhub漏洞复现知识库

vulnerability exploit

Updated: 3 months, 2 weeks ago
448 stars 87 fork 87 watcher
Born at : March 3, 2022, 8:38 a.m. This repo has been linked 171 different CVEs too.

一个漏洞POC知识库 目前数量 1000+

poc

Updated: 2 weeks, 3 days ago
3731 stars 734 fork 734 watcher
Born at : Feb. 20, 2022, 6:43 a.m. This repo has been linked 414 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2020-7247 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2020-7247 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html
    Added Reference http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html
    Added Reference http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html
    Added Reference http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html
    Added Reference http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html
    Added Reference http://seclists.org/fulldisclosure/2020/Jan/49
    Added Reference http://www.openwall.com/lists/oss-security/2020/01/28/3
    Added Reference https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45
    Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/
    Added Reference https://seclists.org/bugtraq/2020/Jan/51
    Added Reference https://usn.ubuntu.com/4268-1/
    Added Reference https://www.debian.org/security/2020/dsa-4611
    Added Reference https://www.kb.cert.org/vuls/id/390745
    Added Reference https://www.openbsd.org/security.html
  • Modified Analysis by [email protected]

    Jul. 16, 2024

    Action Type Old Value New Value
    Changed Reference Type http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html Third Party Advisory, VDB Entry http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html Exploit, Third Party Advisory, VDB Entry
    Changed Reference Type http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html Broken Link http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html Broken Link, Third Party Advisory, VDB Entry
    Changed Reference Type http://seclists.org/fulldisclosure/2020/Jan/49 Mailing List, Third Party Advisory http://seclists.org/fulldisclosure/2020/Jan/49 Exploit, Mailing List, Third Party Advisory
    Changed Reference Type https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 Patch, Third Party Advisory https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 Patch
    Changed Reference Type https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ No Types Assigned https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ Mailing List, Third Party Advisory
    Changed Reference Type https://www.debian.org/security/2020/dsa-4611 Third Party Advisory https://www.debian.org/security/2020/dsa-4611 Mailing List, Third Party Advisory
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Nov. 07, 2023

    Action Type Old Value New Value
    Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ [No types assigned]
    Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/
  • Modified Analysis by [email protected]

    Apr. 29, 2022

    Action Type Old Value New Value
    Changed Reference Type http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html Third Party Advisory http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html Third Party Advisory, VDB Entry
    Changed Reference Type http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html No Types Assigned http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html Exploit, Third Party Advisory, VDB Entry
    Changed Reference Type http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html No Types Assigned http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html Exploit, Third Party Advisory, VDB Entry
    Changed Reference Type http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html No Types Assigned http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html Broken Link
    Changed Reference Type http://seclists.org/fulldisclosure/2020/Jan/49 No Types Assigned http://seclists.org/fulldisclosure/2020/Jan/49 Mailing List, Third Party Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ Mailing List, Third Party Advisory
    Changed Reference Type https://seclists.org/bugtraq/2020/Jan/51 Third Party Advisory https://seclists.org/bugtraq/2020/Jan/51 Mailing List, Third Party Advisory
    Changed Reference Type https://usn.ubuntu.com/4268-1/ No Types Assigned https://usn.ubuntu.com/4268-1/ Third Party Advisory
    Changed Reference Type https://www.kb.cert.org/vuls/id/390745 No Types Assigned https://www.kb.cert.org/vuls/id/390745 Third Party Advisory, US Government Resource
    Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*
  • CWE Remap by [email protected]

    Jul. 21, 2021

    Action Type Old Value New Value
    Changed CWE CWE-252 CWE-755 CWE-78
  • CVE Modified by [email protected]

    Apr. 06, 2021

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html [No Types Assigned]
  • CVE Modified by [email protected]

    Mar. 17, 2020

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 11, 2020

    Action Type Old Value New Value
    Added Reference https://usn.ubuntu.com/4268-1/ [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 11, 2020

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 07, 2020

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 01, 2020

    Action Type Old Value New Value
    Added Reference http://seclists.org/fulldisclosure/2020/Jan/49 [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 31, 2020

    Action Type Old Value New Value
    Added Reference https://www.kb.cert.org/vuls/id/390745 [No Types Assigned]
  • Initial Analysis by [email protected]

    Jan. 31, 2020

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:N/AC:L/Au:N/C:C/I:C/A:C)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html No Types Assigned http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html Exploit, Third Party Advisory, VDB Entry
    Changed Reference Type http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html No Types Assigned http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html Third Party Advisory
    Changed Reference Type http://www.openwall.com/lists/oss-security/2020/01/28/3 No Types Assigned http://www.openwall.com/lists/oss-security/2020/01/28/3 Exploit, Mailing List, Third Party Advisory
    Changed Reference Type https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 No Types Assigned https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 Patch, Third Party Advisory
    Changed Reference Type https://seclists.org/bugtraq/2020/Jan/51 No Types Assigned https://seclists.org/bugtraq/2020/Jan/51 Third Party Advisory
    Changed Reference Type https://www.debian.org/security/2020/dsa-4611 No Types Assigned https://www.debian.org/security/2020/dsa-4611 Third Party Advisory
    Changed Reference Type https://www.openbsd.org/security.html No Types Assigned https://www.openbsd.org/security.html Patch, Vendor Advisory
    Added CWE NIST CWE-252
    Added CPE Configuration OR *cpe:2.3:a:openbsd:opensmtpd:6.6:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Jan. 30, 2020

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 30, 2020

    Action Type Old Value New Value
    Added Reference https://www.debian.org/security/2020/dsa-4611 [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 30, 2020

    Action Type Old Value New Value
    Added Reference https://seclists.org/bugtraq/2020/Jan/51 [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 29, 2020

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html [No Types Assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2020-7247 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

97.40 }} -0.00%

score

0.99964

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability