{
    "id": "CVE-2020-7247",
    "published": "2020-01-29 16:15:12",
    "last_modified": "2026-06-17 03:24:35",
    "cvss_score": "9.8",
    "cvss_severity": "CRITICAL",
    "cvss_version": "3.1",
    "cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
    "cwe": "CWE-78",
    "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.",
    "epss_score": "0.98972",
    "epss_percentile": "0.99929",
    "kev": 1,
    "kev_due": "2022-04-15",
    "has_exploit": 1,
    "updated_at": "2026-09-26 18:25:20",
    "priority": {
        "rank": 1,
        "label": "Patch first",
        "why": "On CISA KEV — known exploited in the wild, due 2022-04-15."
    },
    "products": [
        {
            "vendor": "canonical",
            "product": "ubuntu_linux"
        },
        {
            "vendor": "debian",
            "product": "debian_linux"
        },
        {
            "vendor": "fedoraproject",
            "product": "fedora"
        },
        {
            "vendor": "openbsd",
            "product": "opensmtpd"
        }
    ],
    "kev_detail": {
        "cve_id": "CVE-2020-7247",
        "date_added": "2022-03-25",
        "due_date": "2022-04-15",
        "vendor": "OpenBSD",
        "product": "OpenSMTPD",
        "name": "OpenSMTPD Remote Code Execution Vulnerability",
        "ransomware": 0
    },
    "exploits": [
        {
            "source": "exploit-db",
            "ref_id": "48051",
            "title": "OpenSMTPD 6.4.0 < 6.6.1 - Local Privilege Escalation + Remote Code Execution",
            "date": "2020-02-11",
            "url": "https://www.exploit-db.com/exploits/48051"
        },
        {
            "source": "exploit-db",
            "ref_id": "48038",
            "title": "OpenSMTPD - MAIL FROM Remote Code Execution (Metasploit)",
            "date": "2020-02-10",
            "url": "https://www.exploit-db.com/exploits/48038"
        },
        {
            "source": "exploit-db",
            "ref_id": "47984",
            "title": "OpenSMTPD 6.6.1 - Remote Code Execution",
            "date": "2020-01-30",
            "url": "https://www.exploit-db.com/exploits/47984"
        }
    ],
    "refs_list": [
        "http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html",
        "http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html",
        "http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html",
        "http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html",
        "http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html",
        "http://seclists.org/fulldisclosure/2020/Jan/49",
        "http://www.openwall.com/lists/oss-security/2020/01/28/3",
        "https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/",
        "https://seclists.org/bugtraq/2020/Jan/51",
        "https://usn.ubuntu.com/4268-1/",
        "https://www.debian.org/security/2020/dsa-4611",
        "https://www.kb.cert.org/vuls/id/390745",
        "https://www.openbsd.org/security.html",
        "http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html",
        "http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html",
        "http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html",
        "http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html",
        "http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html",
        "http://seclists.org/fulldisclosure/2020/Jan/49",
        "http://www.openwall.com/lists/oss-security/2020/01/28/3",
        "https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/",
        "https://seclists.org/bugtraq/2020/Jan/51",
        "https://usn.ubuntu.com/4268-1/"
    ]
}