ubuntu-cve-2020-7247
Vulnerability from osv_ubuntu
Published
2020-01-29 16:15
Modified
2025-09-08 16:45
Summary
Details
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.
Severity
9.8 (Critical)
9.8 (Critical)
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "opensmtpd",
"binary_version": "5.4.1p1-1ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:14.04:LTS",
"name": "opensmtpd",
"purl": "pkg:deb/ubuntu/opensmtpd@5.4.1p1-1ubuntu0.1~esm1?arch=source\u0026distro=trusty/esm"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "5.4.1p1-1ubuntu0.1~esm1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"5.3.3p1-4",
"5.4.1p1-1"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "opensmtpd",
"binary_version": "5.7.3p2-1ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "opensmtpd",
"purl": "pkg:deb/ubuntu/opensmtpd@5.7.3p2-1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "5.7.3p2-1ubuntu0.1~esm1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"5.4.2p1-4",
"5.7.3p1-1",
"5.7.3p2-1"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "opensmtpd",
"binary_version": "6.0.3p1-1ubuntu0.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "opensmtpd",
"purl": "pkg:deb/ubuntu/opensmtpd@6.0.3p1-1ubuntu0.1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "6.0.3p1-1ubuntu0.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"6.0.2p1-2build1",
"6.0.3p1-1",
"6.0.3p1-1build1"
]
}
],
"aliases": [],
"details": "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.",
"id": "UBUNTU-CVE-2020-7247",
"modified": "2025-09-08T16:45:59Z",
"published": "2020-01-29T16:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2020-7247"
},
{
"type": "REPORT",
"url": "https://www.openwall.com/lists/oss-security/2020/01/28/3"
},
{
"type": "REPORT",
"url": "https://ftp.openbsd.org/pub/OpenBSD/patches/6.6/common/019_smtpd_exec.patch.sig"
},
{
"type": "REPORT",
"url": "https://github.com/OpenSMTPD/OpenSMTPD/commit/be6ef06cba9484d008d9f057e6b25d863cf278ff"
},
{
"type": "REPORT",
"url": "http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html"
},
{
"type": "REPORT",
"url": "http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html"
},
{
"type": "REPORT",
"url": "http://www.openwall.com/lists/oss-security/2020/01/28/3"
},
{
"type": "REPORT",
"url": "https://seclists.org/bugtraq/2020/Jan/51"
},
{
"type": "REPORT",
"url": "https://www.debian.org/security/2020/dsa-4611"
},
{
"type": "REPORT",
"url": "https://www.kb.cert.org/vuls/id/390745"
},
{
"type": "REPORT",
"url": "https://www.openbsd.org/security.html"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-4268-1"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2020-7247"
},
{
"type": "REPORT",
"url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-4875-1"
}
],
"related": [
"USN-4268-1",
"USN-4875-1"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "high",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2020-7247"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…