CVE-2020-7247

Source
https://nvd.nist.gov/vuln/detail/CVE-2020-7247
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-7247.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2020-7247
Related
Published
2020-01-29T16:15:12Z
Modified
2024-10-12T06:42:23.974758Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

smtpmailaddr in smtpsession.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.

References

Affected packages

Alpine:v3.11 / opensmtpd

Package

Name
opensmtpd
Purl
pkg:apk/alpine/opensmtpd?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.6.2p1-r0

Affected versions

5.*

5.7.1p1-r0
5.7.1p1-r1
5.7.1p1-r2
5.7.2p1-r0
5.7.3p1-r0
5.7.3p1-r1
5.7.3p2-r0
5.7.3p2-r1
5.9.2p1-r0
5.9.2p1-r1
5.9.2p1-r2
5.9.2p1-r3

6.*

6.0.2p1-r0
6.0.2p1-r1
6.0.2p1-r2
6.0.2p1-r3
6.0.2p1-r4
6.0.2p1-r5
6.0.2p1-r6
6.0.2p1-r7
6.0.2p1-r8
6.0.3p1-r0
6.0.3p1-r1
6.0.3p1-r2
6.0.3p1-r3
6.0.3p1-r4
6.4.2p1-r0
6.4.2p1-r1
6.4.2p1-r2
6.6.1p1-r0
6.6.1p1-r1
6.6.1p1-r2

Alpine:v3.12 / opensmtpd

Package

Name
opensmtpd
Purl
pkg:apk/alpine/opensmtpd?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.6.2p1-r0

Affected versions

5.*

5.7.1p1-r0
5.7.1p1-r1
5.7.1p1-r2
5.7.2p1-r0
5.7.3p1-r0
5.7.3p1-r1
5.7.3p2-r0
5.7.3p2-r1
5.9.2p1-r0
5.9.2p1-r1
5.9.2p1-r2
5.9.2p1-r3

6.*

6.0.2p1-r0
6.0.2p1-r1
6.0.2p1-r2
6.0.2p1-r3
6.0.2p1-r4
6.0.2p1-r5
6.0.2p1-r6
6.0.2p1-r7
6.0.2p1-r8
6.0.3p1-r0
6.0.3p1-r1
6.0.3p1-r2
6.0.3p1-r3
6.0.3p1-r4
6.4.2p1-r0
6.4.2p1-r1
6.4.2p1-r2
6.6.1p1-r0
6.6.1p1-r1
6.6.1p1-r2
6.6.1p1-r3

Alpine:v3.13 / opensmtpd

Package

Name
opensmtpd
Purl
pkg:apk/alpine/opensmtpd?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.6.2p1-r0

Affected versions

5.*

5.7.1p1-r0
5.7.1p1-r1
5.7.1p1-r2
5.7.2p1-r0
5.7.3p1-r0
5.7.3p1-r1
5.7.3p2-r0
5.7.3p2-r1
5.9.2p1-r0
5.9.2p1-r1
5.9.2p1-r2
5.9.2p1-r3

6.*

6.0.2p1-r0
6.0.2p1-r1
6.0.2p1-r2
6.0.2p1-r3
6.0.2p1-r4
6.0.2p1-r5
6.0.2p1-r6
6.0.2p1-r7
6.0.2p1-r8
6.0.3p1-r0
6.0.3p1-r1
6.0.3p1-r2
6.0.3p1-r3
6.0.3p1-r4
6.4.2p1-r0
6.4.2p1-r1
6.4.2p1-r2
6.6.1p1-r0
6.6.1p1-r1
6.6.1p1-r2
6.6.1p1-r3

Alpine:v3.14 / opensmtpd

Package

Name
opensmtpd
Purl
pkg:apk/alpine/opensmtpd?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.6.2p1-r0

Affected versions

5.*

5.7.1p1-r0
5.7.1p1-r1
5.7.1p1-r2
5.7.2p1-r0
5.7.3p1-r0
5.7.3p1-r1
5.7.3p2-r0
5.7.3p2-r1
5.9.2p1-r0
5.9.2p1-r1
5.9.2p1-r2
5.9.2p1-r3

6.*

6.0.2p1-r0
6.0.2p1-r1
6.0.2p1-r2
6.0.2p1-r3
6.0.2p1-r4
6.0.2p1-r5
6.0.2p1-r6
6.0.2p1-r7
6.0.2p1-r8
6.0.3p1-r0
6.0.3p1-r1
6.0.3p1-r2
6.0.3p1-r3
6.0.3p1-r4
6.4.2p1-r0
6.4.2p1-r1
6.4.2p1-r2
6.6.1p1-r0
6.6.1p1-r1
6.6.1p1-r2
6.6.1p1-r3

Alpine:v3.15 / opensmtpd

Package

Name
opensmtpd
Purl
pkg:apk/alpine/opensmtpd?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.6.2p1-r0

Affected versions

5.*

5.7.1p1-r0
5.7.1p1-r1
5.7.1p1-r2
5.7.2p1-r0
5.7.3p1-r0
5.7.3p1-r1
5.7.3p2-r0
5.7.3p2-r1
5.9.2p1-r0
5.9.2p1-r1
5.9.2p1-r2
5.9.2p1-r3

6.*

6.0.2p1-r0
6.0.2p1-r1
6.0.2p1-r2
6.0.2p1-r3
6.0.2p1-r4
6.0.2p1-r5
6.0.2p1-r6
6.0.2p1-r7
6.0.2p1-r8
6.0.3p1-r0
6.0.3p1-r1
6.0.3p1-r2
6.0.3p1-r3
6.0.3p1-r4
6.4.2p1-r0
6.4.2p1-r1
6.4.2p1-r2
6.6.1p1-r0
6.6.1p1-r1
6.6.1p1-r2
6.6.1p1-r3

Alpine:v3.16 / opensmtpd

Package

Name
opensmtpd
Purl
pkg:apk/alpine/opensmtpd?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.6.2p1-r0

Affected versions

5.*

5.7.1p1-r0
5.7.1p1-r1
5.7.1p1-r2
5.7.2p1-r0
5.7.3p1-r0
5.7.3p1-r1
5.7.3p2-r0
5.7.3p2-r1
5.9.2p1-r0
5.9.2p1-r1
5.9.2p1-r2
5.9.2p1-r3

6.*

6.0.2p1-r0
6.0.2p1-r1
6.0.2p1-r2
6.0.2p1-r3
6.0.2p1-r4
6.0.2p1-r5
6.0.2p1-r6
6.0.2p1-r7
6.0.2p1-r8
6.0.3p1-r0
6.0.3p1-r1
6.0.3p1-r2
6.0.3p1-r3
6.0.3p1-r4
6.4.2p1-r0
6.4.2p1-r1
6.4.2p1-r2
6.6.1p1-r0
6.6.1p1-r1
6.6.1p1-r2
6.6.1p1-r3

Debian:11 / opensmtpd

Package

Name
opensmtpd
Purl
pkg:deb/debian/opensmtpd?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.6.2p1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / opensmtpd

Package

Name
opensmtpd
Purl
pkg:deb/debian/opensmtpd?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.6.2p1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / opensmtpd

Package

Name
opensmtpd
Purl
pkg:deb/debian/opensmtpd?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.6.2p1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/openbsd/src

Affected ranges

Type
GIT
Repo
https://github.com/openbsd/src
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed