OpenSMTPD 6.6 SMTP Session smtp_session.c MAIL FROM return value

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
9.3$0-$5k0.00

Summaryinfo

A vulnerability classified as very critical has been found in OpenSMTPD 6.6. This affects an unknown part of the file smtp_session.c of the component SMTP Session Handler. Performing a manipulation of the argument MAIL FROM as part of Shell Metacharacter results in return value. This vulnerability is reported as CVE-2020-7247. The attack is possible to be carried out remotely. Moreover, an exploit is present.

Detailsinfo

A vulnerability, which was classified as very critical, was found in OpenSMTPD 6.6. This affects some unknown processing of the file smtp_session.c of the component SMTP Session Handler. The manipulation of the argument MAIL FROM as part of a Shell Metacharacter leads to a return value vulnerability. CWE is classifying the issue as CWE-252. The product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:

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.

The weakness was disclosed 01/29/2020 (GitHub Repository). It is possible to read the advisory at github.com. This vulnerability is uniquely identified as CVE-2020-7247 since 01/20/2020. It is possible to initiate the attack remotely. Required for exploitation is a authentication. Technical details and a public exploit are known. The pricing for an exploit might be around USD $0-$5k at the moment (estimation calculated on 02/05/2025).

A public exploit has been developed by Qualys Security Advisory in Python and been published 1 days after the advisory. The exploit is shared for download at exploit-db.com. It is declared as attacked. We expect the 0-day to have been worth approximately $25k-$100k. The CISA Known Exploited Vulnerabilities Catalog lists this issue since 03/25/2022 with a due date of 04/15/2022:

Apply updates per vendor instructions.

There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.

The vulnerability is also documented in the vulnerability database at Exploit-DB (47984). Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Productinfo

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 9.5
VulDB Meta Temp Score: 9.3

VulDB Base Score: 8.8
VulDB Temp Score: 8.4
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 9.8
NVD Vector: 🔍

CNA Base Score: 9.8
CNA Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Return value
CWE: CWE-252 / CWE-253
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Attacked
Author: Qualys Security Advisory
Programming Language: 🔍
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

KEV Added: 🔍
KEV Due: 🔍
KEV Remediation: 🔍
KEV Ransomware: 🔍
KEV Notice: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Exploit-DB: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: no mitigation known
Status: 🔍

0-Day Time: 🔍
Exploit Delay Time: 🔍

Patch: github.com

Timelineinfo

01/20/2020 🔍
01/29/2020 +9 days 🔍
01/30/2020 +1 days 🔍
01/30/2020 +0 days 🔍
02/05/2025 +1833 days 🔍

Sourcesinfo

Advisory: 156137
Status: Confirmed

CVE: CVE-2020-7247 (🔍)
GCVE (CVE): GCVE-0-2020-7247
GCVE (VulDB): GCVE-100-149547
scip Labs: https://www.scip.ch/en/?labs.20161013

Entryinfo

Created: 01/30/2020 08:39
Updated: 02/05/2025 05:08
Changes: 01/30/2020 08:39 (39), 02/20/2020 11:50 (4), 02/20/2020 11:51 (3), 08/10/2020 10:38 (17), 03/27/2024 14:37 (22), 03/27/2024 14:42 (1), 04/24/2024 13:18 (9), 07/17/2024 13:04 (3), 09/09/2024 22:29 (1), 02/05/2025 05:08 (15)
Complete: 🔍
Submitter: misc
Committer: misc
Cache ID: 216::103

Submitinfo

Accepted

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you want to use VulDB in your project?

Use the official API to access entries easily!