CVE Feed

    Dashboard / CVE / CVE-2020-7247

    CVE-2020-7247

    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.

    Published:Jan 29, 2020
    Last Modified:Nov 7, 2025
    EPS:Jan 29, 2020
    EPSS Score:0.93978
    CVSS Score:9.8

    CISA Notification

    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.

    Required Action:

    Apply updates per vendor instructions.

    Notes:

    No extra notes provided.

    Due Date
    Apr 15, 2022
    1610 days ago
    Alert Date
    Mar 25, 2022
    1631 days ago

    Affected Products

    Vendor
    Canonical
    Product
    Ubuntu Linux
    Vendor
    Debian
    Product
    Debian Linux
    Vendor
    Fedoraproject
    Product
    Fedora
    Vendor
    Openbsd
    Product
    Opensmtpd

    Exploits

    http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.htmlhttp://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.htmlhttp://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.htmlhttp://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.htmlhttp://seclists.org/fulldisclosure/2020/Jan/49http://www.openwall.com/lists/oss-security/2020/01/28/3http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.htmlhttp://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.htmlhttp://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.htmlhttp://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.htmlhttp://seclists.org/fulldisclosure/2020/Jan/49http://www.openwall.com/lists/oss-security/2020/01/28/3https://www.exploit-db.com/exploits/48038https://github.com/bytescrappers/CVE-2020-7247https://github.com/f4T1H21/CVE-2020-7247https://github.com/FiroSolutions/cve-2020-7247-exploithttps://github.com/minhluannguyen/CVE-2020-7247-reproducerhttps://github.com/presentdaypresenttime/shai_huludhttps://github.com/QTranspose/CVE-2020-7247-exploithttps://github.com/r0lh/CVE-2020-7247https://github.com/SimonSchoeni/CVE-2020-7247-POChttps://github.com/solmin111/OpenSMTPD-CVE-2020-7247-https://github.com/superzerosec/cve-2020-7247https://www.exploit-db.com/exploits/47984https://www.exploit-db.com/exploits/48051

    Related CVEs

    References

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High