Unchecked Return Value Affecting opensmtpd/opensmtpd package, versions [,6.6.2-p1)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Attacked
EPSS
98.97% (100th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-OPENSMTPDOPENSMTPD-2365687
  • published26 Jan 2022
  • disclosed29 Jan 2020
  • creditUnknown

Introduced: 29 Jan 2020

CVE-2020-7247  (opens in a new tab)
CWE-252  (opens in a new tab)

How to fix?

Upgrade opensmtpd/opensmtpd to version 6.6.2-p1 or higher.

Overview

Affected versions of this package are vulnerable to Unchecked Return Value 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.

CVSS Base Scores

version 3.1